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

Unified Diff: tools/push-to-trunk/common_includes.py

Issue 646383002: Make releases script ready for the new git workflow. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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/push-to-trunk/releases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/push-to-trunk/common_includes.py
diff --git a/tools/push-to-trunk/common_includes.py b/tools/push-to-trunk/common_includes.py
index acbb506b1688d131abadf1e4bca2cd5ec4744240..ed3b1fa62535615e8b4bd3d6845e842b76b854b6 100644
--- a/tools/push-to-trunk/common_includes.py
+++ b/tools/push-to-trunk/common_includes.py
@@ -277,6 +277,12 @@ class VCInterface(object):
def SvnGit(self, rev, branch=""):
raise NotImplementedError()
+ def MasterBranch(self):
+ raise NotImplementedError()
+
+ def CandidateBranch(self):
+ raise NotImplementedError()
+
def RemoteMasterBranch(self):
raise NotImplementedError()
@@ -331,6 +337,12 @@ class GitSvnInterface(VCInterface):
def SvnGit(self, rev, branch=""):
return self.step.GitSVNFindGitHash(rev, branch)
+ def MasterBranch(self):
+ return "bleeding_edge"
+
+ def CandidateBranch(self):
+ return "trunk"
+
def RemoteMasterBranch(self):
return "svn/bleeding_edge"
@@ -370,6 +382,12 @@ class GitTagsOnlyMixin(VCInterface):
# Remove 'origin/branch-heads/' prefix.
return map(lambda s: s[20:], branches)
+ def MasterBranch(self):
+ return "master"
+
+ def CandidateBranch(self):
+ return "candidates"
+
def RemoteMasterBranch(self):
return "origin/master"
« no previous file with comments | « no previous file | tools/push-to-trunk/releases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698