def file_history(self, menuitem): 'User selected file history from file list context menu' if self.glog_parent: # If this changeset browser is embedded in glog, send # send this event to the main app path = hglib.escapepath(self.curfile) fname = hglib.toutf(path) opts = {'pats': [fname]} explorer = self.glog_parent explorer.filter = 'custom' explorer.filtercombo.set_active(MODE_FILEPATS) explorer.filterentry.set_text(fname) explorer.filterbar.get_button('custom').set_active(True) explorer.activate_filter(path, MODE_FILEPATS) else: # Else launch our own glog instance from tortoisehg.hgtk import history dlg = history.run(self.ui, filehist=self.curfile) dlg.display()
def cmenu_file_log(self, menuitem): from tortoisehg.hgtk import history dlg = history.run(self.ui, filehist=self.curpath) dlg.display()
def log(menuitem, files): from tortoisehg.hgtk import history dlg = history.run(self.ui, canonpats=files) dlg.display()