1. TortoiseHg
  2. TortoiseHg
  3. thg


Steve Borho  committed dd5abd4

update: fix command argument parsing

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

  • Participants
  • Parent commits 46a0e79
  • Branches stable

Comments (0)

Files changed (2)

File tortoisehg/hgtk/hgtk.py

View file
  • Ignore whitespace
          ('',  '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')),

File tortoisehg/hgtk/update.py

View file
  • Ignore whitespace
 def run(ui, *pats, **opts):
-    return UpdateDialog(opts.get('rev'))
+    rev = None
+    if opts.get('rev'):
+        rev = opts.get('rev')
+    return UpdateDialog(rev)