diff mercurial/revset.py @ 23956:b1e026c25552 stable

revset: fix ancestors(null) to include null revision (issue4512) Since 13c0327eeb6f, null parent is explicitly excluded. So, there is no reason to have nullrev in the initial seen set.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 25 Jan 2015 20:20:27 +0900
parents 310222feb9a8
children eeb5d5ab14a6
line wrap: on
line diff
--- a/mercurial/revset.py	Sat Jan 10 13:14:00 2015 +0900
+++ b/mercurial/revset.py	Sun Jan 25 20:20:27 2015 +0900
@@ -31,7 +31,7 @@
             revsnode = revqueue.popleft()
             heapq.heappush(h, -revsnode)
 
-        seen = set([node.nullrev])
+        seen = set()
         while h:
             current = -heapq.heappop(h)
             if current not in seen: