tests: reproduce the nullrev bug in an end-to-end test stable
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Thu, 14 Sep 2023 11:03:41 +0100
branchstable
changeset 50984 2dcb6a6c7540
parent 50942 75d3306fbc9a
child 50985 363620b934aa
tests: reproduce the nullrev bug in an end-to-end test
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