Mercurial > hg > evolve
changeset 620:232536f5c987 compat-hg2.3
use comments to combine commit messages in fold
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 22 Nov 2012 11:30:36 +0100 |
parents | f50f8da7a077 |
children | e50a5d9a6cbf 07d813af96c4 |
files | hgext/evolve.py tests/test-evolve.t |
diffstat | 2 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -2222,8 +2222,10 @@ try: allctx = [repo[r] for r in revs] targetphase = max(c.phase() for c in allctx) - msg = '\n\n***\n\n'.join(c.description() for c in allctx) - commitopts = {'message': msg} + msgs = ["HG: This is a fold of %d changesets." % len(allctx)] + msgs += ["HG: Commit message of changeset %s.\n\n%s\n" % + (c.rev(), c.description()) for c in allctx] + commitopts = {'message': "\n".join(msgs)} commitopts['edit'] = True newid, _ = rewrite(repo, root, allctx, head, [root.p1().node(), root.p2().node()],