/brz/remove-bazaar

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

« back to all changes in this revision

Viewing changes to contrib/zsh/README

  • Committer: John Arbash Meinel
  • Date: 2011-04-20 14:27:19 UTC
  • mto: This revision was merged to the branch mainline in revision 5837.
  • 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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This directory used to contain a shell completion function for zsh.
 
2
That script has been unmaintained since 2005, though.  Zsh itself does
 
3
ship a _bzr completion function, and has done so for quite some time
 
4
now.  So we suggest you use the version installed with your zsh
 
5
instead of the version that used to be located in this directory.
 
6
 
 
7
Note that the shell-complete builtin of bzr does provide completion
 
8
information in a style suitable for zsh.  There are some completion
 
9
scripts for zsh in the wild that make use of this feature, although
 
10
none of these scripts is officially supported by the bzr developers.
 
11
 
 
12
Also note that recent versions of bzr (starting with the 2.3 series)
 
13
do include a bash_completion plugin. It should be possible to improve
 
14
this in such a way that it generates code for zsh instead of bash.  So
 
15
if you want better zsh completion, this might be the place to start.
 
16
 
 
17
References:
 
18
https://bugs.launchpad.net/bzr/+bug/560030
 
19
http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=history;f=Completion/Unix/Command/_bzr