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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 Performance and stability improvements on all platforms.\n""", | 910 Performance and stability improvements on all platforms.\n""", |
911 change_log) | 911 change_log) |
912 | 912 |
913 expectations = [ | 913 expectations = [ |
914 Cmd("git fetch origin " | 914 Cmd("git fetch origin " |
915 "+refs/heads/*:refs/heads/* " | 915 "+refs/heads/*:refs/heads/* " |
916 "+refs/pending/*:refs/pending/* " | 916 "+refs/pending/*:refs/pending/* " |
917 "+refs/pending-tags/*:refs/pending-tags/*", ""), | 917 "+refs/pending-tags/*:refs/pending-tags/*", ""), |
918 Cmd("git checkout -f origin/master", ""), | 918 Cmd("git checkout -f origin/master", ""), |
919 Cmd("git branch", ""), | 919 Cmd("git branch", ""), |
920 Cmd("git log -1 --format=\"%H %T\" push_hash", "push_hash tree_hash"), | |
921 Cmd("git log -200 --format=\"%H %T\" refs/pending/heads/master", | |
922 "not_right wrong\npending_hash tree_hash\nsome other\n"), | |
923 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), | 920 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), |
924 Cmd("git tag", self.TAGS), | 921 Cmd("git tag", self.TAGS), |
925 Cmd("git checkout -f origin/master -- include/v8-version.h", | 922 Cmd("git checkout -f origin/master -- include/v8-version.h", |
926 "", cb=self.WriteFakeVersionFile), | 923 "", cb=self.WriteFakeVersionFile), |
927 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"), | 924 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"), |
928 Cmd("git log -1 --format=%s release_hash", "Version 3.22.4\n"), | 925 Cmd("git log -1 --format=%s release_hash", "Version 3.22.4\n"), |
929 Cmd("git log -1 --format=%H release_hash^", "abc3\n"), | 926 Cmd("git log -1 --format=%H release_hash^", "abc3\n"), |
930 Cmd("git log --format=%H abc3..push_hash", "rev1\n"), | 927 Cmd("git log --format=%H abc3..push_hash", "rev1\n"), |
931 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"), | 928 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"), |
932 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"), | 929 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"), |
933 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"), | 930 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"), |
934 Cmd("git reset --hard origin/master", ""), | 931 Cmd("git reset --hard origin/master", ""), |
935 Cmd("git checkout -b work-branch pending_hash", ""), | 932 Cmd("git checkout -b work-branch push_hash", ""), |
936 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog), | 933 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog), |
937 Cmd("git checkout -f 3.22.4 -- include/v8-version.h", "", | 934 Cmd("git checkout -f 3.22.4 -- include/v8-version.h", "", |
938 cb=self.WriteFakeVersionFile), | 935 cb=self.WriteFakeVersionFile), |
939 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", | 936 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", |
940 cb=CheckVersionCommit), | 937 cb=CheckVersionCommit), |
941 Cmd("git push origin " | 938 Cmd("git push origin " |
942 "refs/heads/work-branch:refs/pending/heads/3.22.5 " | 939 "refs/heads/work-branch:refs/pending/heads/3.22.5 " |
943 "pending_hash:refs/pending-tags/heads/3.22.5 " | 940 "push_hash:refs/pending-tags/heads/3.22.5 " |
944 "push_hash:refs/heads/3.22.5", ""), | 941 "push_hash:refs/heads/3.22.5", ""), |
945 Cmd("git fetch", ""), | 942 Cmd("git fetch", ""), |
946 Cmd("git log -1 --format=%H --grep=" | 943 Cmd("git log -1 --format=%H --grep=" |
947 "\"Version 3.22.5\" origin/3.22.5", "hsh_to_tag"), | 944 "\"Version 3.22.5\" origin/3.22.5", "hsh_to_tag"), |
948 Cmd("git tag 3.22.5 hsh_to_tag", ""), | 945 Cmd("git tag 3.22.5 hsh_to_tag", ""), |
949 Cmd("git push origin 3.22.5", ""), | 946 Cmd("git push origin 3.22.5", ""), |
950 Cmd("git checkout -f origin/master", ""), | 947 Cmd("git checkout -f origin/master", ""), |
951 Cmd("git branch", "* master\n work-branch\n"), | 948 Cmd("git branch", "* master\n work-branch\n"), |
952 Cmd("git branch -D work-branch", ""), | 949 Cmd("git branch -D work-branch", ""), |
953 Cmd("git gc", ""), | 950 Cmd("git gc", ""), |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 | 1539 |
1543 Review URL: https://codereview.chromium.org/83173002 | 1540 Review URL: https://codereview.chromium.org/83173002 |
1544 | 1541 |
1545 ------------------------------------------------------------------------""") | 1542 ------------------------------------------------------------------------""") |
1546 self.assertEquals( | 1543 self.assertEquals( |
1547 """Prepare push to trunk. Now working on version 3.23.11. | 1544 """Prepare push to trunk. Now working on version 3.23.11. |
1548 | 1545 |
1549 R=danno@chromium.org | 1546 R=danno@chromium.org |
1550 | 1547 |
1551 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 1548 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
OLD | NEW |