1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 3e0fb1b

repowidget: bring back 'Browse at revision' menu action (closes #1920)

Even though it isn't nice to have a similar function separately, we should
provide a way to open manifest dialog from GUI.

Backed out 2346bb55d022.

  • Participants
  • Parent commits 27a55ca
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

View file
               self.visualDiffRevision)
         entry(menu, None, isrev, _('Diff to local...'), 'ldiff',
               self.visualDiffToLocal)
+        entry(menu, None, isctx, _('Browse at rev...'), 'hg-annotate',
+              self.manifestRevision)
         entry(menu, None, isrev, _('Similar revisions...'), 'view-filter',
               self.matchRevision)
         entry(menu)
         self.syncDemand.forward('push', False,
             branch=self.repo[self.rev].branch())
 
+    def manifestRevision(self):
+        run.manifest(self.repo.ui, repo=self.repo, rev=self.rev)
+
     def mergeWithRevision(self):
         dlg = merge.MergeDialog(self.rev, self.repo, self)
         dlg.exec_()