Yuya Nishihara  committed 352e194

revert: remove silly warning dialog just before ValueError

  • Participants
  • Parent commits 89fa569

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

 class RevertDialog(QDialog):
     def __init__(self, repo, wfiles, rev, parent):
         if rev is None:
-            qtlib.WarningMsgBox(_('Cannot revert to working directory'),
-                                _('Reverting to the working directory revision '
-                                'does not make sense'),
-                                parent=parent)
             raise ValueError(_('Cannot revert to working directory'))
         super(RevertDialog, self).__init__(parent)