--- a/mercurial/localrepo.py Thu Jul 06 12:26:04 2017 -0700
+++ b/mercurial/localrepo.py Thu Jul 06 12:20:53 2017 -0700
@@ -422,6 +422,11 @@
# generic mapping between names and nodes
self.names = namespaces.namespaces()
+ # Key to signature value.
+ self._sparsesignaturecache = {}
+ # Signature to cached matcher instance.
+ self._sparsematchercache = {}
+
def close(self):
self._writecaches()
@@ -1300,6 +1305,7 @@
self.unfiltered()._branchcaches.clear()
self.invalidatevolatilesets()
+ self._sparsesignaturecache.clear()
def invalidatevolatilesets(self):
self.filteredrevcache.clear()