# HG changeset patch # User Simon Sapin # Date 1627288005 -7200 # Node ID 681851d6409b1adb0c78e4b728d7a71076489c04 # Parent f9e6f2bb721dccbd56b0b3f56c08fccb9b509fb3 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 diff -r f9e6f2bb721d -r 681851d6409b mercurial/dirstateutils/docket.py --- a/mercurial/dirstateutils/docket.py Mon Sep 13 18:48:48 2021 +0200 +++ b/mercurial/dirstateutils/docket.py Mon Jul 26 10:26:45 2021 +0200 @@ -34,7 +34,7 @@ class DirstateDocket(object): - data_filename_pattern = b'dirstate.%s.d' + data_filename_pattern = b'dirstate.%s' def __init__(self, parents, data_size, tree_metadata, uuid): self.parents = parents diff -r f9e6f2bb721d -r 681851d6409b rust/hg-core/src/dirstate_tree/on_disk.rs --- a/rust/hg-core/src/dirstate_tree/on_disk.rs Mon Sep 13 18:48:48 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/on_disk.rs Mon Jul 26 10:26:45 2021 +0200 @@ -265,7 +265,7 @@ } pub fn data_filename(&self) -> String { - String::from_utf8(format_bytes!(b"dirstate.{}.d", self.uuid)).unwrap() + String::from_utf8(format_bytes!(b"dirstate.{}", self.uuid)).unwrap() } }