diff hgext/automv.py @ 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 7c40b4b7f8f1
children e8c2a60864fc
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]