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

Unified Diff: git_cl.py

Issue 252683003: Clear configured merge-base when switching upstream. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index f2f3434e3b8a8557589def595d07e6a8a826fd42..07022febcceaa7abf0d0bf8d50e3c5b5151a4554 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2315,9 +2315,13 @@ def CMDupstream(parser, args):
cl = Changelist()
if args:
# One arg means set upstream branch.
- RunGit(['branch', '--set-upstream', cl.GetBranch(), args[0]])
+ branch = cl.GetBranch()
+ RunGit(['branch', '--set-upstream', branch, args[0]])
cl = Changelist()
print "Upstream branch set to " + cl.GetUpstreamBranch()
+
+ # Clear configured merge-base, if there is one.
+ git_common.remove_merge_base(branch)
else:
print cl.GetUpstreamBranch()
return 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698