diff options
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 180496fc..bc373b3e 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -33,6 +33,7 @@ else: | |||
33 | 33 | ||
34 | UNUSUAL_COMMIT_THRESHOLD = 5 | 34 | UNUSUAL_COMMIT_THRESHOLD = 5 |
35 | 35 | ||
36 | |||
36 | def _ConfirmManyUploads(multiple_branches=False): | 37 | def _ConfirmManyUploads(multiple_branches=False): |
37 | if multiple_branches: | 38 | if multiple_branches: |
38 | print('ATTENTION: One or more branches has an unusually high number ' | 39 | print('ATTENTION: One or more branches has an unusually high number ' |
@@ -44,17 +45,20 @@ def _ConfirmManyUploads(multiple_branches=False): | |||
44 | answer = input("If you are sure you intend to do this, type 'yes': ").strip() | 45 | answer = input("If you are sure you intend to do this, type 'yes': ").strip() |
45 | return answer == "yes" | 46 | return answer == "yes" |
46 | 47 | ||
48 | |||
47 | def _die(fmt, *args): | 49 | def _die(fmt, *args): |
48 | msg = fmt % args | 50 | msg = fmt % args |
49 | print('error: %s' % msg, file=sys.stderr) | 51 | print('error: %s' % msg, file=sys.stderr) |
50 | sys.exit(1) | 52 | sys.exit(1) |
51 | 53 | ||
54 | |||
52 | def _SplitEmails(values): | 55 | def _SplitEmails(values): |
53 | result = [] | 56 | result = [] |
54 | for value in values: | 57 | for value in values: |
55 | result.extend([s.strip() for s in value.split(',')]) | 58 | result.extend([s.strip() for s in value.split(',')]) |
56 | return result | 59 | return result |
57 | 60 | ||
61 | |||
58 | class Upload(InteractiveCommand): | 62 | class Upload(InteractiveCommand): |
59 | common = True | 63 | common = True |
60 | helpSummary = "Upload changes for code review" | 64 | helpSummary = "Upload changes for code review" |