rust/hg-core/src/revlog/path_encode.rs
changeset 50166 6ea3b1acb5de
parent 50165 4180c988d1d5
child 50167 ee63c87a0cac
--- a/rust/hg-core/src/revlog/path_encode.rs	Thu Feb 16 19:14:51 2023 +0000
+++ b/rust/hg-core/src/revlog/path_encode.rs	Fri Feb 17 13:29:39 2023 +0000
@@ -576,6 +576,7 @@
     if let Some(l) = last_dot {
         dest.write_bytes(&src[l..]);
     }
+    dest.shrink_to_fit();
     dest
 }