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

logview: pass show-graph to treemodel

Changeset 923d1de0df12

Parent fc805fe56189

by Steve Borho

Changes to 2 files · Browse files at 923d1de0df12 Showing diff from parent fc805fe56189 Diff from another changeset...

 
46
47
48
 
49
50
51
 
46
47
48
49
50
51
52
@@ -46,6 +46,7 @@
  self.outgoing = opts['outgoing']   self.origtip = opts['orig-tip']   self.npreviews = opts['npreviews'] + self.showgraph = opts['show-graph']   self.revisions = {}   self.graphdata = graphdata   self.wcparents = [x.rev() for x in repo.parents()]
 
126
127
128
129
 
130
131
132
 
184
185
186
187
 
188
189
190
 
239
240
241
242
 
243
244
245
 
126
127
128
 
129
130
131
132
 
184
185
186
 
187
188
189
190
 
239
240
241
 
242
243
244
245
@@ -126,7 +126,7 @@
  self.currevid = None   self.pbar = pbar   self.opts = { 'outgoing':[], 'orig-tip':None, 'npreviews':0, - 'branch-color':False } + 'branch-color':False, 'show-graph':True }   self.construct_treeview()     def set_repo(self, repo, pbar=None): @@ -184,7 +184,7 @@
  self.grapher = dumb_log_generator(self.repo, opts['revlist'])   else:   self.grapher = filtered_log_generator(self.repo, pats, opts) - self.show_graph = graphcol + self.opts['show-graph'] = graphcol   self.graphdata = []   self.index = {}   self.max_cols = 1 @@ -239,7 +239,7 @@
  width = 500   gcol = self.tvcolumns['graph']   gcol.set_fixed_width(width) - gcol.set_visible(self.show_graph) + gcol.set_visible(self.opts.get('show-graph'))     if not self.model:   model = treemodel.TreeModel(self.repo, self.graphdata, self.opts)