diff --git a/rust/hg-core/src/revlog/mod.rs b/rust/hg-core/src/revlog/mod.rs index bca4037306da06a4e490e9841292f4d9e835aacc_cnVzdC9oZy1jb3JlL3NyYy9yZXZsb2cvbW9kLnJz..3338c6ffdaa3ae25470bd9923f6bdccf0f3b6327_cnVzdC9oZy1jb3JlL3NyYy9yZXZsb2cvbW9kLnJz 100644 --- a/rust/hg-core/src/revlog/mod.rs +++ b/rust/hg-core/src/revlog/mod.rs @@ -684,7 +684,10 @@ assert_eq!(revlog.len(), 0); assert!(revlog.get_entry(0).is_err()); assert!(!revlog.has_rev(0)); - assert_eq!(revlog.rev_from_node(NULL_NODE.into()).unwrap(), -1); + assert_eq!( + revlog.rev_from_node(NULL_NODE.into()).unwrap(), + NULL_REVISION + ); } #[test]