Show More
@@ -130,13 +130,13 b' def _revstostrip(changelog, node):' | |||
|
130 | 130 | srev = changelog.rev(node) |
|
131 | 131 | tostrip = [srev] |
|
132 | 132 | saveheads = [] |
|
133 |
for r in xrange(srev, |
|
|
133 | for r in xrange(srev, len(changelog)): | |
|
134 | 134 | parents = changelog.parentrevs(r) |
|
135 | 135 | if parents[0] in tostrip or parents[1] in tostrip: |
|
136 | 136 | tostrip.append(r) |
|
137 | 137 | if parents[1] != nullrev: |
|
138 | 138 | for p in parents: |
|
139 |
if p not in tostrip and p > s |
|
|
139 | if p not in tostrip and p > srev: | |
|
140 | 140 | saveheads.append(p) |
|
141 | 141 | return [r for r in tostrip if r not in saveheads] |
|
142 | 142 |
General Comments 0
You need to be logged in to leave comments.
Login now