Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 6599:cd4db3999ef9
status: use match helpers for various users
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | fca1688f0459 |
children | b822a379860b |
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 @@ -2363,7 +2363,8 @@ if abs not in names: names[abs] = m.rel(abs), m.exact(abs) - changes = repo.status(files=files, match=names.has_key)[:4] + m = cmdutil.matchfiles(repo, names) + changes = repo.status(files=m.files(), match=m)[:4] modified, added, removed, deleted = map(dict.fromkeys, changes) # if f is a rename, also revert the source