diff -r da2a20d2ba3d -r 1ae7cb678d24 mercurial/cmdutil.py --- 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: