comparison mercurial/revset.py @ 22500:171015d3b30c

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 17 Sep 2014 19:56:59 -0700
parents 8c9f9e346acc
children c425b22a7ca5
comparison
equal deleted inserted replaced
22499:8c9f9e346acc 22500:171015d3b30c
465 for bmrev in matchrevs: 465 for bmrev in matchrevs:
466 bms.add(repo[bmrev].rev()) 466 bms.add(repo[bmrev].rev())
467 else: 467 else:
468 bms = set([repo[r].rev() 468 bms = set([repo[r].rev()
469 for r in repo._bookmarks.values()]) 469 for r in repo._bookmarks.values()])
470 bms -= set([node.nullrev])
470 return subset.filter(bms.__contains__) 471 return subset.filter(bms.__contains__)
471 472
472 def branch(repo, subset, x): 473 def branch(repo, subset, x):
473 """``branch(string or set)`` 474 """``branch(string or set)``
474 All changesets belonging to the given branch or the branches of the given 475 All changesets belonging to the given branch or the branches of the given