Mercurial > evolve
changeset 3862:8d3eed113b77
rewind: add a message about obsolete changeset
Not the best output, but useful to have the data. We can improve that later.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 17 Jun 2018 01:04:20 +0200 |
parents | bbe635dfd75c |
children | c31be22d1d90 |
files | hgext3rd/evolve/rewind.py tests/test-rewind.t |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/rewind.py Sun Jun 17 00:15:18 2018 +0200 +++ b/hgext3rd/evolve/rewind.py Sun Jun 17 01:04:20 2018 +0200 @@ -77,6 +77,8 @@ relationships.append(rel) obsolete.createmarkers(unfi, relationships, operation='rewind') repo.ui.status(_('rewinded to %d changesets\n') % len(rewinded)) + if relationships: + repo.ui.status(_('(%d changesets obsoleted)\n') % len(relationships)) def _revive_revision(unfi, rev): """rewind a single revision rev.
--- a/tests/test-rewind.t Sun Jun 17 00:15:18 2018 +0200 +++ b/tests/test-rewind.t Sun Jun 17 01:04:20 2018 +0200 @@ -362,6 +362,7 @@ $ hg rewind --hidden --to 'min(desc("c_B0"))' rewinded to 1 changesets + (1 changesets obsoleted) $ hg debugobsolete 7e594302a05d3769b27be88fc3cdfd39d7498498 25c8f5ab0c3bb569ec672570f1a901be4c6f032b 0 (Thu Jan 01 00:00:01 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} 7e594302a05d3769b27be88fc3cdfd39d7498498 48acf2c0d9c8961859ce9a913671eb2adc9b057b 4 (Thu Jan 01 00:00:01 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'}