# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-04-23 23:02:04 # Node ID e807c373846aa816412290042dd5f7ff7eb89e04 # Parent f1aaa100f2a5f78e9b713db9c3802ed539b84eb5 py3: handle opts correctly for rollback dryrun and force are just check for None, the value is not used. So its better to leave opts as unicodes as that wont harm us. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4618,8 +4618,8 @@ def rollback(ui, repo, **opts): if not ui.configbool('ui', 'rollback', True): raise error.Abort(_('rollback is disabled because it is unsafe'), hint=('see `hg help -v rollback` for information')) - return repo.rollback(dryrun=opts.get('dry_run'), - force=opts.get('force')) + return repo.rollback(dryrun=opts.get(r'dry_run'), + force=opts.get(r'force')) @command('root', []) def root(ui, repo):