| 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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile() | 1150 TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile() |
| 1151 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git")) | 1151 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git")) |
| 1152 self.WriteFakeVersionFile(build=5) | 1152 self.WriteFakeVersionFile(build=5) |
| 1153 os.environ["EDITOR"] = "vi" | 1153 os.environ["EDITOR"] = "vi" |
| 1154 extra_patch = self.MakeEmptyTempFile() | 1154 extra_patch = self.MakeEmptyTempFile() |
| 1155 | 1155 |
| 1156 def VerifyPatch(patch): | 1156 def VerifyPatch(patch): |
| 1157 return lambda: self.assertEquals(patch, | 1157 return lambda: self.assertEquals(patch, |
| 1158 FileToText(TEST_CONFIG["TEMPORARY_PATCH_FILE"])) | 1158 FileToText(TEST_CONFIG["TEMPORARY_PATCH_FILE"])) |
| 1159 | 1159 |
| 1160 msg = """Version 3.22.5.1 (cherry-pick) | 1160 msg = """Merged: Squashed multiple commits. |
| 1161 | 1161 |
| 1162 Merged ab12345 | 1162 Merged: Title4 |
| 1163 Merged ab23456 | 1163 Hash: ab12345 |
| 1164 Merged ab34567 | |
| 1165 Merged ab45678 | |
| 1166 Merged ab56789 | |
| 1167 | 1164 |
| 1168 Title4 | 1165 Merged: Title2 |
| 1166 Hash: ab23456 |
| 1169 | 1167 |
| 1170 Title2 | 1168 Merged: Title3 |
| 1169 Hash: ab34567 |
| 1171 | 1170 |
| 1172 Title3 | 1171 Merged: Title1 |
| 1173 | 1172 Hash: ab45678 |
| 1174 Title1 | |
| 1175 | |
| 1176 Revert "Something" | |
| 1177 | 1173 |
| 1178 BUG=123,234,345,456,567,v8:123 | 1174 BUG=123,234,345,456,567,v8:123 |
| 1179 LOG=N | 1175 LOG=N |
| 1180 """ | 1176 """ |
| 1181 | 1177 |
| 1182 def VerifyLand(): | 1178 def VerifyLand(): |
| 1183 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"]) | 1179 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"]) |
| 1184 self.assertEquals(msg, commit) | 1180 self.assertEquals(msg, commit) |
| 1185 version = FileToText( | 1181 version = FileToText( |
| 1186 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)) | 1182 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)) |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1546 | 1542 |
| 1547 Review URL: https://codereview.chromium.org/83173002 | 1543 Review URL: https://codereview.chromium.org/83173002 |
| 1548 | 1544 |
| 1549 ------------------------------------------------------------------------""") | 1545 ------------------------------------------------------------------------""") |
| 1550 self.assertEquals( | 1546 self.assertEquals( |
| 1551 """Prepare push to trunk. Now working on version 3.23.11. | 1547 """Prepare push to trunk. Now working on version 3.23.11. |
| 1552 | 1548 |
| 1553 R=danno@chromium.org | 1549 R=danno@chromium.org |
| 1554 | 1550 |
| 1555 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 1551 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
| OLD | NEW |