comparison mercurial/revset.py @ 22498:64673dc48931

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 17 Sep 2014 10:59:30 -0700
parents 8ea3f47bcaff
children 8c9f9e346acc
comparison
equal deleted inserted replaced
22497:8ea3f47bcaff 22498:64673dc48931
1165 if prev is None: 1165 if prev is None:
1166 return src 1166 return src
1167 src = prev 1167 src = prev
1168 1168
1169 o = set([_firstsrc(r) for r in args]) 1169 o = set([_firstsrc(r) for r in args])
1170 o -= set([None])
1170 return subset.filter(o.__contains__) 1171 return subset.filter(o.__contains__)
1171 1172
1172 def outgoing(repo, subset, x): 1173 def outgoing(repo, subset, x):
1173 """``outgoing([path])`` 1174 """``outgoing([path])``
1174 Changesets not found in the specified destination repository, or the 1175 Changesets not found in the specified destination repository, or the