Commits

Steve Borho committed dd5abd4

update: fix command argument parsing

Using 'None' in the command table made the flag a boolean.
Closes #1609

Comments (0)

Files changed (2)

tortoisehg/hgtk/hgtk.py

          ('',  'all', None, _('udpate all repos in current dir')) ],
         _('hgtk thgstatus [OPTION]')),
     "^update|checkout|co": (update,
-        [('r', 'rev', None, _('revision to update'))],
+        [('r', 'rev', [], _('revision to update'))],
         ('hgtk update')),
     "^vdiff": (vdiff,
         [('c', 'change', '', _('changeset to view in diff tool')),

tortoisehg/hgtk/update.py

         self.execute_command(cmdline)
 
 def run(ui, *pats, **opts):
-    return UpdateDialog(opts.get('rev'))
+    rev = None
+    if opts.get('rev'):
+        rev = opts.get('rev')
+    return UpdateDialog(rev)