Show More
@@ -70,12 +70,6 b' from mercurial import cmdutil, commands,' | |||
|
70 | 70 | from mercurial.i18n import _ |
|
71 | 71 | from mercurial.node import * |
|
72 | 72 | |
|
73 | try: | |
|
74 | # readline gives raw_input editing capabilities, but is not | |
|
75 | # present on windows | |
|
76 | import readline | |
|
77 | except ImportError: pass | |
|
78 | ||
|
79 | 73 | def patchbomb(ui, repo, *revs, **opts): |
|
80 | 74 | '''send changesets by email |
|
81 | 75 | |
@@ -120,6 +114,12 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
120 | 114 | ''' |
|
121 | 115 | |
|
122 | 116 | def prompt(prompt, default = None, rest = ': ', empty_ok = False): |
|
117 | try: | |
|
118 | # readline gives raw_input editing capabilities, but is not | |
|
119 | # present on windows | |
|
120 | import readline | |
|
121 | except ImportError: pass | |
|
122 | ||
|
123 | 123 | if default: prompt += ' [%s]' % default |
|
124 | 124 | prompt += rest |
|
125 | 125 | while True: |
General Comments 0
You need to be logged in to leave comments.
Login now