Mercurial > hg-stable
changeset 6581:1ae7cb678d24
cmdutil: switch commit to match
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:07 -0500 |
parents | da2a20d2ba3d |
children | 5acbdd3941c4 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon May 12 11:37:07 2008 -0500 +++ b/mercurial/cmdutil.py Mon May 12 11:37:07 2008 -0500 @@ -1149,13 +1149,13 @@ if opts.get('addremove'): addremove(repo, pats, opts) - fns, match, anypats = matchpats(repo, pats, opts) + m = match(repo, pats, opts) if pats: - status = repo.status(files=fns, match=match) + status = repo.status(files=m.files(), match=m) modified, added, removed, deleted, unknown = status[:5] files = modified + added + removed slist = None - for f in fns: + for f in m.files(): if f == '.': continue if f not in files: