# HG changeset patch # User Simon Sapin # Date 2021-01-28 12:25:37 # 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 --git a/tests/test-persistent-nodemap.t b/tests/test-persistent-nodemap.t --- a/tests/test-persistent-nodemap.t +++ b/tests/test-persistent-nodemap.t @@ -31,6 +31,15 @@ Unlock further check (we are here to tes #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