hgext/automv.py
changeset 28148 e8c2a60864fc
parent 28146 28024d0d42dc
child 28149 d356d5250ab2
equal deleted inserted replaced
28147:26b61576af0e 28148:e8c2a60864fc
    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]