# HG changeset patch # User Laurent Charignon # Date 1450905202 28800 # 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 -r 714849ba7836 -r 3e4f9d78ebd4 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