##// END OF EJS Templates
Add more verbose help text to mq commands.
Brendan Cully -
r2754:19041b8c default
parent child Browse files
Show More
@@ -1184,7 +1184,12 b' def qimport(ui, repo, *filename, **opts)'
1184 1184 return 0
1185 1185
1186 1186 def init(ui, repo, **opts):
1187 """init a new queue repository"""
1187 """init a new queue repository
1188
1189 The queue repository is unversioned by default. If -c is
1190 specified, qinit will create a separate nested repository
1191 for patches. Use qcommit to commit changes to this queue
1192 repository."""
1188 1193 q = repo.mq
1189 1194 r = q.init(repo, create=opts['create_repo'])
1190 1195 q.save_dirty()
@@ -1269,7 +1274,19 b' def prev(ui, repo, **opts):'
1269 1274 return 0
1270 1275
1271 1276 def new(ui, repo, patch, **opts):
1272 """create a new patch"""
1277 """create a new patch
1278
1279 qnew creates a new patch on top of the currently-applied patch
1280 (if any). It will refuse to run if there are any outstanding
1281 changes unless -f is specified, in which case the patch will
1282 be initialised with them.
1283
1284 -m or -l set the patch header as well as the commit message.
1285 If neither is specified, the patch header is empty and the
1286 commit message is 'New patch: PATCH'
1287
1288 If -f is specified, the patch will be initialized with any
1289 uncommitted changes. Otherwise, if there outsta"""
1273 1290 q = repo.mq
1274 1291 message=commands.logmessage(**opts)
1275 1292 q.new(repo, patch, msg=message, force=opts['force'])
@@ -1476,7 +1493,7 b' def strip(ui, repo, rev, **opts):'
1476 1493 return 0
1477 1494
1478 1495 def version(ui, q=None):
1479 """print the version number"""
1496 """print the version number of the mq extension"""
1480 1497 ui.write("mq version %s\n" % versionstr)
1481 1498 return 0
1482 1499
@@ -1546,7 +1563,7 b' cmdtable = {'
1546 1563 (new,
1547 1564 [('m', 'message', '', _('use <text> as commit message')),
1548 1565 ('l', 'logfile', '', _('read the commit message from <file>')),
1549 ('f', 'force', None, 'force')],
1566 ('f', 'force', None, _('import uncommitted changes into patch'))],
1550 1567 'hg qnew [-m TEXT] [-l FILE] [-f] PATCH'),
1551 1568 "qnext": (next, [], 'hg qnext'),
1552 1569 "qprev": (prev, [], 'hg qprev'),
General Comments 0
You need to be logged in to leave comments. Login now