changeset 22497:8ea3f47bcaff

revset: remove nullrev from set computed in parents() The old code relied on the subset contents to get rid of invalid values. We would like to be able to rely more on the computation in parents() so we filter out the invalid value.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 17 Sep 2014 19:49:26 -0700
parents 35af9361a049
children 64673dc48931
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Wed Sep 17 19:44:03 2014 -0700
+++ b/mercurial/revset.py	Wed Sep 17 19:49:26 2014 -0700
@@ -1237,6 +1237,7 @@
         cl = repo.changelog
         for r in getset(repo, spanset(repo), x):
             ps.update(cl.parentrevs(r))
+    ps -= set([node.nullrev])
     return baseset(ps) & subset
 
 def parentspec(repo, subset, x, n):