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

Unified Diff: git_cl.py

Issue 2074723002: Default to y(es) when asking user about archiving committed branches (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Rebase Created 4 years, 6 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 638612e15914bd3f7645728943a55f5bd9c715f4..46035f3291219804e7cb1ac51de1b8376f91023c 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -3205,7 +3205,8 @@ def CMDarchive(parser, args):
return 1
if not options.force:
- if ask_for_data('\nProceed with deletion (Y/N)? ').lower() != 'y':
+ answer = ask_for_data('\nProceed with deletion (Y/n)? ').lower()
+ if answer not in ('y', ''):
print('Aborted.')
return 1
« 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