Mercurial > evolve
comparison hgext/evolve.py @ 1531:47f48af730ce
split: preserve original changesets description
Losing the description on split is to much an issue, we offer the original
description to edition for every part of the split.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 06 Nov 2015 21:34:24 -0500 |
parents | afb0a33c4f6c |
children | 48547b4c77de |
comparison
equal
deleted
inserted
replaced
1530:cafa9437a537 | 1531:47f48af730ce |
---|---|
2707 | 2707 |
2708 commands.revert(ui, repo, rev=r, all=True) | 2708 commands.revert(ui, repo, rev=r, all=True) |
2709 def haschanges(): | 2709 def haschanges(): |
2710 modified, added, removed, deleted = repo.status()[:4] | 2710 modified, added, removed, deleted = repo.status()[:4] |
2711 return modified or added or removed or deleted | 2711 return modified or added or removed or deleted |
2712 msg = 'HG: Please, edit the original changeset description.\n\n' | |
2713 msg += ctx.description() | |
2714 opts['message'] = msg | |
2715 opts['edit'] = True | |
2712 while haschanges(): | 2716 while haschanges(): |
2713 pats = () | 2717 pats = () |
2714 cmdutil.dorecord(ui, repo, commands.commit, 'commit', False, | 2718 cmdutil.dorecord(ui, repo, commands.commit, 'commit', False, |
2715 cmdutil.recordfilter, *pats, **opts) | 2719 cmdutil.recordfilter, *pats, **opts) |
2716 # TODO: Does no seem like the best way to do this | 2720 # TODO: Does no seem like the best way to do this |