Commits

Peter Arrenbrecht committed b9067ff

hggtk/status: revert needs '' as empty --rev

  • Participants
  • Parent commits b3cdc88
  • Branches hg-crew-tip

Comments (0)

Files changed (1)

File hggtk/status.py

             revertopts['rev'] = revertopts['rev'][0]
             dialog = Confirm('Revert', files, self, 'Revert files to revision ' + revertopts['rev'] + '?')
         else:
+            # rev options needs extra tweaking since it must be an empty string when unspecified for revert command
+            revertopts['rev'] = ''
             dialog = Confirm('Revert', files, self)
         if dialog.run() == gtk.RESPONSE_YES:
             success, outtext = self._hg_call_wrapper('Revert', dohgrevert)