| OLD | NEW | 
|---|
| 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 | 
| 11 | 11 | 
| 12 from common_includes import * | 12 from common_includes import * | 
| 13 import chromium_roll | 13 import chromium_roll | 
| 14 | 14 | 
|  | 15 CONFIG = { | 
|  | 16   PERSISTFILE_BASENAME: "/tmp/v8-auto-roll-tempfile", | 
|  | 17 } | 
|  | 18 | 
| 15 CR_DEPS_URL = 'http://src.chromium.org/svn/trunk/src/DEPS' | 19 CR_DEPS_URL = 'http://src.chromium.org/svn/trunk/src/DEPS' | 
| 16 | 20 | 
| 17 class CheckActiveRoll(Step): | 21 class CheckActiveRoll(Step): | 
| 18   MESSAGE = "Check active roll." | 22   MESSAGE = "Check active roll." | 
| 19 | 23 | 
| 20   @staticmethod | 24   @staticmethod | 
| 21   def ContainsChromiumRoll(changes): | 25   def ContainsChromiumRoll(changes): | 
| 22     for change in changes: | 26     for change in changes: | 
| 23       if change["subject"].startswith("Update V8 to"): | 27       if change["subject"].startswith("Update V8 to"): | 
| 24         return True | 28         return True | 
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 98     return [ | 102     return [ | 
| 99       CheckActiveRoll, | 103       CheckActiveRoll, | 
| 100       DetectLastPush, | 104       DetectLastPush, | 
| 101       DetectLastRoll, | 105       DetectLastRoll, | 
| 102       RollChromium, | 106       RollChromium, | 
| 103     ] | 107     ] | 
| 104 | 108 | 
| 105 | 109 | 
| 106 if __name__ == "__main__":  # pragma: no cover | 110 if __name__ == "__main__":  # pragma: no cover | 
| 107   sys.exit(AutoRoll(CONFIG).Run()) | 111   sys.exit(AutoRoll(CONFIG).Run()) | 
| OLD | NEW | 
|---|