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 opts = {'filehist' : self.curfile} self.glog_parent.custombutton.set_active(True) self.glog_parent.graphview.refresh(True, None, opts) else: # Else launch our own GLog instance from history import GLog dialog = GLog(self.ui, self.repo, self.cwd, [self.repo.root], {}, False) dialog.open_with_file(self.curfile) dialog.display()
def _cmenu_file_log(self, menuitem): from history import GLog dialog = GLog(self.ui, self.repo, self.cwd, [self.repo.root], {}, False) dialog.open_with_file(self.curpath) dialog.display()