comparison 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
comparison
equal deleted inserted replaced
28145:cfa0037448f4 28146:28024d0d42dc
44 # developer config: automv.testmode 44 # developer config: automv.testmode
45 if not ui.configbool('automv', 'testmode'): 45 if not ui.configbool('automv', 'testmode'):
46 return orig(ui, repo, *pats, **opts) 46 return orig(ui, repo, *pats, **opts)
47 47
48 def _interestingfiles(repo, matcher): 48 def _interestingfiles(repo, matcher):
49 stat = repo.status(repo['.'], repo[None], matcher) 49 stat = repo.status(match=matcher)
50 added = stat[1] 50 added = stat[1]
51 removed = stat[2] 51 removed = stat[2]
52 52
53 copy = copies._forwardcopies(repo['.'], repo[None], matcher) 53 copy = copies._forwardcopies(repo['.'], repo[None], matcher)
54 # remove the copy files for which we already have copy info 54 # remove the copy files for which we already have copy info