# HG changeset patch # User Arseniy Alekseyev # Date 1694685821 -3600 # Node ID 2dcb6a6c7540f96adf2560f4075b510c67458a82 # Parent 75d3306fbc9aabc9c575d3b747e15816b31fdebd tests: reproduce the nullrev bug in an end-to-end test diff -r 75d3306fbc9a -r 2dcb6a6c7540 tests/test-rhg.t --- a/tests/test-rhg.t Wed Jun 21 21:57:44 2023 +0200 +++ b/tests/test-rhg.t Thu Sep 14 11:03:41 2023 +0100 @@ -27,6 +27,8 @@ Reading and setting configuration $ echo "[ui]" >> $HGRCPATH $ echo "username = user1" >> $HGRCPATH + $ echo "[extensions]" >> $HGRCPATH + $ echo "sparse =" >> $HGRCPATH $ $NO_FALLBACK rhg config ui.username user1 $ echo "[ui]" >> .hg/hgrc @@ -309,6 +311,13 @@ .hg/store/00changelog.i .hg/store/00changelog.n +Rhg status on a sparse repo with nodemap (this specific combination used to crash in 6.5.2) + + $ hg debugsparse -X excluded-dir + $ $NO_FALLBACK rhg status + abort: dirstate points to non-existent parent node + [255] + Specifying revisions by changeset ID $ $NO_FALLBACK rhg files -r c3ae8dec9fad of