Anonymous avatar Anonymous committed fa59112

cmenu: add 'Annotate File' menu

Comments (0)

Files changed (3)

              'parents': revisions, 'heads'  : revisions, 'update' : update,
              'clone'  : clone,     'serve'  : serve,     'synch'  : synch,
              'about'  : about,     'config' : thgconfig, 'recovery': recovery,
-             'grep'   : datamine}
+             'datamine': datamine }
 
 def get_list_from_file(filename):
     fd = open(filename, "r")
Add a comment to this file

icons/tortoise/menublame.ico

Added
New image

tortoise/contextmenu.py

             result.append(TortoiseMenu(_("Undo Changes"),
                            _("Revert selected files"),
                            self._revert, icon="menurevert.ico"))
+            result.append(TortoiseMenu(_("Annotate File"),
+                           _("show changeset information per file line"),
+                           self._annotate, icon="menublame.ico"))
 
             result.append(TortoiseMenuSep())
             result.append(TortoiseMenu(_("Checkout Revision"),
         self._run_dialog('update', noargs=True)
 
     def _grep(self, parent_window):
-        self._run_dialog('grep')
+        # open datamine dialog with no file brings up a search tab
+        self._run_dialog('datamine', noargs=True)
+
+    def _annotate(self, parent_window):
+        # open datamine dialog with files brings up the annotate
+        # tabs for each file
+        self._run_dialog('datamine')
 
     def _run_dialog(self, hgcmd, noargs=False, verbose=True, modal=False):
         if self._folder:
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 ProjectModifiedEvent.java.
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.