"bzr shell" completer from bzrtools now usable in ipython.
John Arbash Meinel
john at arbash-meinel.com
Wed Mar 19 22:27:25 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ville M. Vainio wrote:
| On Wed, Mar 19, 2008 at 11:44 PM, John Arbash Meinel
| <john at arbash-meinel.com> wrote:
|
|> | BTW, can anyone quickly say why bzr <tab> does not show commands from
|> | my plugins?
|> |
|> | The code is here:
|> |
|> | http://tinyurl.com/3728rw
|> |
|>
|> Is that the standard bash shell complete, or the bzr shell plugin?
|
| I grabbed the bzr shell plugin code (for 1,2) and added it to the
| ipython extension ipy_bzr.
|
|> Though if it was using "bzrlib.commands.get_all_cmds()" then it would get both.
|
| The source code calls get_all_cmds().
|
| I think the problem may be that bzrlib does not look for my plugins in:
|
| C:\Users\ville\AppData\Roaming\bazaar\2.0\plugins
|
| I have installed both the standalone and python-based bzr;
| python-based for bzrlib, and the standalone to actually be able to
| push stuff to launchpad (complaints about BZR_SSH, I'm using pageant).
|
Well, if it is going around a different way, it may not be loading the plugins.
You need to call "bzrlib.plugin.load_plugins()" at some point. This is normally
done in "bzrlib.commands.run_bzr()", so if you are just doing "import
bzrlib.commands; bzrlib.commands.get_all_commands()" then the plugins are
probably not loaded.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH4ZNNJdeBCYSNAAMRAnSCAKC2xUNW9jrR87/FDORZUm/x/nswJACgtQK/
3trWkL4WLFw0vp3HCFlk9Jo=
=uOGx
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list