[Updated] D11436: dirstate: update the documentation of the dirstatemap API

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Sep 20 14:08:26 UTC 2021


Closed by commit rHGaa442fde0ea5: dirstate: update the documentation of the dirstatemap API (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11436?vs=30274&id=30318

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11436/new/

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, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210920/15e70425/attachment-0002.html>


More information about the Mercurial-patches mailing list