1. TortoiseHg
  2. TortoiseHg
  3. thg


Yuya Nishihara  committed 8cf451b

revert: don't translate message in ValueError

It won't be visible to users.

  • Participants
  • Parent commits 352e194
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/revert.py

View file
  • Ignore whitespace
 class RevertDialog(QDialog):
     def __init__(self, repo, wfiles, rev, parent):
         if rev is None:
-            raise ValueError(_('Cannot revert to working directory'))
+            raise ValueError('Cannot revert to working directory')
         super(RevertDialog, self).__init__(parent)
         self.setWindowTitle(_('Revert - %s') % repo.displayname)