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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 "--revision", self["lkgr"], | 111 "--revision", self["lkgr"], |
112 "--force", | 112 "--force", |
113 ] | 113 ] |
114 | 114 |
115 if self._options.svn: | 115 if self._options.svn: |
116 args.extend(["--svn", self._options.svn]) | 116 args.extend(["--svn", self._options.svn]) |
117 if self._options.svn_config: | 117 if self._options.svn_config: |
118 args.extend(["--svn-config", self._options.svn_config]) | 118 args.extend(["--svn-config", self._options.svn_config]) |
119 if self._options.vc_interface: | 119 if self._options.vc_interface: |
120 args.extend(["--vc-interface", self._options.vc_interface]) | 120 args.extend(["--vc-interface", self._options.vc_interface]) |
| 121 if self._options.work_dir: |
| 122 args.extend(["--work-dir", self._options.work_dir]) |
121 | 123 |
122 # TODO(machenbach): Update the script before calling it. | 124 # TODO(machenbach): Update the script before calling it. |
123 if self._options.push: | 125 if self._options.push: |
124 self._side_effect_handler.Call(push_to_trunk.PushToTrunk().Run, args) | 126 self._side_effect_handler.Call(push_to_trunk.PushToTrunk().Run, args) |
125 | 127 |
126 | 128 |
127 class AutoPush(ScriptsBase): | 129 class AutoPush(ScriptsBase): |
128 def _PrepareOptions(self, parser): | 130 def _PrepareOptions(self, parser): |
129 parser.add_argument("-p", "--push", | 131 parser.add_argument("-p", "--push", |
130 help="Push to trunk. Dry run if unspecified.", | 132 help="Push to trunk. Dry run if unspecified.", |
(...skipping 18 matching lines...) Expand all Loading... |
149 CheckAutoPushSettings, | 151 CheckAutoPushSettings, |
150 CheckTreeStatus, | 152 CheckTreeStatus, |
151 FetchLKGR, | 153 FetchLKGR, |
152 CheckLastPush, | 154 CheckLastPush, |
153 PushToCandidates, | 155 PushToCandidates, |
154 ] | 156 ] |
155 | 157 |
156 | 158 |
157 if __name__ == "__main__": # pragma: no cover | 159 if __name__ == "__main__": # pragma: no cover |
158 sys.exit(AutoPush().Run()) | 160 sys.exit(AutoPush().Run()) |
OLD | NEW |