revset: remove invalid value in the origin set
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 17 Sep 2014 10:59:30 -0700
changeset 22498 64673dc48931
parent 22497 8ea3f47bcaff
child 22499 8c9f9e346acc
revset: remove invalid value in the origin set Same as the parents related revsets, origin had some invalid value in the computed set. We remove them.
mercurial/revset.py
--- a/mercurial/revset.py	Wed Sep 17 19:49:26 2014 -0700
+++ b/mercurial/revset.py	Wed Sep 17 10:59:30 2014 -0700
@@ -1167,6 +1167,7 @@
             src = prev
 
     o = set([_firstsrc(r) for r in args])
+    o -= set([None])
     return subset.filter(o.__contains__)
 
 def outgoing(repo, subset, x):