Mercurial > hg
diff mercurial/scmutil.py @ 24114:fafd9a1284cf
revset: make match function initiate query from full set by default
This change is intended to avoid exposing the implementation detail to
callers. I'm going to extend fullreposet to support "null" revision, so
these mfunc calls will have to use fullreposet() instead of spanset().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 02 Feb 2015 22:21:07 +0900 |
parents | 164915e8ef7b |
children | c4e3e7b031b7 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Wed Oct 01 20:26:33 2014 -0400 +++ b/mercurial/scmutil.py Mon Feb 02 22:21:07 2015 +0900 @@ -672,11 +672,11 @@ # fall through to new-style queries if old-style fails m = revset.match(repo.ui, spec, repo) if seen or l: - dl = [r for r in m(repo, revset.spanset(repo)) if r not in seen] + dl = [r for r in m(repo) if r not in seen] l = l + revset.baseset(dl) seen.update(dl) else: - l = m(repo, revset.spanset(repo)) + l = m(repo) return l