comparison hgext/automv.py @ 42543:abd902a85040

automv: use public API for getting copies Differential Revision: https://phab.mercurial-scm.org/D6585
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 28 Jun 2019 14:07:09 -0700
parents f89aad980025
children 2702dfc7e029
comparison
equal deleted inserted replaced
42542:2e1d9414ff71 42543:abd902a85040
82 """ 82 """
83 stat = repo.status(match=matcher) 83 stat = repo.status(match=matcher)
84 added = stat[1] 84 added = stat[1]
85 removed = stat[2] 85 removed = stat[2]
86 86
87 copy = copies._forwardcopies(repo['.'], repo[None], matcher) 87 copy = copies.pathcopies(repo['.'], repo[None], matcher)
88 # remove the copy files for which we already have copy info 88 # remove the copy files for which we already have copy info
89 added = [f for f in added if f not in copy] 89 added = [f for f in added if f not in copy]
90 90
91 return added, removed 91 return added, removed
92 92