| 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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 if not force: | 808 if not force: |
| 809 expectations.append( | 809 expectations.append( |
| 810 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], "")) | 810 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], "")) |
| 811 expectations += [ | 811 expectations += [ |
| 812 Cmd("git fetch", ""), | 812 Cmd("git fetch", ""), |
| 813 Cmd("git checkout -f origin/master", ""), | 813 Cmd("git checkout -f origin/master", ""), |
| 814 Cmd("git diff origin/candidates push_hash", "patch content\n"), | 814 Cmd("git diff origin/candidates push_hash", "patch content\n"), |
| 815 Cmd(("git new-branch %s --upstream origin/candidates" % | 815 Cmd(("git new-branch %s --upstream origin/candidates" % |
| 816 TEST_CONFIG["TRUNKBRANCH"]), "", cb=ResetToTrunk), | 816 TEST_CONFIG["TRUNKBRANCH"]), "", cb=ResetToTrunk), |
| 817 Cmd("git apply --index --reject \"%s\"" % TEST_CONFIG["PATCH_FILE"], ""), | 817 Cmd("git apply --index --reject \"%s\"" % TEST_CONFIG["PATCH_FILE"], ""), |
| 818 Cmd("git checkout -f origin/candidates -- ChangeLog", "", |
| 819 cb=ResetChangeLog), |
| 820 Cmd("git checkout -f origin/candidates -- src/version.cc", "", |
| 821 cb=self.WriteFakeVersionFile), |
| 818 Cmd("git commit -am \"%s\"" % commit_msg_squashed, ""), | 822 Cmd("git commit -am \"%s\"" % commit_msg_squashed, ""), |
| 819 ] | 823 ] |
| 820 if manual: | 824 if manual: |
| 821 expectations.append(RL("Y")) # Sanity check. | 825 expectations.append(RL("Y")) # Sanity check. |
| 822 expectations += [ | 826 expectations += [ |
| 823 Cmd("git cl land -f --bypass-hooks", ""), | 827 Cmd("git cl land -f --bypass-hooks", ""), |
| 824 Cmd("git checkout -f master", ""), | 828 Cmd("git checkout -f master", ""), |
| 825 Cmd("git fetch", ""), | 829 Cmd("git fetch", ""), |
| 826 Cmd("git branch -D %s" % TEST_CONFIG["TRUNKBRANCH"], ""), | 830 Cmd("git branch -D %s" % TEST_CONFIG["TRUNKBRANCH"], ""), |
| 827 Cmd(("git new-branch %s --upstream origin/candidates" % | 831 Cmd(("git new-branch %s --upstream origin/candidates" % |
| 828 TEST_CONFIG["TRUNKBRANCH"]), "", cb=ResetToTrunk), | 832 TEST_CONFIG["TRUNKBRANCH"]), "", cb=ResetToTrunk), |
| 829 Cmd("git checkout -f origin/candidates -- ChangeLog", "", | |
| 830 cb=ResetChangeLog), | |
| 831 Cmd("git checkout -f origin/candidates -- src/version.cc", "", | |
| 832 cb=self.WriteFakeVersionFile), | |
| 833 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", | 833 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", |
| 834 cb=CheckVersionCommit), | 834 cb=CheckVersionCommit), |
| 835 Cmd("git cl land -f --bypass-hooks", ""), | 835 Cmd("git cl land -f --bypass-hooks", ""), |
| 836 Cmd("git fetch", ""), | 836 Cmd("git fetch", ""), |
| 837 Cmd("git log -1 --format=%H --grep=" | 837 Cmd("git log -1 --format=%H --grep=" |
| 838 "\"Version 3.22.5 (based on push_hash)\"" | 838 "\"Version 3.22.5 (based on push_hash)\"" |
| 839 " origin/candidates", "hsh_to_tag"), | 839 " origin/candidates", "hsh_to_tag"), |
| 840 Cmd("git tag 3.22.5 hsh_to_tag", ""), | 840 Cmd("git tag 3.22.5 hsh_to_tag", ""), |
| 841 Cmd("git push origin 3.22.5", ""), | 841 Cmd("git push origin 3.22.5", ""), |
| 842 Cmd("git checkout -f some_branch", ""), | 842 Cmd("git checkout -f some_branch", ""), |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 | 1517 |
| 1518 Review URL: https://codereview.chromium.org/83173002 | 1518 Review URL: https://codereview.chromium.org/83173002 |
| 1519 | 1519 |
| 1520 ------------------------------------------------------------------------""") | 1520 ------------------------------------------------------------------------""") |
| 1521 self.assertEquals( | 1521 self.assertEquals( |
| 1522 """Prepare push to trunk. Now working on version 3.23.11. | 1522 """Prepare push to trunk. Now working on version 3.23.11. |
| 1523 | 1523 |
| 1524 R=danno@chromium.org | 1524 R=danno@chromium.org |
| 1525 | 1525 |
| 1526 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 1526 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
| OLD | NEW |