diff options
author | Mike Frysinger <vapier@google.com> | 2011-08-11 15:46:43 -0400 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2011-11-29 12:38:52 -0800 |
commit | e9311273dda9aef91c563cd69b30f7a7491c56b5 (patch) | |
tree | bb9d6134f3babbc66f0fcace85989c53129b5de9 /subcmds/upload.py | |
parent | 605a9a487bba6e25fb48d4e3076c89b7f686517a (diff) | |
download | git-repo-e9311273dda9aef91c563cd69b30f7a7491c56b5.tar.gz |
repo: capitalize default prompt char
It is common in command line tools to indicate what the default answer
will be if the user simply hits enter. In repo, the display is just
"y/n" with no indication as to which is the default. So change the n
to N in the messages since that is how repo operates.
Change-Id: I81819ae630355072eb0365e59168b0921289498f
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index a08926c6..c152e75d 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -73,7 +73,7 @@ Configuration | |||
73 | 73 | ||
74 | review.URL.autoupload: | 74 | review.URL.autoupload: |
75 | 75 | ||
76 | To disable the "Upload ... (y/n)?" prompt, you can set a per-project | 76 | To disable the "Upload ... (y/N)?" prompt, you can set a per-project |
77 | or global Git configuration option. If review.URL.autoupload is set | 77 | or global Git configuration option. If review.URL.autoupload is set |
78 | to "true" then repo will assume you always answer "y" at the prompt, | 78 | to "true" then repo will assume you always answer "y" at the prompt, |
79 | and will not prompt you further. If it is set to "false" then repo | 79 | and will not prompt you further. If it is set to "false" then repo |
@@ -171,7 +171,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
171 | for commit in list: | 171 | for commit in list: |
172 | print ' %s' % commit | 172 | print ' %s' % commit |
173 | 173 | ||
174 | sys.stdout.write('to %s (y/n)? ' % remote.review) | 174 | sys.stdout.write('to %s (y/N)? ' % remote.review) |
175 | answer = sys.stdin.readline().strip() | 175 | answer = sys.stdin.readline().strip() |
176 | answer = answer in ('y', 'Y', 'yes', '1', 'true', 't') | 176 | answer = answer in ('y', 'Y', 'yes', '1', 'true', 't') |
177 | 177 | ||
@@ -299,7 +299,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
299 | 299 | ||
300 | # if they want to auto upload, let's not ask because it could be automated | 300 | # if they want to auto upload, let's not ask because it could be automated |
301 | if answer is None: | 301 | if answer is None: |
302 | sys.stdout.write('Uncommitted changes in ' + branch.project.name + ' (did you forget to amend?). Continue uploading? (y/n) ') | 302 | sys.stdout.write('Uncommitted changes in ' + branch.project.name + ' (did you forget to amend?). Continue uploading? (y/N) ') |
303 | a = sys.stdin.readline().strip().lower() | 303 | a = sys.stdin.readline().strip().lower() |
304 | if a not in ('y', 'yes', 't', 'true', 'on'): | 304 | if a not in ('y', 'yes', 't', 'true', 'on'): |
305 | print >>sys.stderr, "skipping upload" | 305 | print >>sys.stderr, "skipping upload" |