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

Side by Side Diff: tools/push-to-trunk/auto_roll.py

Issue 606553003: Fix auto roll after switching v8 mirror. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/push-to-trunk/chromium_roll.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 the V8 project authors. All rights reserved. 2 # Copyright 2014 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import argparse 6 import argparse
7 import json 7 import json
8 import os 8 import os
9 import sys 9 import sys
10 import urllib 10 import urllib
(...skipping 25 matching lines...) Expand all
36 if self.ContainsChromiumRoll(json.loads(result)["results"]): 36 if self.ContainsChromiumRoll(json.loads(result)["results"]):
37 print "Stop due to existing Chromium roll." 37 print "Stop due to existing Chromium roll."
38 return True 38 return True
39 39
40 40
41 class DetectLastPush(Step): 41 class DetectLastPush(Step):
42 MESSAGE = "Detect commit ID of the last push to trunk." 42 MESSAGE = "Detect commit ID of the last push to trunk."
43 43
44 def RunStep(self): 44 def RunStep(self):
45 push_hash = self.FindLastTrunkPush( 45 push_hash = self.FindLastTrunkPush(
46 branch="origin/master", include_patches=True) 46 branch="origin/candidates", include_patches=True)
47 self["last_push"] = self.GetCommitPositionNumber(push_hash) 47 self["last_push"] = self.GetCommitPositionNumber(push_hash)
48 48
49 49
50 class DetectLastRoll(Step): 50 class DetectLastRoll(Step):
51 MESSAGE = "Detect commit ID of the last Chromium roll." 51 MESSAGE = "Detect commit ID of the last Chromium roll."
52 52
53 def RunStep(self): 53 def RunStep(self):
54 # Interpret the DEPS file to retrieve the v8 revision. 54 # Interpret the DEPS file to retrieve the v8 revision.
55 # TODO(machenbach): This should be part or the roll-deps api of 55 # TODO(machenbach): This should be part or the roll-deps api of
56 # depot_tools. 56 # depot_tools.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 CheckActiveRoll, 130 CheckActiveRoll,
131 DetectLastPush, 131 DetectLastPush,
132 DetectLastRoll, 132 DetectLastRoll,
133 CheckClusterFuzz, 133 CheckClusterFuzz,
134 RollChromium, 134 RollChromium,
135 ] 135 ]
136 136
137 137
138 if __name__ == "__main__": # pragma: no cover 138 if __name__ == "__main__": # pragma: no cover
139 sys.exit(AutoRoll().Run()) 139 sys.exit(AutoRoll().Run())
OLDNEW
« no previous file with comments | « no previous file | tools/push-to-trunk/chromium_roll.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698