Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

graph: code simplifications

Changeset 104a44edd810

Parent 263c67a126cf

by Steve Borho

Changes to one file · Browse files at 104a44edd810 Showing diff from parent 263c67a126cf Diff from another changeset...

 
83
84
85
86
87
 
88
89
 
90
91
92
 
145
146
147
148
 
149
150
151
 
244
245
246
247
 
248
249
250
 
83
84
85
 
 
86
87
 
88
89
90
91
 
144
145
146
 
147
148
149
150
 
243
244
245
 
246
247
248
249
@@ -83,10 +83,9 @@
  # Compute revs and next_revs.   if curr_rev not in revs:   if branch: - ctx = repo.changectx(curr_rev) - if ctx.branch() != branch: + if repo[curr_rev].branch() != branch:   if curr_rev is None: - curr_rev = len(repo.changelog) + curr_rev = len(repo)   else:   curr_rev -= 1   yield None @@ -145,7 +144,7 @@
  yield (curr_rev, rev_index, curcolor, lines, parents)   revs = next_revs   if curr_rev is None: - curr_rev = len(repo.changelog) + curr_rev = len(repo)   else:   curr_rev -= 1   @@ -244,7 +243,7 @@
  def __init__(self, repo, grapher, maxfilesize=100000):   self.maxfilesize = maxfilesize   self.repo = repo - self.maxlog = len(self.repo.changelog) + self.maxlog = len(repo)   self.grapher = grapher   self.nodes = []   self.nodesdict = {}