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

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

Issue 607893004: Add tag write access to merge script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/test_scripts.py » ('j') | tools/push-to-trunk/test_scripts.py » ('J')
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 7ea39f73c95e80c86e10eb960241dc3e7683b76d..1d434f1f339568af41150040be2f8a88a0f8ad0b 100644
--- a/tools/push-to-trunk/common_includes.py
+++ b/tools/push-to-trunk/common_includes.py
@@ -346,7 +346,7 @@ class GitSvnInterface(VCInterface):
self.step.GitSVNTag(tag)
-class GitReadOnlyMixin(VCInterface):
+class GitTagsOnlyMixin(VCInterface):
def Pull(self):
self.step.GitPull()
@@ -375,8 +375,12 @@ class GitReadOnlyMixin(VCInterface):
return "origin/%s" % name
return "origin/branch-heads/%s" % name
+ def Tag(self, tag):
+ self.step.Git("tag %s" % tag)
+ self.step.Git("push origin %s" % tag)
+
-class GitReadSvnWriteInterface(GitReadOnlyMixin, GitSvnInterface):
+class GitReadSvnWriteInterface(GitTagsOnlyMixin, GitSvnInterface):
pass
« no previous file with comments | « no previous file | tools/push-to-trunk/test_scripts.py » ('j') | tools/push-to-trunk/test_scripts.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698