Mercurial > evolve
comparison hgext/evolve.py @ 1677:48c3a472aec7
split: rewrite the pre-split commit message
I find this wording slightly clearer.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Sun, 24 Apr 2016 22:31:58 -0400 |
parents | 11d72083883a |
children | 1247d87a738d |
comparison
equal
deleted
inserted
replaced
1675:53a2a9aa3d89 | 1677:48c3a472aec7 |
---|---|
2908 | 2908 |
2909 commands.revert(ui, repo, rev=r, all=True) | 2909 commands.revert(ui, repo, rev=r, all=True) |
2910 def haschanges(): | 2910 def haschanges(): |
2911 modified, added, removed, deleted = repo.status()[:4] | 2911 modified, added, removed, deleted = repo.status()[:4] |
2912 return modified or added or removed or deleted | 2912 return modified or added or removed or deleted |
2913 msg = 'HG: Please, edit the original changeset description.\n\n' | 2913 msg = ("HG: This is the original pre-split commit message. " |
2914 "Edit it as appropriate.\n\n") | |
2914 msg += ctx.description() | 2915 msg += ctx.description() |
2915 opts['message'] = msg | 2916 opts['message'] = msg |
2916 opts['edit'] = True | 2917 opts['edit'] = True |
2917 while haschanges(): | 2918 while haschanges(): |
2918 pats = () | 2919 pats = () |