Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cext/util.h @ 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 | 1730b2fceaa1 |
children | 602c8e8411f5 |
line wrap: on
line diff
--- a/mercurial/cext/util.h Fri Oct 15 16:12:00 2021 +0200 +++ b/mercurial/cext/util.h Fri Oct 15 16:33:19 2021 +0200 @@ -40,6 +40,8 @@ static const int dirstate_flag_mode_exec_perm = 1 << 6; static const int dirstate_flag_mode_is_symlink = 1 << 7; static const int dirstate_flag_expected_state_is_modified = 1 << 8; +static const int dirstate_flag_all_unknown_recorded = 1 << 9; +static const int dirstate_flag_all_ignored_recorded = 1 << 10; extern PyTypeObject dirstateItemType; #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateItemType)