comparison tests/test-rhg.t @ 50984:2dcb6a6c7540 stable

tests: reproduce the nullrev bug in an end-to-end test
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Thu, 14 Sep 2023 11:03:41 +0100
parents 9db197c73138
children 363620b934aa
comparison
equal deleted inserted replaced
50942:75d3306fbc9a 50984:2dcb6a6c7540
25 $TESTTMP/repository 25 $TESTTMP/repository
26 26
27 Reading and setting configuration 27 Reading and setting configuration
28 $ echo "[ui]" >> $HGRCPATH 28 $ echo "[ui]" >> $HGRCPATH
29 $ echo "username = user1" >> $HGRCPATH 29 $ echo "username = user1" >> $HGRCPATH
30 $ echo "[extensions]" >> $HGRCPATH
31 $ echo "sparse =" >> $HGRCPATH
30 $ $NO_FALLBACK rhg config ui.username 32 $ $NO_FALLBACK rhg config ui.username
31 user1 33 user1
32 $ echo "[ui]" >> .hg/hgrc 34 $ echo "[ui]" >> .hg/hgrc
33 $ echo "username = user2" >> .hg/hgrc 35 $ echo "username = user2" >> .hg/hgrc
34 $ $NO_FALLBACK rhg config ui.username 36 $ $NO_FALLBACK rhg config ui.username
307 .hg/store/00changelog-*.nd (glob) 309 .hg/store/00changelog-*.nd (glob)
308 .hg/store/00changelog.d 310 .hg/store/00changelog.d
309 .hg/store/00changelog.i 311 .hg/store/00changelog.i
310 .hg/store/00changelog.n 312 .hg/store/00changelog.n
311 313
314 Rhg status on a sparse repo with nodemap (this specific combination used to crash in 6.5.2)
315
316 $ hg debugsparse -X excluded-dir
317 $ $NO_FALLBACK rhg status
318 abort: dirstate points to non-existent parent node
319 [255]
320
312 Specifying revisions by changeset ID 321 Specifying revisions by changeset ID
313 $ $NO_FALLBACK rhg files -r c3ae8dec9fad 322 $ $NO_FALLBACK rhg files -r c3ae8dec9fad
314 of 323 of
315 $ $NO_FALLBACK rhg cat -r c3ae8dec9fad of 324 $ $NO_FALLBACK rhg cat -r c3ae8dec9fad of
316 r5000 325 r5000