[Request] [+ ] D9111: changing-files: always use `mark_touched` to update the touched set
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Sep 28 16:32:30 UTC 2020
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We use this function internally too because that will make cache invalidation
simpler.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D9111
AFFECTED FILES
mercurial/metadata.py
CHANGE DETAILS
diff --git a/mercurial/metadata.py b/mercurial/metadata.py
--- a/mercurial/metadata.py
+++ b/mercurial/metadata.py
@@ -85,7 +85,7 @@
def mark_added(self, filename):
self._added.add(filename)
- self._touched.add(filename)
+ self.mark_touched(filename)
def update_added(self, filenames):
for f in filenames:
@@ -103,7 +103,7 @@
def mark_merged(self, filename):
self._merged.add(filename)
- self._touched.add(filename)
+ self.mark_touched(filename)
def update_merged(self, filenames):
for f in filenames:
@@ -147,7 +147,7 @@
def mark_removed(self, filename):
self._removed.add(filename)
- self._touched.add(filename)
+ self.mark_touched(filename)
def update_removed(self, filenames):
for f in filenames:
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200928/5b19d469/attachment.html>
More information about the Mercurial-patches
mailing list