diff -r 7bddec632821 -r 3a55cee825ba hgext/patchbomb.py --- a/hgext/patchbomb.py Tue Sep 27 22:38:47 2011 -0400 +++ b/hgext/patchbomb.py Wed Sep 08 08:31:07 2010 +0200 @@ -57,13 +57,13 @@ command = cmdutil.command(cmdtable) def prompt(ui, prompt, default=None, rest=':'): - if not ui.interactive(): - return default if default: prompt += ' [%s]' % default prompt += rest while True: result = ui.prompt(prompt, default=default) + if not ui.interactive(): + return result if result is not None: return result elif default is not None: