Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 20443:b68984d288d4
revset: changed getset so that it can return a lazyset
Not converting it manually to a baseset anymore. At this point every revset
method should return a baseset typed structure.
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Tue, 28 Jan 2014 15:19:14 -0800 |
parents | f5b560c60bcd |
children | 507261c0914f |
comparison
equal
deleted
inserted
replaced
20442:8524cdf66a12 | 20443:b68984d288d4 |
---|---|
193 return l | 193 return l |
194 | 194 |
195 def getset(repo, subset, x): | 195 def getset(repo, subset, x): |
196 if not x: | 196 if not x: |
197 raise error.ParseError(_("missing argument")) | 197 raise error.ParseError(_("missing argument")) |
198 return baseset(methods[x[0]](repo, subset, *x[1:])) | 198 return methods[x[0]](repo, subset, *x[1:]) |
199 | 199 |
200 def _getrevsource(repo, r): | 200 def _getrevsource(repo, r): |
201 extra = repo[r].extra() | 201 extra = repo[r].extra() |
202 for label in ('source', 'transplant_source', 'rebase_source'): | 202 for label in ('source', 'transplant_source', 'rebase_source'): |
203 if label in extra: | 203 if label in extra: |