39 match = scmutil.match(repo[None], pats, opts) |
39 match = scmutil.match(repo[None], pats, opts) |
40 added, removed = _interestingfiles(repo, match) |
40 added, removed = _interestingfiles(repo, match) |
41 renames = _findrenames(repo, match, added, removed, threshold) |
41 renames = _findrenames(repo, match, added, removed, threshold) |
42 _markchanges(repo, renames) |
42 _markchanges(repo, renames) |
43 |
43 |
44 # developer config: automv.testmode |
44 return orig(ui, repo, *pats, **opts) |
45 if not ui.configbool('automv', 'testmode'): |
|
46 return orig(ui, repo, *pats, **opts) |
|
47 |
45 |
48 def _interestingfiles(repo, matcher): |
46 def _interestingfiles(repo, matcher): |
49 stat = repo.status(match=matcher) |
47 stat = repo.status(match=matcher) |
50 added = stat[1] |
48 added = stat[1] |
51 removed = stat[2] |
49 removed = stat[2] |