[PATCH 1 of 7 clowncopter] automv: simplify retrieving the status

Martijn Pieters mj at zopatista.com
Mon Feb 15 17:24:55 UTC 2016


# HG changeset patch
# User Martijn Pieters <mjpieters at fb.com>
# Date 1455554406 0
#      Mon Feb 15 16:40:06 2016 +0000
# Node ID 4904e8501f80830478e78f3aef668db7500e0cfe
# Parent  578f310184228f381366b8dfc9d40ac2520be011
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 @@
         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]
 


More information about the Mercurial-devel mailing list