split: preserve original changesets description
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 06 Nov 2015 21:34:24 -0500
changeset 1531 47f48af730ce
parent 1530 cafa9437a537
child 1532 48547b4c77de
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.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Nov 06 21:15:15 2015 -0500
+++ b/hgext/evolve.py	Fri Nov 06 21:34:24 2015 -0500
@@ -2709,6 +2709,10 @@
         def haschanges():
             modified, added, removed, deleted = repo.status()[:4]
             return modified or added or removed or deleted
+        msg = 'HG: Please, edit the original changeset description.\n\n'
+        msg += ctx.description()
+        opts['message'] = msg
+        opts['edit'] = True
         while haschanges():
             pats = ()
             cmdutil.dorecord(ui, repo, commands.commit, 'commit', False,