diff -r a685011ed38e -r f0bfe42c7b1f mercurial/commands.py --- a/mercurial/commands.py Fri Apr 09 17:23:35 2010 -0500 +++ b/mercurial/commands.py Fri Apr 09 17:23:37 2010 -0500 @@ -2854,7 +2854,7 @@ finally: wlock.release() -def rollback(ui, repo): +def rollback(ui, repo, **opts): """roll back the last transaction This command should be used with care. There is only one level of @@ -2881,7 +2881,7 @@ repository; for example an in-progress pull from the repository may fail if a rollback is performed. """ - repo.rollback() + repo.rollback(opts.get('dry_run')) def root(ui, repo): """print the root (top) of the current working directory @@ -3821,7 +3821,7 @@ ('', 'no-backup', None, _('do not save backup copies of files')), ] + walkopts + dryrunopts, _('[OPTION]... [-r REV] [NAME]...')), - "rollback": (rollback, []), + "rollback": (rollback, dryrunopts), "root": (root, []), "^serve": (serve,