added --rev option to --log in utils.py