Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/dirstateutils/v2.py @ 48262:dfc5a505ddc5
dirstate-v2: adds two flag to track the presence of some unrecorded files
Right now, we don't record ignored or unknown files in the dirstate. However
the structure would allow it. So we introduce two flags that can be used to
clarify whether all unknown/ignored children are recorded or not. This will
allow for more information to be stored in the future if this end up being
relevant.
Differential Revision: https://phab.mercurial-scm.org/D11682
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 15 Oct 2021 16:33:19 +0200 |
parents | 0524c1359bfc |
children | 269ff8978086 |
comparison
equal
deleted
inserted
replaced
48261:1730b2fceaa1 | 48262:dfc5a505ddc5 |
---|---|
79 | 79 |
80 def parse_nodes(map, copy_map, data, start, len): | 80 def parse_nodes(map, copy_map, data, start, len): |
81 """parse <len> nodes from <data> starting at offset <start> | 81 """parse <len> nodes from <data> starting at offset <start> |
82 | 82 |
83 This is used by parse_dirstate to recursively fill `map` and `copy_map`. | 83 This is used by parse_dirstate to recursively fill `map` and `copy_map`. |
84 | |
85 All directory specific information is ignored and do not need any | |
86 processing (HAS_DIRECTORY_MTIME, ALL_UNKNOWN_RECORDED, ALL_IGNORED_RECORDED) | |
84 """ | 87 """ |
85 for i in range(len): | 88 for i in range(len): |
86 node_start = start + NODE_SIZE * i | 89 node_start = start + NODE_SIZE * i |
87 node_bytes = slice_with_len(data, node_start, NODE_SIZE) | 90 node_bytes = slice_with_len(data, node_start, NODE_SIZE) |
88 ( | 91 ( |