Commits

Steve Borho committed 0eaf265

statusact: use -r. to revert working directory files

Trying to specify a revision number fails when the repo has no revisions.

Closes #1374

Comments (0)

Files changed (1)

tortoisehg/hgtk/statusact.py

             if revs and type(revs) == list:
                 revertopts['rev'] = revs[0]
             else:
-                revertopts['rev'] = str(self.stat.repo['.'].rev())
+                revertopts['rev'] = '.'
             response = gdialog.CustomPrompt(_('Confirm Revert'),
                     _('Revert files to revision %s?\n\n%s') % (revertopts['rev'],
                     filelist(files)), self.stat, (_('&Yes (backup changes)'),