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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py

Issue 2237083002: In rebaseline-cl: add option to only rebaseline tests changed in the CL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 | third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
index c8a2c5e29c95fa7e746964ef0780d0e2926a0a7b..853f71bb843ace8948edcd42a3a2f4a748b7ad38 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld.py
@@ -48,6 +48,20 @@ def latest_try_jobs(issue_number, builder_names, web, patchset_number=None):
return filter_latest_jobs(jobs)
+def changed_files(issue_number, web):
+ """Lists the files included in a CL, or None if this can't be determined.
+
+ File paths are sorted and relative to the repository root.
+ """
+ try:
+ url = _latest_patchset_url(issue_number, web)
+ issue_data = _get_json(url, web)
+ return sorted(issue_data['files'])
+ except (urllib2.URLError, ValueError, KeyError):
+ _log.warning('Failed to list changed files for issue %s.', issue_number)
+ return None
+
+
def _latest_patchset_url(issue_number, web):
issue_data = _get_json(_issue_url(issue_number), web)
latest_patchset_number = issue_data["patchsets"][-1]
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/net/rietveld_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698