Show More
@@ -362,7 +362,13 b' def rangeset(repo, subset, x, y):' | |||
|
362 | 362 | return baseset() |
|
363 | 363 | m, n = m.first(), n.last() |
|
364 | 364 | |
|
365 |
if m |
|
|
365 | if m == n: | |
|
366 | r = baseset([m]) | |
|
367 | elif n == node.wdirrev: | |
|
368 | r = spanset(repo, m, len(repo)) + baseset([n]) | |
|
369 | elif m == node.wdirrev: | |
|
370 | r = baseset([m]) + spanset(repo, len(repo) - 1, n - 1) | |
|
371 | elif m < n: | |
|
366 | 372 | r = spanset(repo, m, n + 1) |
|
367 | 373 | else: |
|
368 | 374 | r = spanset(repo, m, n - 1) |
@@ -726,6 +726,16 b' Test working-directory revision' | |||
|
726 | 726 | 9 |
|
727 | 727 | 2147483647 |
|
728 | 728 | $ hg debugrevspec '0:tip and wdir()' |
|
729 | $ log '0:wdir()' | tail -3 | |
|
730 | 8 | |
|
731 | 9 | |
|
732 | 2147483647 | |
|
733 | $ log 'wdir():0' | head -3 | |
|
734 | 2147483647 | |
|
735 | 9 | |
|
736 | 8 | |
|
737 | $ log 'wdir():wdir()' | |
|
738 | 2147483647 | |
|
729 | 739 | $ log '(all() + wdir()) & min(. + wdir())' |
|
730 | 740 | 9 |
|
731 | 741 | $ log '(all() + wdir()) & max(. + wdir())' |
General Comments 0
You need to be logged in to leave comments.
Login now