Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.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 | 13f7a6a4f0db |
children | 8185c8abce87 |
comparison
equal
deleted
inserted
replaced
41686:ddbebce94665 | 41687:0531dff73d0b |
---|---|
2071 args = getargs(x, 0, 1, _('subrepo takes at most one argument')) | 2071 args = getargs(x, 0, 1, _('subrepo takes at most one argument')) |
2072 pat = None | 2072 pat = None |
2073 if len(args) != 0: | 2073 if len(args) != 0: |
2074 pat = getstring(args[0], _("subrepo requires a pattern")) | 2074 pat = getstring(args[0], _("subrepo requires a pattern")) |
2075 | 2075 |
2076 m = matchmod.exact(repo.root, repo.root, ['.hgsubstate']) | 2076 m = matchmod.exact(['.hgsubstate']) |
2077 | 2077 |
2078 def submatches(names): | 2078 def submatches(names): |
2079 k, p, m = stringutil.stringmatcher(pat) | 2079 k, p, m = stringutil.stringmatcher(pat) |
2080 for name in names: | 2080 for name in names: |
2081 if m(name): | 2081 if m(name): |