Show More
@@ -1423,11 +1423,13 b' def new(ui, repo, patch, **opts):' | |||
|
1423 | 1423 | changes unless -f is specified, in which case the patch will |
|
1424 | 1424 | be initialised with them. |
|
1425 | 1425 | |
|
1426 | -m or -l set the patch header as well as the commit message. | |
|
1427 |
If ne |
|
|
1426 | -e, -m or -l set the patch header as well as the commit message. | |
|
1427 | If none is specified, the patch header is empty and the | |
|
1428 | 1428 | commit message is 'New patch: PATCH'""" |
|
1429 | 1429 | q = repo.mq |
|
1430 | 1430 | message = commands.logmessage(opts) |
|
1431 | if opts['edit']: | |
|
1432 | message = ui.edit(message, ui.username()) | |
|
1431 | 1433 | q.new(repo, patch, msg=message, force=opts['force']) |
|
1432 | 1434 | q.save_dirty() |
|
1433 | 1435 | return 0 |
@@ -1926,10 +1928,11 b' cmdtable = {' | |||
|
1926 | 1928 | 'hg qinit [-c]'), |
|
1927 | 1929 | "qnew": |
|
1928 | 1930 | (new, |
|
1929 |
[(' |
|
|
1931 | [('e', 'edit', None, _('edit commit message')), | |
|
1932 | ('m', 'message', '', _('use <text> as commit message')), | |
|
1930 | 1933 | ('l', 'logfile', '', _('read the commit message from <file>')), |
|
1931 | 1934 | ('f', 'force', None, _('import uncommitted changes into patch'))], |
|
1932 | 'hg qnew [-m TEXT] [-l FILE] [-f] PATCH'), | |
|
1935 | 'hg qnew [-e] [-m TEXT] [-l FILE] [-f] PATCH'), | |
|
1933 | 1936 | "qnext": (next, [], 'hg qnext'), |
|
1934 | 1937 | "qprev": (prev, [], 'hg qprev'), |
|
1935 | 1938 | "^qpop": |
General Comments 0
You need to be logged in to leave comments.
Login now