/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

Add bzrlib.pyutils, which has get_named_object, a wrapper around __import__.

This is used to replace various ad hoc implementations of the same logic,
notably the version used in registry's _LazyObjectGetter which had a bug when
getting a module without also getting a member.  And of course, this new
function has unit tests, unlike the replaced code.

This also adds a KnownHooksRegistry subclass to provide a more natural home for
some other logic.

I'm not thrilled about the name of the new module or the new functions, but it's
hard to think of good names for such generic functionality.

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