Changeset c2170a870803…
Parent cc54fcf69e20…
by
Changes to 5 files · Browse files at c2170a870803 Showing diff from parent cc54fcf69e20 Diff from another changeset...
@@ -545,12 +545,10 @@ self.glog_parent.custombutton.set_active(True)
self.glog_parent.reload_log(**opts)
else:
- # Else launch our own GLog instance
+ # Else launch our own glog instance
from hggtk import history
- dialog = history.GLog(self.ui, self.repo, self.cwd,
- [self.repo.root], {})
- dialog.open_with_file(self.curfile)
- dialog.display()
+ dlg = history.run(self.ui, filehist=self.curfile)
+ dlg.display()
def revert_file(self, menuitem):
'User selected file revert from the file list context menu'
|
@@ -151,8 +151,7 @@
def cmenu_file_log(self, menuitem):
from hggtk import history
- dlg = history.GLog(self.ui, self.repo, self.cwd, [self.repo.root], {})
- dlg.open_with_file(self.curpath)
+ dlg = history.run(self.ui, filehist=self.curpath)
dlg.display()
def grep_button_release(self, widget, event):
|
@@ -240,10 +240,6 @@ menu.show_all()
return menu
- def open_with_file(self, file):
- 'Call this before display() to open with file history'
- self.opts['filehist'] = file
-
def prepare_display(self):
'Called at end of display() method'
self.opts['rev'] = [] # This option is dangerous - used directly by hg
@@ -260,7 +256,7 @@ self.origtip = origtip
self.graphview.set_property('original-tip-revision', origtip)
self.newbutton.set_active(True)
- elif 'filehist' in self.opts:
+ elif self.opts.get('filehist') is not None:
self.custombutton.set_active(True)
self.reload_log(pats = [self.opts['filehist']])
elif 'revrange' in self.opts:
@@ -828,7 +824,7 @@ 'limit':0, 'rev':[], 'removed':False, 'no_merges':False,
'date':None, 'only_merges':None, 'prune':[], 'git':False,
'verbose':False, 'include':[], 'exclude':[], 'from-synch':False,
- 'orig-tip':None
+ 'orig-tip':None, 'filehist':None
}
cmdoptions.update(opts)
pats = hglib.canonpaths(pats)
|
@@ -139,7 +139,7 @@ self.grapher = None
return
- if 'filehist' in opts:
+ if opts.get('filehist') is not None:
self.grapher = filelog_grapher(self.repo, opts['filehist'])
elif graphcol:
end = 0
|
@@ -1094,7 +1094,7 @@ def log_file(self, stat, wfile):
# Might want to include 'rev' here... trying without
from hggtk import history
- dlg = history.GLog(self.ui, self.repo, self.cwd, [wfile], self.opts)
+ dlg = history.run(self.ui, wfile, **self.opts)
dlg.display()
return True
|
Loading...