/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

  • Committer: John Arbash Meinel
  • Date: 2011-04-20 14:27:19 UTC
  • Revision ID: john@arbash-meinel.com-20110420142719-advs1k5vztqzbrgv
Fix bug #767177. Be more agressive with file.close() calls.

Our test suite gets a number of thread leaks and failures because it happens to get async
SFTPFile.close() calls. (if an SFTPFile closes due to __del__ it is done as an async request,
while if you call SFTPFile.close() it is done as a synchronous request.)
We have a couple other cases, probably. Namely SFTPTransport.get() also does an async
prefetch of the content, so if you don't .read() you'll also leak threads that think they
are doing work that you want.

The biggest change here, though, is using a try/finally in a generator, which is not 
python2.4 compatible.
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 4.5 KB Diff Download File
branch.py 5672.1.4 14 years ago Andrew Bennetts Fix final bzr-loom test by adding RemoteBranch.hea 13.6 KB Diff Download File
bzrdir.py 5609.21.1 14 years ago Andrew Bennetts Possible fix for #726584, plus drive-by docstring 20.3 KB Diff Download File
client.py 5622.3.10 14 years ago Jelmer Vernooij Don't require arguments to hooks. 9.4 KB Diff Download File
medium.py 5752.3.8 14 years ago John Arbash Meinel Merge bzr.dev 5764 to resolve release-notes (aka N 36.3 KB Diff Download File
message.py 5677.2.3 14 years ago Martin Gut smart.message._translate_error as it duplicate 12.9 KB Diff Download File
packrepository.py 4183.7.1 16 years ago Sabin Iacob update FSF mailing address 1.5 KB Diff Download File
protocol.py 5283.5.1 15 years ago Martin Pool Flush smart protocol to network after every chunk 52.9 KB Diff Download File
repository.py 5539.2.14 14 years ago Andrew Bennetts Don't add a new verb; instead just teach the clien 33.8 KB Diff Download File
request.py 5695 14 years ago Canonical.com Patch Queue Manager (spiv) Add Branch.heads_to_fetch API and HPSS requ 25.1 KB Diff Download File
server.py 5622.3.10 14 years ago Jelmer Vernooij Don't require arguments to hooks. 15.3 KB Diff Download File
vfs.py 4763.2.4 15 years ago John Arbash Meinel merge bzr.2.1 in preparation for NEWS entry. 7.5 KB Diff Download File