Mercurial > hg-stable
changeset 28146:28024d0d42dc
automv: simplify retrieving the status
The default is to show the status in the current working copy, no need to pass
in the parent and working copy context here.
author | Martijn Pieters <mjpieters@fb.com> |
---|---|
date | Mon, 15 Feb 2016 16:40:06 +0000 |
parents | cfa0037448f4 |
children | 26b61576af0e |
files | hgext/automv.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/automv.py Mon Feb 08 05:56:25 2016 +0000 +++ b/hgext/automv.py Mon Feb 15 16:40:06 2016 +0000 @@ -46,7 +46,7 @@ return orig(ui, repo, *pats, **opts) def _interestingfiles(repo, matcher): - stat = repo.status(repo['.'], repo[None], matcher) + stat = repo.status(match=matcher) added = stat[1] removed = stat[2]