Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sparse.py @ 41687:0531dff73d0b
match: delete unused root and cwd arguments from {always,never,exact}() (API)
Differential Revision: https://phab.mercurial-scm.org/D5930
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 09 Feb 2019 22:50:53 -0800 |
parents | ddbebce94665 |
children | aaad36b88298 |
line wrap: on
line diff
--- a/mercurial/sparse.py Sun Feb 10 14:35:36 2019 -0800 +++ b/mercurial/sparse.py Sat Feb 09 22:50:53 2019 -0800 @@ -277,7 +277,7 @@ """ # If sparse isn't enabled, sparse matcher matches everything. if not enabled: - return matchmod.always(repo.root, '') + return matchmod.always() if not revs or revs == [None]: revs = [repo.changelog.rev(node) @@ -305,7 +305,7 @@ pass if not matchers: - result = matchmod.always(repo.root, '') + result = matchmod.always() elif len(matchers) == 1: result = matchers[0] else: