Revision: 23455
Author:   [email protected]
Date:     Wed Aug 27 13:13:40 2014 UTC
Log:      Fix chromium update in auto-roller.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/511803002
https://code.google.com/p/v8/source/detail?r=23455

Modified:
 /branches/bleeding_edge/tools/push-to-trunk/chromium_roll.py
 /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py

=======================================
--- /branches/bleeding_edge/tools/push-to-trunk/chromium_roll.py Wed Aug 27 09:54:03 2014 UTC +++ /branches/bleeding_edge/tools/push-to-trunk/chromium_roll.py Wed Aug 27 13:13:40 2014 UTC
@@ -73,6 +73,12 @@
     os.chdir(self["chrome_path"])
     self.GitCheckout("master")
     self._side_effect_handler.Command("gclient", "sync --nohooks")
+    try:
+      # TODO(machenbach): Add cwd to git calls.
+      os.chdir(os.path.join(self["chrome_path"], "v8"))
+      self.GitFetchOrigin()
+    finally:
+      os.chdir(self["chrome_path"])
     self.GitCreateBranch("v8-roll-%s" % self["trunk_revision"])


=======================================
--- /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py Wed Aug 27 09:54:03 2014 UTC +++ /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py Wed Aug 27 13:13:40 2014 UTC
@@ -834,6 +834,8 @@
     TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile()
     if not os.path.exists(TEST_CONFIG[CHROMIUM]):
       os.makedirs(TEST_CONFIG[CHROMIUM])
+    if not os.path.exists(os.path.join(TEST_CONFIG[CHROMIUM], "v8")):
+      os.makedirs(os.path.join(TEST_CONFIG[CHROMIUM], "v8"))
     TextToFile("Some line\n   \"v8_revision\": \"123444\",\n  some line",
                TEST_CONFIG[DEPS_FILE])
     def WriteDeps():
@@ -855,6 +857,7 @@
       Git("status -s -uno", ""),
       Git("checkout -f master", ""),
       Git("sync --nohooks", "syncing..."),
+      Git("fetch origin", ""),
       Git("checkout -b v8-roll-123455", ""),
       Git("v8 123455", "rolled", cb=WriteDeps),
       Git(("commit -am \"Update V8 to version 3.22.5 "

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to