Changeset 8aefe73aadc3…
Parent eb70bed28959…
by Benjamin Pollack
Changes to one file · Browse files at 8aefe73aadc3 Showing diff from parent eb70bed28959 Diff from another changeset...
@@ -36,8 +36,9 @@ from mercurial.i18n import _
def paste(ui, repo, nick, channel, title, **opts):
- nick = nick or ui.config('lisppaste', 'nick')
- channel = channel or ui.config('lisppaste', 'channel')
+ nick = nick or ui.config('lisppaste', 'nick') or ui.prompt('nick:', default='')
+ channel = channel or ui.config('lisppaste', 'channel') or ui.prompt('channel:', default='')
+ title = title or ui.prompt('title:', default='')
if not nick or not channel or not title:
raise util.Abort('must specify nick, channel, and title')
rev = opts.get('rev')
|
Loading...