D11436: dirstate: update the documentation of the dirstatemap API
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Sep 16 14:45:12 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The API changed so should the documentation.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11436
AFFECTED FILES
mercurial/dirstatemap.py
CHANGE DETAILS
diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py
+++ b/mercurial/dirstatemap.py
@@ -46,8 +46,14 @@
- the state map maps filenames to tuples of (state, mode, size, mtime),
where state is a single character representing 'normal', 'added',
'removed', or 'merged'. It is read by treating the dirstate as a
- dict. File state is updated by calling the `addfile`, `removefile` and
- `dropfile` methods.
+ dict. File state is updated by calling various methods (see each
+ documentation for details):
+
+ - `reset_state`,
+ - `set_tracked`
+ - `set_untracked`
+ - `set_clean`
+ - `set_possibly_dirty`
- `copymap` maps destination filenames to their source filename.
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list