1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Elson Wei  committed 0a4b44d

repowidget: "Unapply Patch" should only effect on applied patches (closes #3330)

Revision with qparent tag is not a applied patch. The "Unapply Patch" action
should be disabled.

  • Participants
  • Parent commits 98b5eaa
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

View file
  • Ignore whitespace
 
         if 'mq' in exs or 'rebase' in exs:
             submenu = menu.addMenu(_('Modi&fy History'))
-            entry(submenu, 'mq', qgoto, _('&Unapply Patch (qgoto parent)'), 'hg-qgoto',
+            entry(submenu, 'mq', applied, _('&Unapply Patch (qgoto parent)'), 'hg-qgoto',
                   self.qgotoParentRevision)
             entry(submenu, 'mq', fixed, _('Import to &MQ'), 'qimport',
                   self.qimportRevision)