comparison mercurial/dirstatemap.py @ 47996:aa442fde0ea5

dirstate: update the documentation of the dirstatemap API The API changed so should the documentation. Differential Revision: https://phab.mercurial-scm.org/D11436
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Sep 2021 18:27:57 +0200
parents 0d2a404f1932
children 70547a7d5930
comparison
equal deleted inserted replaced
47995:e7d0a511965c 47996:aa442fde0ea5
44 parents are updated by calling `setparents`. 44 parents are updated by calling `setparents`.
45 45
46 - the state map maps filenames to tuples of (state, mode, size, mtime), 46 - the state map maps filenames to tuples of (state, mode, size, mtime),
47 where state is a single character representing 'normal', 'added', 47 where state is a single character representing 'normal', 'added',
48 'removed', or 'merged'. It is read by treating the dirstate as a 48 'removed', or 'merged'. It is read by treating the dirstate as a
49 dict. File state is updated by calling the `addfile`, `removefile` and 49 dict. File state is updated by calling various methods (see each
50 `dropfile` methods. 50 documentation for details):
51
52 - `reset_state`,
53 - `set_tracked`
54 - `set_untracked`
55 - `set_clean`
56 - `set_possibly_dirty`
51 57
52 - `copymap` maps destination filenames to their source filename. 58 - `copymap` maps destination filenames to their source filename.
53 59
54 The dirstate also provides the following views onto the state: 60 The dirstate also provides the following views onto the state:
55 61