Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/changeset: show MAR status of files in changeset

Changeset e2f60714d822

Parent c2e4a6d18437

by Steve Borho

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

 
175
176
177
 
178
179
180
181
 
 
 
 
 
 
 
 
 
 
 
 
 
182
183
184
 
382
383
384
385
 
386
387
388
 
175
176
177
178
179
180
181
 
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
 
395
396
397
 
398
399
400
401
@@ -175,10 +175,23 @@
  filelist.append(('[Description]', 'begmark', False, ()))     # inserts the marks + pctx = self.repo.changectx(parent)   for f, mark, offset, stats in fileoffs:   pos = buf.get_iter_at_offset(offset)   buf.create_mark(mark, pos) - filelist.append((f, mark, True, (stats[0],stats[1],statmax))) + # This is probably too clever by half, but it works. If + # we're unable to lookup the file in the current manifest it + # means it was just deleted. If we can't find it in the + # parent, it means it was just added. Else it was modified. + try: + fs = 'R ' + f + ctx.filectx(f) + fs = 'A ' + f + pctx.filectx(f) + fs = 'M ' + f + except revlog.LookupError: + pass + filelist.append((fs, mark, True, (stats[0],stats[1],statmax)))     sob, eob = buf.get_bounds()   buf.apply_tag_by_name("mono", sob, eob) @@ -382,7 +395,7 @@
  mark = self._buffer.get_mark(model[iter][1])   self.textview.scroll_to_mark(mark, 0.0, True, 0.0, 0.0)   if model[iter][2]: - self.curfile = model[iter][0] + self.curfile = model[iter][0][3:]   else:   self.curfile = None