changeset 32146:e807c373846a

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.
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 24 Apr 2017 04:32:04 +0530
parents f1aaa100f2a5
children a77e61b45384
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Apr 21 15:04:32 2017 +0530
+++ b/mercurial/commands.py	Mon Apr 24 04:32:04 2017 +0530
@@ -4618,8 +4618,8 @@
     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):