# HG changeset patch # User Brendan Cully # Date 1154556457 25200 # Node ID 519bf0cd28d25491c370fff0494c78bd7fec7a95 # Parent 5f8259e4d2926fe748d163ed10de2be3ee642ae5 Add -f option to qfold; improve qfold documentation. diff -r 5f8259e4d292 -r 519bf0cd28d2 hgext/mq.py --- a/hgext/mq.py Wed Aug 02 14:48:59 2006 -0700 +++ b/hgext/mq.py Wed Aug 02 15:07:37 2006 -0700 @@ -1321,7 +1321,13 @@ def fold(ui, repo, *files, **opts): """fold the named patches into the current patch - Patches must not yet be applied. + Patches must not yet be applied. Each patch will be successively + applied to the current patch in the order given. If all the + patches apply successfully, the current patch will be refreshed + with the new cumulative patch, and the folded patches will + be deleted. With -f/--force, the folded patch files will + be removed afterwards. + The header for each folded patch will be concatenated with the current patch header, separated by a line of '* * *'.""" @@ -1369,7 +1375,7 @@ q.refresh(repo, msg=message) for patch in patches: - q.delete(repo, patch) + q.delete(repo, patch, force=opts['force']) q.save_dirty() @@ -1602,6 +1608,7 @@ 'qfold': (fold, [('e', 'edit', None, _('edit patch header')), + ('f', 'force', None, _('delete folded patch files')), ('m', 'message', '', _('set patch header to ')), ('l', 'logfile', '', _('set patch header to contents of '))], 'hg qfold [-e] [-m ] [-l