diff mercurial/localrepo.py @ 50226:f18e4608bb61

narrow: delegate the dirstate's narrow spec writing to the transaction This make it more transactional and will help us to simplify their backup. The implementation is not great, but it keep the patch simple as this is not the time for a larger refactoring yet.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 23 Feb 2023 03:25:44 +0100
parents 8bc14ac53a41
children 39256bee2ed9
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Feb 23 04:15:16 2023 +0100
+++ b/mercurial/localrepo.py	Thu Feb 23 03:25:44 2023 +0100
@@ -1470,6 +1470,7 @@
         self._postdsstatus = []
 
         self._pending_narrow_pats = None
+        self._pending_narrow_pats_dirstate = None
 
         # generic mapping between names and nodes
         self.names = namespaces.namespaces()