Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 28017:d3f1b7ee5e70
match: rename "narrowmatcher" to "subdirmatcher" (API)
I keep mistaking "narrowmatcher" for narrowhg's
narrowmatcher. "subdirmatcher" seems more to the point anyway.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 05 Feb 2016 21:09:32 -0800 |
parents | 2d6a89e79b48 |
children | 2ada62388bb1 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Wed Feb 03 18:59:35 2016 +0000 +++ b/mercurial/scmutil.py Fri Feb 05 21:09:32 2016 -0800 @@ -913,7 +913,7 @@ if opts.get('subrepos') or matchessubrepo(m, subpath): sub = wctx.sub(subpath) try: - submatch = matchmod.narrowmatcher(subpath, m) + submatch = matchmod.subdirmatcher(subpath, m) if sub.addremove(submatch, prefix, opts, dry_run, similarity): ret = 1 except error.LookupError: