Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

datamine: add 'diff to local' context menu option

Refs #732

The other half of #732 is more difficult, as we do not support multi-selection
in the changeset window. Perhaps this will improve when we switch the repo
explorer to use true multi-selection.

Changeset 557fcd2ebea1

Parent b4d349e3a302

by Steve Borho

Changes to one file · Browse files at 557fcd2ebea1 Showing diff from parent b4d349e3a302 Diff from another changeset...

 
160
161
162
 
163
164
165
 
232
233
234
 
 
 
 
235
236
237
 
160
161
162
163
164
165
166
 
233
234
235
236
237
238
239
240
241
242
@@ -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)