automv: simplify retrieving the status
authorMartijn Pieters <mjpieters@fb.com>
Mon, 15 Feb 2016 16:40:06 +0000
changeset 28146 28024d0d42dc
parent 28145 cfa0037448f4
child 28147 26b61576af0e
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.
hgext/automv.py
--- 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]