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

Unified Diff: git_reparent_branch.py

Issue 1280633003: Fail with user friendly error when no new parent branch is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 4 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 | tests/git_rebase_update_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_reparent_branch.py
diff --git a/git_reparent_branch.py b/git_reparent_branch.py
index f24f52fea2494e60ee9cb7dff8a69f5d1e40e9f2..be44bc6cbfe516b8a02cbc5621be50694e292260 100755
--- a/git_reparent_branch.py
+++ b/git_reparent_branch.py
@@ -36,6 +36,8 @@ def main(args):
elif opts.lkgr:
new_parent = 'lkgr'
else:
+ if not opts.new_parent:
+ parser.error('Must specify new parent somehow')
new_parent = opts.new_parent
cur_parent = upstream(branch)
« no previous file with comments | « no previous file | tests/git_rebase_update_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698