Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 6603:41eb20cc1c02
match: remove files arg from repo.status and friends
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | a57a27b12965 |
children | bf2bf986ff87 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon May 12 11:37:08 2008 -0500 +++ b/mercurial/commands.py Mon May 12 11:37:08 2008 -0500 @@ -2180,7 +2180,7 @@ raise util.Abort(_('no files specified')) m = cmdutil.match(repo, pats, opts) - mardu = map(dict.fromkeys, repo.status(files=m.files(), match=m))[:5] + mardu = map(dict.fromkeys, repo.status(match=m))[:5] modified, added, removed, deleted, unknown = mardu remove, forget = [], [] @@ -2363,7 +2363,7 @@ names[abs] = m.rel(abs), m.exact(abs) m = cmdutil.matchfiles(repo, names) - changes = repo.status(files=m.files(), match=m)[:4] + changes = repo.status(match=m)[:4] modified, added, removed, deleted = map(dict.fromkeys, changes) # if f is a rename, also revert the source @@ -2630,7 +2630,7 @@ matcher = cmdutil.match(repo, pats, opts) cwd = (pats and repo.getcwd()) or '' modified, added, removed, deleted, unknown, ignored, clean = [ - n for n in repo.status(node1, node2, matcher.files(), matcher, + n for n in repo.status(node1, node2, matcher, list_ignored=opts['ignored'] or all and not ui.quiet, list_clean=opts['clean'] or all,