comparison rust/hg-core/src/dirstate_tree/on_disk.rs @ 47966:681851d6409b

dirstate-v2: Remove the `.d` suffix in data file names It could cause confusion since `.d` is already used for revlogs. This suffix is not necessary since there is already a `dirstate.` prefix. Differential Revision: https://phab.mercurial-scm.org/D11413
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 26 Jul 2021 10:26:45 +0200
parents 852262e2e7d9
children f2a9db29cb2d
comparison
equal deleted inserted replaced
47965:f9e6f2bb721d 47966:681851d6409b
263 // This `unwrap` could only panic on a 16-bit CPU 263 // This `unwrap` could only panic on a 16-bit CPU
264 self.header.data_size.get().try_into().unwrap() 264 self.header.data_size.get().try_into().unwrap()
265 } 265 }
266 266
267 pub fn data_filename(&self) -> String { 267 pub fn data_filename(&self) -> String {
268 String::from_utf8(format_bytes!(b"dirstate.{}.d", self.uuid)).unwrap() 268 String::from_utf8(format_bytes!(b"dirstate.{}", self.uuid)).unwrap()
269 } 269 }
270 } 270 }
271 271
272 pub fn read_docket( 272 pub fn read_docket(
273 on_disk: &[u8], 273 on_disk: &[u8],