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.
@ 4: L2
|
o 3: L1
|
| o 2: C3
|/
o 1: C2
|
o 0: C1
% Conflicting rebase
warning: conflicts during merge.
merging common failed!
abort: fix unresolved conflicts with hg resolve then run hg rebase --continue
merging common
% Abort
saved backup bundle to
rebase aborted
@ 4: L2
|
o 3: L1
|
| o 2: C3
|/
o 1: C2
|
o 0: C1
% Rebase and abort without generating new changesets
@ 4:C1
|
o 3:B bis
|
| o 2:C
| |
| o 1:B
|/
o 0:A
warning: conflicts during merge.
merging c failed!
abort: fix unresolved conflicts with hg resolve then run hg rebase --continue
merging c
@ 4:C1
|
o 3:B bis
|
| @ 2:C
| |
| o 1:B
|/
o 0:A
rebase aborted
@ 4:C1
|
o 3:B bis
|
| o 2:C
| |
| o 1:B
|/
o 0:A