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

history: cleanup calculation of changeset status

Changeset cf86c3624aa1

Parent e040756219ba

by Steve Borho

Changes to one file · Browse files at cf86c3624aa1 Showing diff from parent e040756219ba Diff from another changeset...

 
172
173
174
 
175
176
 
177
178
 
179
180
181
182
 
183
184
 
185
186
187
188
 
189
190
191
192
193
194
195
 
 
196
197
198
 
172
173
174
175
176
177
178
179
180
181
182
183
184
 
185
186
187
188
189
190
191
 
192
193
 
 
 
 
 
 
194
195
196
197
198
@@ -172,27 +172,27 @@
  color = self.color_func(revid, author)   if revid in self.wcparents:   sumstr = bstr + tstr + '<b><u>' + summary + '</u></b>' + status = 4   else:   sumstr = bstr + tstr + summary + status = 0     if node in self.outgoing: + # outgoing   if not self.showgraph:   marker = hglib.toutf(u'\u2191 ') # up arrow   sumstr = marker + sumstr - status = 1 + status += 1   elif revid >= self.origtip:   if revid >= len(self.repo) - self.npreviews: + # incoming   if not self.showgraph:   marker = hglib.toutf(u'\u2193 ') # down arrow   sumstr = marker + sumstr - status = 3 + status += 3   else: - status = 2 - else: - status = 0 - - if revid in self.wcparents: - status += 4 + # new + status += 2     revision = (sumstr, author, taglist, color, age, status)   self.revisions[revid] = revision