Mercurial > evolve
diff tests/test-obsolete.t @ 40:b9a5a596d9ef
proper computation of hidden changeset.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Wed, 07 Sep 2011 12:42:26 +0200 |
parents | b12655157ba0 |
children | b243c10a5fbe |
line wrap: on
line diff
--- a/tests/test-obsolete.t Wed Sep 07 12:09:05 2011 +0200 +++ b/tests/test-obsolete.t Wed Sep 07 12:42:26 2011 +0200 @@ -73,3 +73,48 @@ summary: add c +test obsolete changeset with no-obsolete descendant + $ hg up 1 -q + $ mkcommit "obsol_c'" # 4 (on 1) + created new head + $ hg debugobsolete 4 3 + $ hg log + changeset: 4:725c380fe99b + tag: tip + parent: 1:7c3bad9141dc + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: add obsol_c' + + changeset: 1:7c3bad9141dc + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: add b + + changeset: 0:1f0dee641bb7 + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: add a + + $ hg log -r 'obsolete()' --hidden + changeset: 2:4538525df7e2 + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: add c + + changeset: 3:0d3f46688ccc + parent: 1:7c3bad9141dc + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: add obsol_c + + $ hg up 3 -q + $ mkcommit d # 5 (on 3) + $ hg log -r 'obsolete()' + changeset: 3:0d3f46688ccc + parent: 1:7c3bad9141dc + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: add obsol_c + +