[Request] [+ ] D11324: dirstatemap: use the default code to handle "possibly_dirty" case

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Aug 21 09:57:07 UTC 2021


marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This case is quite simple too

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11324

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
@@ -298,8 +298,7 @@
             self.addfile(filename, from_p2=True, possibly_dirty=possibly_dirty)
             return
         elif possibly_dirty:
-            self.addfile(filename, possibly_dirty=possibly_dirty)
-            return
+            pass
         elif wc_tracked:
             # this is a "normal" file
             if parentfiledata is None:



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/20210821/32ea397d/attachment.html>


More information about the Mercurial-patches mailing list