Commits

Anonymous committed b19982b

cmenu: move recovery functions into submenu

  • Participants
  • Parent commits e6edcc2

Comments (0)

Files changed (1)

tortoise/contextmenu.py

                            self._revert))
 
             result.append(TortoiseMenuSep())
-
-            result.append(TortoiseMenu(_("Rollback"),
-                           _("Rollback the last transaction"),
-                           self._rollback))
-            result.append(TortoiseMenu(_("Recover"),
-                           _("Recover from an interrupted commit or pull"),
-                           self._recover))
-            result.append(TortoiseMenu(_("Verify"),
-                           _("Verify repository consistency"),
-                           self._verify))
             result.append(TortoiseMenu(_("Update"),
                            _("update working directory"),
                            self._update))
                            _("start web server for this repository"),
                            self._serve))
 
+            # repo recovery functions
+            rcmenu = TortoiseSubmenu(_("Repo recovery"))
+            result.append(rcmenu)
+            
+            rcmenu.add_menu(_("Rollback"),
+                            _("Rollback the last transaction"),
+                            self._rollback)
+            rcmenu.add_menu(_("Recover"),
+                            _("Recover from an interrupted commit or pull"),
+                            self._recover)
+            rcmenu.add_menu(_("Verify"),
+                            _("Verify repository consistency"),
+                            self._verify)
+
             # Optionally add an Options submenu
             c = ui.ui().config('tortoisehg', 'hgconfig', None)
             if c in ['1', 'yes', 'True']: