Mercurial > hg-stable
changeset 51114:042d32355a4a
tests: demonstrate crash in `unstable()` with internal-phase orphans
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 31 Oct 2023 22:33:45 -0700 |
parents | 687e192dae16 |
children | 5ae05937b98f |
files | tests/test-phases.t |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-phases.t Wed Oct 18 14:50:14 2023 +0200 +++ b/tests/test-phases.t Tue Oct 31 22:33:45 2023 -0700 @@ -1000,6 +1000,23 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: A +The hidden commit is an orphan but doesn't show up without --hidden + + $ hg debugobsolete `hg id --debug -ir 0` + 1 new obsolescence markers + obsoleted 1 changesets + $ hg --hidden log -G -r 'unstable()' + * changeset: 1:c01c42dffc7f + | tag: tip + ~ user: test + date: Thu Jan 01 00:00:00 1970 +0000 + instability: orphan + summary: my test internal commit + + $ hg log -G -r 'unstable()' + abort: filtered revision '1' (known-bad-output !) + [10] + Test for archived phase -----------------------