equal
deleted
inserted
replaced
34 """return the nodes that have to be saved before the strip""" |
34 """return the nodes that have to be saved before the strip""" |
35 def collectone(revlog): |
35 def collectone(revlog): |
36 extra = [] |
36 extra = [] |
37 startrev = count = len(revlog) |
37 startrev = count = len(revlog) |
38 # find the truncation point of the revlog |
38 # find the truncation point of the revlog |
39 for i in xrange(0, count): |
39 for i in xrange(count): |
40 lrev = revlog.linkrev(i) |
40 lrev = revlog.linkrev(i) |
41 if lrev >= link: |
41 if lrev >= link: |
42 startrev = i + 1 |
42 startrev = i + 1 |
43 break |
43 break |
44 |
44 |