# HG changeset patch # User Simon Sapin # Date 1611836737 -3600 # Node ID 3df00f90545874755c6e9b62be1b1483400e7e4c # Parent 5b747aa1b2be614da13c4a9a00180a15e0fe76b1 persistent-nodemap: add test case reproducing a Rust panic Thanks to Mitchell Plamann for reporting this bug. The next commit fixes it. Differential Revision: https://phab.mercurial-scm.org/D9900 diff -r 5b747aa1b2be -r 3df00f905458 tests/test-persistent-nodemap.t --- a/tests/test-persistent-nodemap.t Sun Jan 24 19:14:50 2021 -0500 +++ b/tests/test-persistent-nodemap.t Thu Jan 28 13:25:37 2021 +0100 @@ -31,6 +31,15 @@ #endif +#if rust + +Reported bug: some Rust code panics when handling the null revision + + $ hg log -r 00000000 2>&1 | grep panicked + thread '' panicked at 'called `Option::unwrap()` on a `None` value', hg-cpython/src/revlog.rs:* (glob) + +#endif + $ hg debugformat format-variant repo