Commits

TK Soh  committed ebb9a8b

hggtk/history: ensure mq extension is always loaded

  • Participants
  • Parent commits f0e1933

Comments (0)

Files changed (1)

File hggtk/history.py

         self._cmenu_diff = create_menu('_diff with mark', self._diff_revs)
         _menu.append(self._cmenu_diff)
         _menu.append(create_menu('backout revision', self._backout_rev))
-        try:
-            # Ensure mq extension is loaded
-            extensions.loadall(self.ui)
-            extensions.find('mq')
-            _menu.append(create_menu('strip revision', self._strip_rev))
-        except KeyError:
-            pass
+        
+        # need mq extension for strip command
+        extensions.loadall(self.ui)
+        extensions.load(self.ui, 'mq', None)
+        _menu.append(create_menu('strip revision', self._strip_rev))
+        
         _menu.show_all()
         return _menu