Show More
@@ -7,7 +7,7 b' use bytes_cast::{unaligned, BytesCast};' | |||
|
7 | 7 | |
|
8 | 8 | use super::REVIDX_KNOWN_FLAGS; |
|
9 | 9 | use crate::errors::HgError; |
|
10 | use crate::node::{NODE_BYTES_LENGTH, STORED_NODE_ID_BYTES}; | |
|
10 | use crate::node::{NODE_BYTES_LENGTH, NULL_NODE, STORED_NODE_ID_BYTES}; | |
|
11 | 11 | use crate::revlog::node::Node; |
|
12 | 12 | use crate::revlog::{Revision, NULL_REVISION}; |
|
13 | 13 | use crate::{Graph, GraphError, RevlogError, RevlogIndex, UncheckedRevision}; |
@@ -537,6 +537,9 b' impl super::RevlogIndex for Index {' | |||
|
537 | 537 | } |
|
538 | 538 | |
|
539 | 539 | fn node(&self, rev: Revision) -> Option<&Node> { |
|
540 | if rev == NULL_REVISION { | |
|
541 | return Some(&NULL_NODE); | |
|
542 | } | |
|
540 | 543 | self.get_entry(rev).map(|entry| entry.hash()) |
|
541 | 544 | } |
|
542 | 545 | } |
General Comments 0
You need to be logged in to leave comments.
Login now