Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: tools/bisect-builds.py

Issue 1131403003: bisect-builds.py: Save cache in parent scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bisect-builds.py
diff --git a/tools/bisect-builds.py b/tools/bisect-builds.py
index c2105b8b6ddc75d1ac7f5a53a78dfa652dd50ab4..7e07e3d03761dac31b0fdefa4cc611cd46f12c8d 100755
--- a/tools/bisect-builds.py
+++ b/tools/bisect-builds.py
@@ -444,7 +444,8 @@ class PathContext(object):
if self.use_local_cache:
try:
with open(cache_filename) as cache_file:
- cache = json.load(cache_file)
+ for (key, value) in json.load(cache_file).items():
+ cache[key] = value
revisions = cache.get(cache_dict_key, [])
githash_svn_dict = cache.get('githash_svn_dict', {})
if revisions:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698