# HG changeset patch
# User Martijn Pieters <mjpieters@fb.com>
# Date 2016-02-15 16:40:06
# Node ID 28024d0d42dcc49fdf5c4af9200f939571ba9f7b
# Parent  cfa0037448f4c1cdaa8b2be8ff669d93d005190f

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.

diff --git a/hgext/automv.py b/hgext/automv.py
--- a/hgext/automv.py
+++ b/hgext/automv.py
@@ -46,7 +46,7 @@ def mvcheck(orig, ui, repo, *pats, **opt
         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]