[ANN] Zip exporter plugin and merge candidat

John A Meinel john at arbash-meinel.com
Tue Nov 15 00:13:09 GMT 2005


Alexander Belchenko wrote:
> John A Meinel пишет:
>> Alexander Belchenko wrote:
>>
>>> New plugin for bzr: zip exporter (v.2)
>>>
>>> Based on this plugin and in accordance with plugin purpose[1]:
>>>
>>>    "Plugins often work as a way for developers to test new features for
>>> Bazaar-NG prior to inclusion in the official codebase"
>>>
>>> I create patch that ready to merge into mainline bzr to add zip export
>>> functionality:
>>>
>>>    http://bzr.onembedding.com/bzr.win/features/zip-exporter.diff
>>
>>
>> I liked this, and merged it into my integration branch. But I also
>> realized that we need to take things one step further, so that plugins
>> in the future can just register an export format, rather than having to
>> override the export command. (Similarly to how we do transports right
>> now).
> 
> This is should be easy, but need to be implemented way for autodetect
> appropriate format by filename extension. Per example, by adding map
> with known file extensions as keys, and known exporters as values.

So, I have updated my jam-integration branch, with a registration
function, and a set of exporters. At registration time, you give both
the name of the format (which is accessible from the command line
--format), and a list of extensions which can be auto-detected.

I also updated the test suite so that it tests exporting to a ZipFile. I
probably would also like to be able to throw a custom exception at
_loader time, which the front end could handle. Something like
"MissingDependency".

That could be used by any of the lazy loaders, in order to indicate what
you actually need in order to be able to use the functionality.

But for now, I think I'm happy with the way it is.

John
=:->


> 
> Alexander
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051114/ab315d3d/attachment.pgp 


More information about the bazaar mailing list