| 140 | MESSAGE = "Upload and land changes." |
| 141 | |
| 142 | def RunStep(self): |
| 143 | if self._options.dry_run: |
| 144 | print("Dry run - upload CL.") |
| 145 | else: |
| 146 | self.GitUpload(force=True, |
| 147 | bypass_hooks=True, |
| 148 | no_autocc=True, |
| 149 | set_bot_commit=True, |
| 150 | message_file=self.Config("COMMITMSG_FILE")) |
| 151 | # TODO(crbug.com/1176141): This might need to go through CQ. |
| 152 | # We'd need to wait for it to land and then tag it. |
| 153 | cmd = "cl land --bypass-hooks -f" |
| 154 | if self._options.dry_run: |
| 155 | print("Dry run. Command:\ngit %s" % cmd) |
| 156 | else: |
| 157 | self.Git(cmd) |
| 158 | |
| 159 | os.remove(self.Config("COMMITMSG_FILE")) |
| 160 | |
| 161 | |
| 162 | class TagRevision(Step): |