Anonymous avatar Anonymous committed b19982b

cmenu: move recovery functions into submenu

Comments (0)

Files changed (1)


-            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))
                            _("update working directory"),
                            _("start web server for this repository"),
+            # 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']:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.