Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

stable synch: launch changelog tool via it's run function

This sets up options correctly to prevent some tracebacks.

Refs #479

Changeset 12e5e2d8650d

Parent 496186a1506a

by Steve Borho

Changes to 2 files · Browse files at 12e5e2d8650d Showing diff from parent 496186a1506a Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​history.py Stacked
 
254
255
256
257
 
258
259
260
 
823
824
825
826
827
828
829
 
830
831
 
 
832
 
833
834
 
254
255
256
 
257
258
259
260
 
823
824
825
 
826
827
 
828
829
 
830
831
832
833
834
835
@@ -254,7 +254,7 @@
  self.graphview.set_property('original-tip-revision', origtip)   self.origtip = origtip   - if 'orig-tip' in self.opts: + if self.opts.get('orig-tip') is not None:   origtip = self.opts['orig-tip']   if origtip != len(self.repo):   self.origtip = origtip @@ -823,12 +823,13 @@
  return True    def run(ui, *pats, **opts): - limit = opts.get('limit')   cmdoptions = {   'follow':False, 'follow-first':False, 'copies':False, 'keyword':[], - 'limit':limit, 'rev':[], 'removed':False, 'no_merges':False, + 'limit':0, 'rev':[], 'removed':False, 'no_merges':False,   'date':None, 'only_merges':None, 'prune':[], 'git':False, - 'verbose':False, 'include':[], 'exclude':[] + 'verbose':False, 'include':[], 'exclude':[], 'from-synch':False, + 'orig-tip':None   } + cmdoptions.update(opts)   pats = hglib.canonpaths(pats)   return GLog(ui, None, None, pats, cmdoptions)
Change 1 of 1 Show Entire File hggtk/​synch.py Stacked
 
332
333
334
335
 
336
337
338
 
332
333
334
 
335
336
337
338
@@ -332,7 +332,7 @@
    def _view_pulled_changes(self, button):   opts = {'orig-tip' : self.origchangecount, 'from-synch' : True} - dlg = history.GLog(self.ui, None, None, [], opts) + dlg = history.run(self.ui, **opts)   dlg.display()     def _update_to_tip(self, button):