dirstate-v2: Truncate directory mtimes to 31 bits of seconds
… instead of 64 bits, while keeping the sub-second presision. This brings the size of one timestamp from 12 bytes to 8 bytes. 31 bits is chosen instead of 32 because that’s already what happens for the mtime of files and symlinks, because dirstate-v1 uses negative i32 values as markers. Later we’ll add sub-second precision for file/symlink mtimes, making their dirstate-v2 representation the same as for directories. Differential Revision: https://phab.mercurial-scm.org/D11633
Showing
- mercurial/helptext/internals/dirstate-v2.txt 7 additions, 6 deletionsmercurial/helptext/internals/dirstate-v2.txt
- rust/hg-core/src/dirstate/entry.rs 59 additions, 19 deletionsrust/hg-core/src/dirstate/entry.rs
- rust/hg-core/src/dirstate_tree/dirstate_map.rs 7 additions, 6 deletionsrust/hg-core/src/dirstate_tree/dirstate_map.rs
- rust/hg-core/src/dirstate_tree/on_disk.rs 23 additions, 18 deletionsrust/hg-core/src/dirstate_tree/on_disk.rs
- rust/hg-core/src/dirstate_tree/status.rs 20 additions, 12 deletionsrust/hg-core/src/dirstate_tree/status.rs
Loading
Please register or sign in to comment