revset: remove nullrev from the bookmark computation
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 17 Sep 2014 19:56:59 -0700
changeset 22500 171015d3b30c
parent 22499 8c9f9e346acc
child 22501 bde49bbfb30f
revset: remove nullrev from the bookmark computation Same as for other revset we sanitize the content of the set to be able to rely on it more.
mercurial/revset.py
--- a/mercurial/revset.py	Wed Sep 17 10:58:25 2014 -0700
+++ b/mercurial/revset.py	Wed Sep 17 19:56:59 2014 -0700
@@ -467,6 +467,7 @@
     else:
         bms = set([repo[r].rev()
                    for r in repo._bookmarks.values()])
+    bms -= set([node.nullrev])
     return subset.filter(bms.__contains__)
 
 def branch(repo, subset, x):