changeset 27589:3e4f9d78ebd4

dirstate: attach the nonnormalset to a propertycache This patch attaches the nonnormalset to a property cache so that we build it only when needed.
author Laurent Charignon <lcharignon@fb.com>
date Wed, 23 Dec 2015 13:13:22 -0800
parents 714849ba7836
children f2d0ada00257
files mercurial/dirstate.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Mon Dec 21 16:22:43 2015 -0800
+++ b/mercurial/dirstate.py	Wed Dec 23 13:13:22 2015 -0800
@@ -137,6 +137,10 @@
         return self._copymap
 
     @propertycache
+    def _nonnormalset(self):
+        return nonnormalentries(self._map)
+
+    @propertycache
     def _filefoldmap(self):
         try:
             makefilefoldmap = parsers.make_file_foldmap