Show More
@@ -289,18 +289,19 b' class repository:' | |||
|
289 | 289 | tr = self.transaction() |
|
290 | 290 | changed = {} |
|
291 | 291 | new = {} |
|
292 |
|
|
|
292 | seqrev = self.changelog.count() | |
|
293 | # some magic to allow fiddling in nested scope | |
|
294 | nextrev = [seqrev] | |
|
293 | 295 | |
|
294 | 296 | # helpers for back-linking file revisions to local changeset |
|
295 | 297 | # revisions so we can immediately get to changeset from annotate |
|
296 | 298 | def accumulate(text): |
|
297 | n = nextrev | |
|
298 | 299 | # track which files are added in which changeset and the |
|
299 | 300 | # corresponding _local_ changeset revision |
|
300 | 301 | files = self.changelog.extract(text)[3] |
|
301 | 302 | for f in files: |
|
302 | changed.setdefault(f, []).append(n) | |
|
303 | n += 1 | |
|
303 | changed.setdefault(f, []).append(nextrev[0]) | |
|
304 | nextrev[0] += 1 | |
|
304 | 305 | |
|
305 | 306 | def seq(start): |
|
306 | 307 | while 1: |
General Comments 0
You need to be logged in to leave comments.
Login now