Show More
@@ -75,9 +75,14 b' def _revancestors(repo, revs, followfirs' | |||||
75 | if current not in seen: |
|
75 | if current not in seen: | |
76 | seen.add(current) |
|
76 | seen.add(current) | |
77 | yield current |
|
77 | yield current | |
78 | for parent in cl.parentrevs(current)[:cut]: |
|
78 | try: | |
79 |
|
|
79 | for parent in cl.parentrevs(current)[:cut]: | |
80 |
|
|
80 | if parent != node.nullrev: | |
|
81 | heapq.heappush(h, -parent) | |||
|
82 | except error.WdirUnsupported: | |||
|
83 | for parent in repo[current].parents()[:cut]: | |||
|
84 | if parent.rev() != node.nullrev: | |||
|
85 | heapq.heappush(h, -parent.rev()) | |||
81 |
|
86 | |||
82 | return generatorset(iterate(), iterasc=False) |
|
87 | return generatorset(iterate(), iterasc=False) | |
83 |
|
88 |
@@ -1231,6 +1231,16 b' Test working-directory revision' | |||||
1231 | 2147483647 |
|
1231 | 2147483647 | |
1232 | $ hg debugrevspec 'wdir()~3' |
|
1232 | $ hg debugrevspec 'wdir()~3' | |
1233 | 5 |
|
1233 | 5 | |
|
1234 | $ hg debugrevspec 'ancestors(wdir())' | |||
|
1235 | 0 | |||
|
1236 | 1 | |||
|
1237 | 2 | |||
|
1238 | 3 | |||
|
1239 | 4 | |||
|
1240 | 5 | |||
|
1241 | 6 | |||
|
1242 | 7 | |||
|
1243 | 2147483647 | |||
1234 | $ hg debugrevspec 'wdir()~0' |
|
1244 | $ hg debugrevspec 'wdir()~0' | |
1235 | 2147483647 |
|
1245 | 2147483647 | |
1236 | $ hg debugrevspec 'p1(wdir())' |
|
1246 | $ hg debugrevspec 'p1(wdir())' |
General Comments 0
You need to be logged in to leave comments.
Login now