[PATCH] Fix memory leak when using hg commands over http repositories
Henrik Stuart
hg at hstuart.dk
Thu Sep 23 13:19:41 CDT 2010
On 23-09-2010 11:44, alexandre.fayolle at logilab.fr wrote:
> # HG changeset patch
> # User Alexandre Fayolle<alexandre.fayolle at logilab.fr>
> # Date 1285234887 -7200
> # Node ID b74337a1172fdfbe0dc408414bab83391bd7be03
> # Parent 1e2625fe371b3120fc6692e94a8323d593906302
> Fix memory leak when using hg commands over http repositories
>
> When using hg commands over an http repository in a long running process, a
> httphandler instance is leaked for each command, because of a loop
> handler.parent -> OpenerDirector and OpenerDirector.handlers -> handler which
> is not handled by Python's gc. Discussion on #mercurial concluded that removing
> the __del__ method solved the problem.
Thank you for your contribution. It has been pushed to crew stable as
ca5fd84d62c6.
--
Kind regards,
Henrik Stuart
More information about the Mercurial-devel
mailing list