Presence of bzr-svn plugin causes BzrDir.find_branches to leak memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
New
|
Undecided
|
Unassigned |
Bug Description
This is quite likely to be a duplicate of #54253, but I can't test because I don't have the fixed python-subversion bindings for gutsy. (Someone with the fixed version should be able to rapidly confirm if this is a duplicate or not.)
If I have the svn plugin installed, this command line consumes 100s of MB of memory in seconds (even though no SVN branches are present in that directory):
$ python -c "from bzrlib.plugin import load_plugins; load_plugins(); from bzrlib.transport import get_transport; from bzrlib.bzrdir import BzrDir; print list(BzrDir.
But this command line stays at a steady 10MB:
$ python -c "from bzrlib.transport import get_transport; from bzrlib.bzrdir import BzrDir; print list(BzrDir.
(The directory I'm running that in is the root of a shared repository for bzr branches)
I'm guessing the repeated attempts to open branches in every directory as find_branches walks the filesystem are the problem.
This causes "bzr multi-pull" from bzrtools to be unusable. It also similarly affects the bzr-avahi plugin.
can't reproduce it here with the memory leak fix