Commits

Steve Borho committed 1c10df2

wctxactions: add a confirmation for revert of file types SAR! (closes #2102)

Comments (0)

Files changed (1)

tortoisehg/hgqt/wctxactions.py

                 return False
             if res == 1:
                 revertopts['no_backup'] = True
+        else:
+            res = qtlib.CustomPrompt(
+                    _('Confirm Revert'),
+                    _('Revert the following files?'),
+                    parent, (_('&Revert'), _('Cancel')), 1, 1, files).run()
+            if res == 1:
+                return False
         commands.revert(ui, repo, *files, **revertopts)
         return True