Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/lfcommands.py @ 34083:08346a8fa65f
cleanup: rename "matchfn" to "match" where obviously a matcher
We usually call matchers either "match" or "m" and reserve "matchfn"
for functions.
Differential Revision: https://phab.mercurial-scm.org/D641
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Sep 2017 15:06:45 -0700 |
parents | 04baab18d60a |
children | 3f3c6d12095d |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Wed Sep 06 08:22:54 2017 -0700 +++ b/hgext/largefiles/lfcommands.py Tue Sep 05 15:06:45 2017 -0700 @@ -422,14 +422,13 @@ return ([], []) def downloadlfiles(ui, repo, rev=None): - matchfn = scmutil.match(repo[None], - [repo.wjoin(lfutil.shortname)], {}) + match = scmutil.match(repo[None], [repo.wjoin(lfutil.shortname)], {}) def prepare(ctx, fns): pass totalsuccess = 0 totalmissing = 0 if rev != []: # walkchangerevs on empty list would return all revs - for ctx in cmdutil.walkchangerevs(repo, matchfn, {'rev' : rev}, + for ctx in cmdutil.walkchangerevs(repo, match, {'rev' : rev}, prepare): success, missing = cachelfiles(ui, repo, ctx.node()) totalsuccess += len(success)