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

Unified Diff: tools/release/common_includes.py

Issue 1003383003: Make release scripts even more robust. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/releases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/release/common_includes.py
diff --git a/tools/release/common_includes.py b/tools/release/common_includes.py
index bf71c37c963a2a2aa09a73c4765d1a79841444a8..19841a34a66d640ee07ebed50192194ffc2a2bb1 100644
--- a/tools/release/common_includes.py
+++ b/tools/release/common_includes.py
@@ -511,12 +511,12 @@ class Step(GitRecipesMixin):
answer = self.ReadLine(default="Y")
return answer == "" or answer == "Y" or answer == "y"
- def DeleteBranch(self, name):
- for line in self.GitBranch().splitlines():
+ def DeleteBranch(self, name, cwd=None):
+ for line in self.GitBranch(cwd=cwd).splitlines():
if re.match(r"\*?\s*%s$" % re.escape(name), line):
msg = "Branch %s exists, do you want to delete it?" % name
if self.Confirm(msg):
- self.GitDeleteBranch(name)
+ self.GitDeleteBranch(name, cwd=cwd)
print "Branch %s deleted." % name
else:
msg = "Can't continue. Please delete branch %s and try again." % name
« no previous file with comments | « no previous file | tools/release/releases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698