[ANN] Bazaar Externals plugin
Óscar Fuentes
ofv at wanadoo.es
Fri Nov 13 21:36:34 GMT 2009
Eugene Tarasenko <eugene.tarasenko at gmail.com> writes:
> Óscar Fuentes <ofv <at> wanadoo.es> writes:
>
>> At the very least, it ought to support relative URLs
>
> I added support relative urls and feature branch in 1.0.3 version,
> please try.
I've found a few bugs and some areas that could benefit from some error
checking.
For instance:
# command branch don't create recursive directory
dirs = dir.rpartition('/')
if not isdir(dirs[0]):
os.makedirs(dirs[0].encode(encoding))
I need to remove the os.makedirs because the branch command will fail if
the directory already exists.
In the `pull' method, the directory name of the external is in arg[2]
for me, not in arg[0].
There is a problem updating the .bzrignore file on some cases. This is a
minor issue, because a `pull' fill update the file correctly.
The handling of the parent branch for externals branched from other
external branches does not work the way I have in mind (see my previous
message on this thread). I'll try to implement my idea and show some
code.
In my opinion there is a great potential on this plugin. I'm doing some
testing and experimenting with some improvements (at the same time that
I learn python and bzrlib). For example, externals should be fetched
when the `update' command is executed too, because a `pull' is not
always possible. I'll submit patches with whatever seems worthwhile.
This plugin can solve lots of casses where externals are needed, until
the core developers implement their "perfect" solution :-)
--
Óscar
More information about the bazaar
mailing list