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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 = [ | 108 args = [ |
109 "--author", self._options.author, | 109 "--author", self._options.author, |
110 "--reviewer", self._options.reviewer, | 110 "--reviewer", self._options.reviewer, |
111 "--revision", self["lkgr"], | 111 "--revision", self["lkgr"], |
112 "--force", | 112 "--force", |
113 ] | 113 ] |
114 | 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 if self._options.work_dir: | 115 if self._options.work_dir: |
122 args.extend(["--work-dir", self._options.work_dir]) | 116 args.extend(["--work-dir", self._options.work_dir]) |
123 | 117 |
124 # TODO(machenbach): Update the script before calling it. | 118 # TODO(machenbach): Update the script before calling it. |
125 if self._options.push: | 119 if self._options.push: |
126 self._side_effect_handler.Call(push_to_trunk.PushToTrunk().Run, args) | 120 self._side_effect_handler.Call(push_to_trunk.PushToTrunk().Run, args) |
127 | 121 |
128 | 122 |
129 class AutoPush(ScriptsBase): | 123 class AutoPush(ScriptsBase): |
130 def _PrepareOptions(self, parser): | 124 def _PrepareOptions(self, parser): |
(...skipping 20 matching lines...) Expand all Loading... |
151 CheckAutoPushSettings, | 145 CheckAutoPushSettings, |
152 CheckTreeStatus, | 146 CheckTreeStatus, |
153 FetchLKGR, | 147 FetchLKGR, |
154 CheckLastPush, | 148 CheckLastPush, |
155 PushToCandidates, | 149 PushToCandidates, |
156 ] | 150 ] |
157 | 151 |
158 | 152 |
159 if __name__ == "__main__": # pragma: no cover | 153 if __name__ == "__main__": # pragma: no cover |
160 sys.exit(AutoPush().Run()) | 154 sys.exit(AutoPush().Run()) |
OLD | NEW |