Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 22869:a9fb3d598ca2
revset-destination: remove usage of `set()`
All smartset classes have fast lookup, so this function will be removed soon.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 08 Oct 2014 02:47:46 -0700 |
parents | 88ad04bcdc74 |
children | 970d78f3f47c |
comparison
equal
deleted
inserted
replaced
22868:88ad04bcdc74 | 22869:a9fb3d598ca2 |
---|---|
690 Changesets that were created by a graft, transplant or rebase operation, | 690 Changesets that were created by a graft, transplant or rebase operation, |
691 with the given revisions specified as the source. Omitting the optional set | 691 with the given revisions specified as the source. Omitting the optional set |
692 is the same as passing all(). | 692 is the same as passing all(). |
693 """ | 693 """ |
694 if x is not None: | 694 if x is not None: |
695 args = getset(repo, spanset(repo), x).set() | 695 args = getset(repo, spanset(repo), x) |
696 else: | 696 else: |
697 args = getall(repo, spanset(repo), x).set() | 697 args = getall(repo, spanset(repo), x) |
698 | 698 |
699 dests = set() | 699 dests = set() |
700 | 700 |
701 # subset contains all of the possible destinations that can be returned, so | 701 # subset contains all of the possible destinations that can be returned, so |
702 # iterate over them and see if their source(s) were provided in the args. | 702 # iterate over them and see if their source(s) were provided in the args. |