Commits

Steve Borho  committed 268ed20

status: add annotation to context menu

Closes #1310

  • Participants
  • Parent commits 221a5c5
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/status.py

             from tortoisehg.hgtk import history
             dlg = history.run(self.ui, canonpats=files)
             dlg.display()
+        def annotate(menuitem, files):
+            from tortoisehg.hgtk import datamine
+            dlg = datamine.run(self.ui, *files)
+            dlg.display()
         def forget(menuitem, files, paths):
             self.act.hg_forget(files)
             self.set_file_states(paths, state=False)
         make(_('_Revert'), revert, 'MAR!ru', gtk.STOCK_MEDIA_REWIND)
         menu.append_sep()
         make(_('File History'), log, 'MARC!ru', 'menulog.ico')
+        make(_('Annotate'), annotate, 'MARC!ru', 'menublame.ico')
         menu.append_sep()
         make(_('_Forget'), forget, 'MAC!ru', gtk.STOCK_CLEAR, paths=True)
         make(_('_Add'), add, 'I?', gtk.STOCK_ADD, paths=True)