Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: tools/release/create_release.py

Issue 914973002: Create v8 roll branches in refs/heads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/release/test_scripts.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/release/create_release.py
diff --git a/tools/release/create_release.py b/tools/release/create_release.py
index 0ae7f9628e970d047d4a081f12f019e971e4aeb1..44c10d9b304367f6053a48ff9b2118afbe5701e2 100755
--- a/tools/release/create_release.py
+++ b/tools/release/create_release.py
@@ -16,10 +16,12 @@ class Preparation(Step):
MESSAGE = "Preparation."
def RunStep(self):
- self.Git("fetch origin +refs/heads/*:refs/heads/*")
- self.Git("fetch origin +refs/branch-heads/*:refs/branch-heads/*")
- self.Git("fetch origin +refs/pending/*:refs/pending/*")
- self.Git("fetch origin +refs/pending-tags/*:refs/pending-tags/*")
+ fetchspecs = [
+ "+refs/heads/*:refs/heads/*",
+ "+refs/pending/*:refs/pending/*",
+ "+refs/pending-tags/*:refs/pending-tags/*",
+ ]
+ self.Git("fetch origin %s" % " ".join(fetchspecs))
self.GitCheckout("origin/master")
self.DeleteBranch("work-branch")
@@ -226,10 +228,10 @@ class PushBranch(Step):
def RunStep(self):
pushspecs = [
- "refs/heads/work-branch:refs/pending/branch-heads/%s" % self["version"],
- "%s:refs/pending-tags/branch-heads/%s" %
+ "refs/heads/work-branch:refs/pending/heads/%s" % self["version"],
+ "%s:refs/pending-tags/heads/%s" %
(self["pending_hash"], self["version"]),
- "%s:refs/branch-heads/%s" % (self["push_hash"], self["version"]),
+ "%s:refs/heads/%s" % (self["push_hash"], self["version"]),
]
cmd = "push origin %s" % " ".join(pushspecs)
if self._options.dry_run:
@@ -247,7 +249,7 @@ class TagRevision(Step):
(self["commit_title"], self["version"]))
else:
self.vc.Tag(self["version"],
- "branch-heads/%s" % self["version"],
+ "origin/%s" % self["version"],
self["commit_title"])
« no previous file with comments | « no previous file | tools/release/test_scripts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698