Beispiel #1
0
 def _log_file(self, stat, file):
     from gtools import cmdtable
     from history import GLog
     
     # Might want to include 'rev' here... trying without
     statopts = self.merge_opts(cmdtable['glog|ghistory'][1], ('include', 'exclude', 'git'))
     dialog = GLog(self.ui, self.repo, self.cwd, [file], statopts, False)
     dialog.display()
     return True
Beispiel #2
0
 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()
Beispiel #3
0
 def _view_pulled_changes(self, button):
     from history import GLog
     revs = (self.repo.changelog.count()-1, self.origchangecount)
     opts = {'revrange' : revs}
     dialog = GLog(self.ui, self.repo, self.cwd, [], opts, False)
     dialog.display()
Beispiel #4
0
 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()