| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 the V8 project authors. All rights reserved. | 2 # Copyright 2013 the V8 project authors. All rights reserved. |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following | 10 # copyright notice, this list of conditions and the following |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 print "Already pushed current lkgr %s" % last_push_be | 98 print "Already pushed current lkgr %s" % last_push_be |
| 99 return True | 99 return True |
| 100 | 100 |
| 101 | 101 |
| 102 class PushToCandidates(Step): | 102 class PushToCandidates(Step): |
| 103 MESSAGE = "Pushing to candidates if specified." | 103 MESSAGE = "Pushing to candidates if specified." |
| 104 | 104 |
| 105 def RunStep(self): | 105 def RunStep(self): |
| 106 print "Pushing lkgr %s to candidates." % self["lkgr"] | 106 print "Pushing lkgr %s to candidates." % self["lkgr"] |
| 107 | 107 |
| 108 args = [ |
| 109 "--author", self._options.author, |
| 110 "--reviewer", self._options.reviewer, |
| 111 "--revision", self["lkgr"], |
| 112 "--force", |
| 113 ] |
| 114 |
| 115 if self._options.svn: |
| 116 args.extend(["--svn", self._options.svn]) |
| 117 if self._options.svn_config: |
| 118 args.extend(["--svn-config", self._options.svn_config]) |
| 119 if self._options.vc_interface: |
| 120 args.extend(["--vc-interface", self._options.vc_interface]) |
| 121 |
| 108 # TODO(machenbach): Update the script before calling it. | 122 # TODO(machenbach): Update the script before calling it. |
| 109 if self._options.push: | 123 if self._options.push: |
| 110 self._side_effect_handler.Call( | 124 self._side_effect_handler.Call( |
| 111 push_to_trunk.PushToTrunk().Run, | 125 push_to_trunk.PushToTrunk().Run, |
| 112 ["--author", self._options.author, | 126 ["--author", self._options.author, |
| 113 "--reviewer", self._options.reviewer, | 127 "--reviewer", self._options.reviewer, |
| 114 "--revision", self["lkgr"], | 128 "--revision", self["lkgr"], |
| 115 "--force"]) | 129 "--force"]) |
| 116 | 130 |
| 117 | 131 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 140 CheckAutoPushSettings, | 154 CheckAutoPushSettings, |
| 141 CheckTreeStatus, | 155 CheckTreeStatus, |
| 142 FetchLKGR, | 156 FetchLKGR, |
| 143 CheckLastPush, | 157 CheckLastPush, |
| 144 PushToCandidates, | 158 PushToCandidates, |
| 145 ] | 159 ] |
| 146 | 160 |
| 147 | 161 |
| 148 if __name__ == "__main__": # pragma: no cover | 162 if __name__ == "__main__": # pragma: no cover |
| 149 sys.exit(AutoPush().Run()) | 163 sys.exit(AutoPush().Run()) |
| OLD | NEW |