dirstatemap: use the default code to handle "possibly_dirty" case
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 16 Jul 2021 17:10:52 +0200
changeset 47899 625b6ddb828c
parent 47898 442711f2c447
child 47900 40cf4b278f8f
dirstatemap: use the default code to handle "possibly_dirty" case This case is quite simple too Differential Revision: https://phab.mercurial-scm.org/D11324
mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py	Fri Jul 16 17:08:41 2021 +0200
+++ b/mercurial/dirstatemap.py	Fri Jul 16 17:10:52 2021 +0200
@@ -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: