Commit 17ffd987 authored by Edward Lesmes's avatar Edward Lesmes Committed by LUCI CQ

git-cl: Fix git-cl split.

Change-Id: I6ca167e34829cd7694372923917446c3843c879f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2129146Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 06101933
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment