rust/hg-core/src/revlog/mod.rs
branchstable
changeset 50745 3338c6ffdaa3
parent 50744 bca4037306da
child 50746 124c44b5cfad
--- a/rust/hg-core/src/revlog/mod.rs	Thu Mar 30 11:34:30 2023 +0200
+++ b/rust/hg-core/src/revlog/mod.rs	Thu Jul 06 11:43:26 2023 +0200
@@ -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]