equal
deleted
inserted
replaced
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 |