| 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 with open(googlers_mapping_py, "w") as f: | 827 with open(googlers_mapping_py, "w") as f: |
| 828 f.write(""" | 828 f.write(""" |
| 829 def list_to_dict(entries): | 829 def list_to_dict(entries): |
| 830 return {"g_name@google.com": "c_name@chromium.org"} | 830 return {"g_name@google.com": "c_name@chromium.org"} |
| 831 def get_list(): | 831 def get_list(): |
| 832 pass""") | 832 pass""") |
| 833 | 833 |
| 834 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() | 834 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() |
| 835 if not os.path.exists(TEST_CONFIG[CHROMIUM]): | 835 if not os.path.exists(TEST_CONFIG[CHROMIUM]): |
| 836 os.makedirs(TEST_CONFIG[CHROMIUM]) | 836 os.makedirs(TEST_CONFIG[CHROMIUM]) |
| 837 if not os.path.exists(os.path.join(TEST_CONFIG[CHROMIUM], "v8")): |
| 838 os.makedirs(os.path.join(TEST_CONFIG[CHROMIUM], "v8")) |
| 837 TextToFile("Some line\n \"v8_revision\": \"123444\",\n some line", | 839 TextToFile("Some line\n \"v8_revision\": \"123444\",\n some line", |
| 838 TEST_CONFIG[DEPS_FILE]) | 840 TEST_CONFIG[DEPS_FILE]) |
| 839 def WriteDeps(): | 841 def WriteDeps(): |
| 840 TextToFile("Some line\n \"v8_revision\": \"123455\",\n some line", | 842 TextToFile("Some line\n \"v8_revision\": \"123455\",\n some line", |
| 841 TEST_CONFIG[DEPS_FILE]) | 843 TEST_CONFIG[DEPS_FILE]) |
| 842 | 844 |
| 843 os.environ["EDITOR"] = "vi" | 845 os.environ["EDITOR"] = "vi" |
| 844 force_flag = " -f" if not manual else "" | 846 force_flag = " -f" if not manual else "" |
| 845 self.ExpectGit([ | 847 self.ExpectGit([ |
| 846 Git("status -s -uno", ""), | 848 Git("status -s -uno", ""), |
| 847 Git("status -s -b -uno", "## some_branch\n"), | 849 Git("status -s -b -uno", "## some_branch\n"), |
| 848 Git("svn fetch", ""), | 850 Git("svn fetch", ""), |
| 849 Git(("log -1 --format=%H --grep=" | 851 Git(("log -1 --format=%H --grep=" |
| 850 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" " | 852 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" " |
| 851 "svn/trunk"), "push_hash\n"), | 853 "svn/trunk"), "push_hash\n"), |
| 852 Git("svn find-rev push_hash", "123455\n"), | 854 Git("svn find-rev push_hash", "123455\n"), |
| 853 Git("log -1 --format=%s push_hash", | 855 Git("log -1 --format=%s push_hash", |
| 854 "Version 3.22.5 (based on bleeding_edge revision r123454)\n"), | 856 "Version 3.22.5 (based on bleeding_edge revision r123454)\n"), |
| 855 Git("status -s -uno", ""), | 857 Git("status -s -uno", ""), |
| 856 Git("checkout -f master", ""), | 858 Git("checkout -f master", ""), |
| 857 Git("sync --nohooks", "syncing..."), | 859 Git("sync --nohooks", "syncing..."), |
| 860 Git("fetch origin", ""), |
| 858 Git("checkout -b v8-roll-123455", ""), | 861 Git("checkout -b v8-roll-123455", ""), |
| 859 Git("v8 123455", "rolled", cb=WriteDeps), | 862 Git("v8 123455", "rolled", cb=WriteDeps), |
| 860 Git(("commit -am \"Update V8 to version 3.22.5 " | 863 Git(("commit -am \"Update V8 to version 3.22.5 " |
| 861 "(based on bleeding_edge revision r123454).\n\n" | 864 "(based on bleeding_edge revision r123454).\n\n" |
| 862 "Please reply to the V8 sheriff c_name@chromium.org in " | 865 "Please reply to the V8 sheriff c_name@chromium.org in " |
| 863 "case of problems.\n\nTBR=c_name@chromium.org\""), | 866 "case of problems.\n\nTBR=c_name@chromium.org\""), |
| 864 ""), | 867 ""), |
| 865 Git(("cl upload --send-mail --email \"author@chromium.org\"%s" | 868 Git(("cl upload --send-mail --email \"author@chromium.org\"%s" |
| 866 % force_flag), ""), | 869 % force_flag), ""), |
| 867 ]) | 870 ]) |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1524 | 1527 |
| 1525 Review URL: https://codereview.chromium.org/83173002 | 1528 Review URL: https://codereview.chromium.org/83173002 |
| 1526 | 1529 |
| 1527 ------------------------------------------------------------------------""") | 1530 ------------------------------------------------------------------------""") |
| 1528 self.assertEquals( | 1531 self.assertEquals( |
| 1529 """Prepare push to trunk. Now working on version 3.23.11. | 1532 """Prepare push to trunk. Now working on version 3.23.11. |
| 1530 | 1533 |
| 1531 R=danno@chromium.org | 1534 R=danno@chromium.org |
| 1532 | 1535 |
| 1533 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 1536 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
| OLD | NEW |