dirstate: attach the nonnormalset to a propertycache
authorLaurent Charignon <lcharignon@fb.com>
Wed, 23 Dec 2015 13:13:22 -0800
changeset 27589 3e4f9d78ebd4
parent 27588 714849ba7836
child 27590 f2d0ada00257
dirstate: attach the nonnormalset to a propertycache This patch attaches the nonnormalset to a property cache so that we build it only when needed.
mercurial/dirstate.py
--- 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