comparison hgext/automv.py @ 42544:2702dfc7e029

automv: access status fields by name, not index Differential Revision: https://phab.mercurial-scm.org/D6586
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 28 Jun 2019 14:13:00 -0700
parents abd902a85040
children 2372284d9457
comparison
equal deleted inserted replaced
42543:abd902a85040 42544:2702dfc7e029
79 Returns a tuple of two lists: (added, removed). Only files not *already* 79 Returns a tuple of two lists: (added, removed). Only files not *already*
80 marked as moved are included in the added list. 80 marked as moved are included in the added list.
81 81
82 """ 82 """
83 stat = repo.status(match=matcher) 83 stat = repo.status(match=matcher)
84 added = stat[1] 84 added = stat.added
85 removed = stat[2] 85 removed = stat.removed
86 86
87 copy = copies.pathcopies(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