Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.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 | fe1abb5d92f6 |
children | ff24af40728b |
line wrap: on
line diff
--- a/mercurial/revset.py Wed Oct 01 20:26:33 2014 -0400 +++ b/mercurial/revset.py Mon Feb 02 22:21:07 2015 +0900 @@ -2448,7 +2448,9 @@ tree = findaliases(ui, tree, showwarning=ui.warn) tree = foldconcat(tree) weight, tree = optimize(tree, True) - def mfunc(repo, subset): + def mfunc(repo, subset=None): + if subset is None: + subset = spanset(repo) if util.safehasattr(subset, 'isascending'): result = getset(repo, subset, tree) else: