[Updated] D11424: dirstate: directly call the right function in `set_tracked`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Sep 20 14:06:54 UTC 2021
Closed by commit rHG6255a0d33c45: dirstate: directly call the right function in `set_tracked` (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/D11424?vs=30262&id=30306
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11424/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11424
AFFECTED FILES
mercurial/dirstate.py
CHANGE DETAILS
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -471,9 +471,12 @@
return True the file was previously untracked, False otherwise.
"""
+ self._dirty = True
+ self._updatedfiles.add(filename)
entry = self._map.get(filename)
if entry is None:
- self._add(filename)
+ self._check_new_tracked_filename(filename)
+ self._map.addfile(filename, added=True)
return True
elif not entry.tracked:
self._normallookup(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/3f9cc27c/attachment-0002.html>
More information about the Mercurial-patches
mailing list