Show More
@@ -1321,7 +1321,13 b' def diff(ui, repo, *files, **opts):' | |||||
1321 | def fold(ui, repo, *files, **opts): |
|
1321 | def fold(ui, repo, *files, **opts): | |
1322 | """fold the named patches into the current patch |
|
1322 | """fold the named patches into the current patch | |
1323 |
|
1323 | |||
1324 | Patches must not yet be applied. |
|
1324 | Patches must not yet be applied. Each patch will be successively | |
|
1325 | applied to the current patch in the order given. If all the | |||
|
1326 | patches apply successfully, the current patch will be refreshed | |||
|
1327 | with the new cumulative patch, and the folded patches will | |||
|
1328 | be deleted. With -f/--force, the folded patch files will | |||
|
1329 | be removed afterwards. | |||
|
1330 | ||||
1325 | The header for each folded patch will be concatenated with |
|
1331 | The header for each folded patch will be concatenated with | |
1326 | the current patch header, separated by a line of '* * *'.""" |
|
1332 | the current patch header, separated by a line of '* * *'.""" | |
1327 |
|
1333 | |||
@@ -1369,7 +1375,7 b' def fold(ui, repo, *files, **opts):' | |||||
1369 | q.refresh(repo, msg=message) |
|
1375 | q.refresh(repo, msg=message) | |
1370 |
|
1376 | |||
1371 | for patch in patches: |
|
1377 | for patch in patches: | |
1372 | q.delete(repo, patch) |
|
1378 | q.delete(repo, patch, force=opts['force']) | |
1373 |
|
1379 | |||
1374 | q.save_dirty() |
|
1380 | q.save_dirty() | |
1375 |
|
1381 | |||
@@ -1602,6 +1608,7 b' cmdtable = {' | |||||
1602 | 'qfold': |
|
1608 | 'qfold': | |
1603 | (fold, |
|
1609 | (fold, | |
1604 | [('e', 'edit', None, _('edit patch header')), |
|
1610 | [('e', 'edit', None, _('edit patch header')), | |
|
1611 | ('f', 'force', None, _('delete folded patch files')), | |||
1605 | ('m', 'message', '', _('set patch header to <text>')), |
|
1612 | ('m', 'message', '', _('set patch header to <text>')), | |
1606 | ('l', 'logfile', '', _('set patch header to contents of <file>'))], |
|
1613 | ('l', 'logfile', '', _('set patch header to contents of <file>'))], | |
1607 | 'hg qfold [-e] [-m <text>] [-l <file] PATCH...'), |
|
1614 | 'hg qfold [-e] [-m <text>] [-l <file] PATCH...'), |
General Comments 0
You need to be logged in to leave comments.
Login now