Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: tools/release/merge_to_branch.py

Issue 1324813003: [Release] Stop prepending "r" to commit hashes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 % ", ".join(port_revision_list)): 97 % ", ".join(port_revision_list)):
98 #: 'y': Add ports to revision list. 98 #: 'y': Add ports to revision list.
99 self["full_revision_list"].extend(port_revision_list) 99 self["full_revision_list"].extend(port_revision_list)
100 100
101 101
102 class CreateCommitMessage(Step): 102 class CreateCommitMessage(Step):
103 MESSAGE = "Create commit message." 103 MESSAGE = "Create commit message."
104 104
105 def RunStep(self): 105 def RunStep(self):
106 106
107 # Stringify: [123, 234] -> "r123, r234" 107 # Stringify: ["abcde", "12345"] -> "abcde, 12345"
108 self["revision_list"] = ", ".join(map(lambda s: "r%s" % s, 108 self["revision_list"] = ", ".join(self["full_revision_list"])
109 self["full_revision_list"]))
110 109
111 if not self["revision_list"]: # pragma: no cover 110 if not self["revision_list"]: # pragma: no cover
112 self.Die("Revision list is empty.") 111 self.Die("Revision list is empty.")
113 112
114 if self._options.revert and not self._options.revert_master: 113 if self._options.revert and not self._options.revert_master:
115 action_text = "Rollback of %s" 114 action_text = "Rollback of %s"
116 else: 115 else:
117 action_text = "Merged %s" 116 action_text = "Merged %s"
118 117
119 # The commit message title is added below after the version is specified. 118 # The commit message title is added below after the version is specified.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 CommitLocal, 306 CommitLocal,
308 UploadStep, 307 UploadStep,
309 CommitRepository, 308 CommitRepository,
310 TagRevision, 309 TagRevision,
311 CleanUp, 310 CleanUp,
312 ] 311 ]
313 312
314 313
315 if __name__ == "__main__": # pragma: no cover 314 if __name__ == "__main__": # pragma: no cover
316 sys.exit(MergeToBranch().Run()) 315 sys.exit(MergeToBranch().Run())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698