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" |