Show More
@@ -35,7 +35,7 b' def _collectfiles(repo, striprev):' | |||
|
35 | 35 | |
|
36 | 36 | def _collectextranodes(repo, files, link): |
|
37 | 37 | """return the nodes that have to be saved before the strip""" |
|
38 | def collectone(revlog): | |
|
38 | def collectone(cl, revlog): | |
|
39 | 39 | extra = [] |
|
40 | 40 | startrev = count = len(revlog) |
|
41 | 41 | # find the truncation point of the revlog |
@@ -57,12 +57,12 b' def _collectextranodes(repo, files, link' | |||
|
57 | 57 | |
|
58 | 58 | extranodes = {} |
|
59 | 59 | cl = repo.changelog |
|
60 | extra = collectone(repo.manifest) | |
|
60 | extra = collectone(cl, repo.manifest) | |
|
61 | 61 | if extra: |
|
62 | 62 | extranodes[1] = extra |
|
63 | 63 | for fname in files: |
|
64 | 64 | f = repo.file(fname) |
|
65 | extra = collectone(f) | |
|
65 | extra = collectone(cl, f) | |
|
66 | 66 | if extra: |
|
67 | 67 | extranodes[fname] = extra |
|
68 | 68 |
General Comments 0
You need to be logged in to leave comments.
Login now