From edd94d2b8c50d604e136c1fcb57926a24c6116b7 Mon Sep 17 00:00:00 2001 From: Adrian Taylor Date: Tue, 10 Nov 2020 04:54:56 +0000 Subject: [PATCH] Fix owners.py all_possible_owners API Previously this API didn't work unless some other API had first been called to load the data. Change-Id: Iff9b36c48b45b64dc2f9b95230955858501903dd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2528111 Reviewed-by: Dirk Pranke Commit-Queue: Adrian Taylor --- owners.py | 1 + 1 file changed, 1 insertion(+) diff --git a/owners.py b/owners.py index fb4821351..de246359f 100644 --- a/owners.py +++ b/owners.py @@ -574,6 +574,7 @@ class Database(object): subsequent math easier). """ + self.load_data_needed_for(dirs_and_files) all_possible_owners_for_dir_or_file_cache = {} all_possible_owners = {} for current_dir in dirs_and_files: