##// END OF EJS Templates
revset: fix ancestors(null) to include null revision (issue4512)...
Yuya Nishihara -
r23956:b1e026c2 stable
parent child Browse files
Show More
@@ -31,7 +31,7 b' def _revancestors(repo, revs, followfirs'
31 revsnode = revqueue.popleft()
31 revsnode = revqueue.popleft()
32 heapq.heappush(h, -revsnode)
32 heapq.heappush(h, -revsnode)
33
33
34 seen = set([node.nullrev])
34 seen = set()
35 while h:
35 while h:
36 current = -heapq.heappop(h)
36 current = -heapq.heappop(h)
37 if current not in seen:
37 if current not in seen:
@@ -635,6 +635,20 b' log -f -r 1:tip'
635
635
636
636
637
637
638 log -f -r null
639
640 $ hg log -f -r null
641 changeset: -1:000000000000
642 user:
643 date: Thu Jan 01 00:00:00 1970 +0000
644
645 $ hg log -f -r null -G
646 o changeset: -1:000000000000
647 user:
648 date: Thu Jan 01 00:00:00 1970 +0000
649
650
651
638 log -r . with two parents
652 log -r . with two parents
639
653
640 $ hg up -C 3
654 $ hg up -C 3
@@ -477,6 +477,10 b' Test explicit numeric revision'
477 hg: parse error: rev expects a number
477 hg: parse error: rev expects a number
478 [255]
478 [255]
479
479
480 Test null revision
481 $ log 'ancestors(null)'
482 -1
483
480 $ log 'outgoing()'
484 $ log 'outgoing()'
481 8
485 8
482 9
486 9
General Comments 0
You need to be logged in to leave comments. Login now