dirstate-v2: Change the on-disk format when the requirement is enabled
For now, the format is the same except with an additional marker at the start. This marker is redundant: for existing repositories it is `.hg/requires` that determines which format to use. For new repositories, it is the new `format.exp-dirstate-v2` config. There is no upgrade or downgrade so far. Most of the changes are about plumbing a boolean through layers of APIs to indicate which format should be used. Differential Revision: https://phab.mercurial-scm.org/D10719
Showing
- hgext/largefiles/lfutil.py 3 additions, 0 deletionshgext/largefiles/lfutil.py
- mercurial/dirstate.py 34 additions, 9 deletionsmercurial/dirstate.py
- mercurial/interfaces/dirstate.py 9 additions, 1 deletionmercurial/interfaces/dirstate.py
- mercurial/localrepo.py 3 additions, 0 deletionsmercurial/localrepo.py
- rust/hg-core/src/dirstate_tree.rs 1 addition, 0 deletionsrust/hg-core/src/dirstate_tree.rs
- rust/hg-core/src/dirstate_tree/dirstate_map.rs 43 additions, 16 deletionsrust/hg-core/src/dirstate_tree/dirstate_map.rs
- rust/hg-core/src/dirstate_tree/dispatch.rs 18 additions, 2 deletionsrust/hg-core/src/dirstate_tree/dispatch.rs
- rust/hg-core/src/dirstate_tree/on_disk.rs 4 additions, 0 deletionsrust/hg-core/src/dirstate_tree/on_disk.rs
- rust/hg-cpython/src/dirstate.rs 2 additions, 0 deletionsrust/hg-cpython/src/dirstate.rs
- rust/hg-cpython/src/dirstate/dirstate_map.rs 17 additions, 6 deletionsrust/hg-cpython/src/dirstate/dirstate_map.rs
- rust/hg-cpython/src/dirstate/dispatch.rs 10 additions, 2 deletionsrust/hg-cpython/src/dirstate/dispatch.rs
- rust/hg-cpython/src/dirstate/owning.rs 6 additions, 1 deletionrust/hg-cpython/src/dirstate/owning.rs
Loading
Please register or sign in to comment