Changeset 557fcd2ebea1…
Parent b4d349e3a302…
by
Changes to one file · Browse files at 557fcd2ebea1 Showing diff from parent b4d349e3a302 Diff from another changeset...
@@ -160,6 +160,7 @@ 'menublame.ico', args=[objs])
m.append(_('_View File at Revision'), self.cmenu_view, gtk.STOCK_EDIT)
m.append(_('_File History'), self.cmenu_file_log, 'menulog.ico')
+ m.append(_('_Diff to Local'), self.cmenu_local_diff)
menu = m.build()
menu.show_all()
return menu
@@ -232,6 +233,10 @@ graphview.scroll_to_revision(int(parent_revid))
graphview.set_revision_id(int(parent_revid))
+ def cmenu_local_diff(self, menuitem):
+ opts = {'rev':[str(self.currev)], 'bundle':None}
+ self._do_diff([self.curpath], opts)
+
def cmenu_file_log(self, menuitem):
from tortoisehg.hgtk import history
dlg = history.run(self.ui, filehist=self.curpath)
|
Loading...