Changeset 555aee9f2194…
Parent 805f197bad0c…
by Benjamin Pollack
Changes to one file · Browse files at 555aee9f2194 Showing diff from parent 805f197bad0c Diff from another changeset...
@@ -47,12 +47,12 @@ return ui.prompt(msg, default=default)
return default
- nick = prompt('nick', opts.get('nick') or ui.config('lisppaste', 'nick'))
- channel = prompt('channel', opts.get('channel') or ui.config('lisppaste', 'channel'))
- title = prompt('title', opts.get('title'))
+ sender = prompt('from', opts.get('from') or ui.config('lisppaste', 'from'))
+ to = prompt('to', opts.get('to') or ui.config('lisppaste', 'to'))
+ subject = prompt('subject', opts.get('subject'))
- if not nick or not channel or not title:
- raise util.Abort('must specify nick, channel, and title')
+ if not sender or not to or not subject:
+ raise util.Abort('must specify from, to, and subject')
rev = opts.get('rev')
node1, node2 = cmdutil.revpair(repo, rev)
m = cmdutil.match(repo, None, opts)
@@ -62,14 +62,14 @@ ui.status('no changes found; nothing uploaded\n')
return
server = xmlrpclib.ServerProxy('http://common-lisp.net:8185')
- ui.status(server.newpaste(channel, nick, title, udiff, 'Unified Context Diff') + '\n')
+ ui.status(server.newpaste(to, sender, subject, udiff, 'Unified Context Diff') + '\n')
cmdtable = {
'paste':
(paste,
- [('N', 'nick', '', _('your nickname on Freenode')),
- ('C', 'channel', '', _('the channel to associate with the paste')),
- ('m', 'title', '', _('title for the paste')),
+ [('f', 'from', '', _('your nickname on Freenode')),
+ ('t', 'to', '', _('the channel to associate with the paste')),
+ ('s', 'subject', '', _('title for the paste')),
('i', 'interactive', False, _('forces prompting for options')),
] + commands.diffopts + commands.diffopts2 + commands.walkopts,
_('hg paste [OPTION]')),
|
Loading...