# HG changeset patch # User Arseniy Alekseyev # Date 2023-02-16 19:14:51 # Node ID 4180c988d1d5b2d31fd7c51e14c541dfc216fa9f # Parent 8e50aa0db347529b15e3a9072fcfc43e224cb690 rhg: small refactor: stop using a magical constant "+ 1" Instead, directly do what the "+ 1" was supposed to achive: call hash_encode. diff --git a/rust/hg-core/src/revlog/path_encode.rs b/rust/hg-core/src/revlog/path_encode.rs --- a/rust/hg-core/src/revlog/path_encode.rs +++ b/rust/hg-core/src/revlog/path_encode.rs @@ -600,7 +600,7 @@ pub fn path_encode(path: &[u8]) -> Vec