# HG changeset patch # User Laurent Charignon # Date 2015-12-23 21:13:22 # Node ID 3e4f9d78ebd4535587f127442a138d8f55b188c9 # Parent 714849ba7836db4fc6247688b320360a2f88e0b1 dirstate: attach the nonnormalset to a propertycache This patch attaches the nonnormalset to a property cache so that we build it only when needed. diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -137,6 +137,10 @@ class dirstate(object): return self._copymap @propertycache + def _nonnormalset(self): + return nonnormalentries(self._map) + + @propertycache def _filefoldmap(self): try: makefilefoldmap = parsers.make_file_foldmap