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

Unified Diff: git_new_branch.py

Issue 253013004: git new-branch displays an explanatory line. (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_new_branch.py
diff --git a/git_new_branch.py b/git_new_branch.py
index b021d4c1f4a2c25118265c3bee67b0f4b8e19db8..7578d86d4f2d21ffa0c5bcac9e8d1e895a963605 100755
--- a/git_new_branch.py
+++ b/git_new_branch.py
@@ -41,12 +41,12 @@ def main(args):
# TODO(iannucci): Detect unclean workdir then stash+pop if we need to
# teleport to a conflicting portion of history?
run('checkout', '--track', opts.upstream, '-b', opts.branch_name)
-
get_or_create_merge_base(opts.branch_name)
except subprocess2.CalledProcessError as cpe:
sys.stdout.write(cpe.stdout)
sys.stderr.write(cpe.stderr)
return 1
+ print('Switched to branch %s.' % opts.branch_name)
szager1 2014/04/28 21:44:40 To imitate the behavior of 'git checkout': sys.st
iannucci 2014/04/28 22:01:38 +1
if __name__ == '__main__': # pragma: no cover
« 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