# HG changeset patch # User Brendan Cully # Date 1155783181 25200 # Node ID abd0be815c9cc25036bb55a240f13d4d0b560fa2 # Parent 5b7a118f5b6c2b22fa392b8662eb86943db2a43e Add qnew -e option. diff -r 5b7a118f5b6c -r abd0be815c9c hgext/mq.py --- a/hgext/mq.py Wed Aug 16 19:52:21 2006 -0700 +++ b/hgext/mq.py Wed Aug 16 19:53:01 2006 -0700 @@ -1423,11 +1423,13 @@ changes unless -f is specified, in which case the patch will be initialised with them. - -m or -l set the patch header as well as the commit message. - If neither is specified, the patch header is empty and the + -e, -m or -l set the patch header as well as the commit message. + If none is specified, the patch header is empty and the commit message is 'New patch: PATCH'""" q = repo.mq message = commands.logmessage(opts) + if opts['edit']: + message = ui.edit(message, ui.username()) q.new(repo, patch, msg=message, force=opts['force']) q.save_dirty() return 0 @@ -1926,10 +1928,11 @@ 'hg qinit [-c]'), "qnew": (new, - [('m', 'message', '', _('use as commit message')), + [('e', 'edit', None, _('edit commit message')), + ('m', 'message', '', _('use as commit message')), ('l', 'logfile', '', _('read the commit message from ')), ('f', 'force', None, _('import uncommitted changes into patch'))], - 'hg qnew [-m TEXT] [-l FILE] [-f] PATCH'), + 'hg qnew [-e] [-m TEXT] [-l FILE] [-f] PATCH'), "qnext": (next, [], 'hg qnext'), "qprev": (prev, [], 'hg qprev'), "^qpop":