Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 23533:891aaa7c0c70
scmutil: pass a matcher to scmutil.addremove() instead of a list of patterns
This will make it easier to support subrepository operations.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 09 Nov 2014 19:57:02 -0500 |
parents | 2164226a5637 |
children | f1b06a8aad42 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Dec 10 23:46:47 2014 -0500 +++ b/mercurial/commands.py Sun Nov 09 19:57:02 2014 -0500 @@ -235,7 +235,8 @@ raise util.Abort(_('similarity must be a number')) if sim < 0 or sim > 100: raise util.Abort(_('similarity must be between 0 and 100')) - return scmutil.addremove(repo, pats, opts, similarity=sim / 100.0) + matcher = scmutil.match(repo[None], pats, opts) + return scmutil.addremove(repo, matcher, opts, similarity=sim / 100.0) @command('^annotate|blame', [('r', 'rev', '', _('annotate the specified revision'), _('REV')),