git-cl: Fix git-cl split.

Change-Id: I6ca167e34829cd7694372923917446c3843c879f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2129146
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
changes/46/2129146/2
Edward Lesmes 6 years ago committed by LUCI CQ
parent 0610193326
commit 17ffd9875c

@ -18,6 +18,7 @@ import gclient_utils
import git_footers
import owners
import owners_finder
import scm
import git_common as git
@ -147,9 +148,9 @@ def GetFilesSplitByOwners(owners_database, files):
values are lists of files sharing an OWNERS file.
"""
files_split_by_owners = collections.defaultdict(list)
for _, f in files:
enclosing_dir = owners_database.enclosing_dir_with_owners(f)
files_split_by_owners[enclosing_dir].append(f)
for action, path in files:
enclosing_dir = owners_database.enclosing_dir_with_owners(path)
files_split_by_owners[enclosing_dir].append((action, path))
return files_split_by_owners

Loading…
Cancel
Save