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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py

Issue 2590693002: Only add unstaged baseline changes to the git index when rebaselining. (Closed)
Patch Set: rebaseline-cl: Abort if there are unstaged baseline changes. Created 4 years 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py
index 601aa1aedc94faf3325ab9da8338e5a188e1f6eb..e4da1f028c7853af9f0764d9a3b06ae33e3c23fa 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py
@@ -52,10 +52,20 @@ class RebaselineCL(AbstractParallelRebaselineCommand):
def execute(self, options, args, tool):
self._tool = tool
+
+ unstaged_baselines = self.unstaged_baselines()
+ if unstaged_baselines:
+ _log.error('Aborting: there are unstaged baselines:')
+ for path in unstaged_baselines:
+ _log.error(' %s', path)
+ return
+
issue_number = self._get_issue_number(options)
if not issue_number:
return
+ # TODO(qyearsley): Replace this with git cl try-results to remove
+ # dependency on Rietveld. See crbug.com/671684.
builds = self.rietveld.latest_try_jobs(issue_number, self._try_bots())
if options.trigger_jobs:

Powered by Google App Engine
This is Rietveld 408576698