Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 22872:45afc86567ce
revset-origin: 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:49:17 -0700 |
parents | 9b73ab9bcbfb |
children | e15027cc4cd8 |
comparison
equal
deleted
inserted
replaced
22871:9b73ab9bcbfb | 22872:45afc86567ce |
---|---|
1149 same as passing all(). If a changeset created by these operations is itself | 1149 same as passing all(). If a changeset created by these operations is itself |
1150 specified as a source for one of these operations, only the source changeset | 1150 specified as a source for one of these operations, only the source changeset |
1151 for the first operation is selected. | 1151 for the first operation is selected. |
1152 """ | 1152 """ |
1153 if x is not None: | 1153 if x is not None: |
1154 args = getset(repo, spanset(repo), x).set() | 1154 args = getset(repo, spanset(repo), x) |
1155 else: | 1155 else: |
1156 args = getall(repo, spanset(repo), x).set() | 1156 args = getall(repo, spanset(repo), x) |
1157 | 1157 |
1158 def _firstsrc(rev): | 1158 def _firstsrc(rev): |
1159 src = _getrevsource(repo, rev) | 1159 src = _getrevsource(repo, rev) |
1160 if src is None: | 1160 if src is None: |
1161 return None | 1161 return None |