[PATCH] dirstate: disable gc while parsing the dirstate

Matt Mackall mpm at selenic.com
Sun Feb 10 09:47:04 CST 2013


On Sun, 2013-02-10 at 15:43 +0000, Durham Goode wrote:
> >+        gc.disable()
> >         p = parsers.parse_dirstate(self._map, self._copymap, st)
> >+        gc.enable()
> >         if not self._dirtypl:
> >             self._pl = p
> 
> Probably needs to be in a try/finally?

Yes, you're correct.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list