Getting started with a content filter
Anteru
newsgroups at catchall.shelter13.net
Mon Jul 25 17:56:28 UTC 2011
Hi,
I'm trying to write a content filter and there's a bunch of things I
don't get yet:
* How do I specify for which files the content filter should be run? It
seems the rules file is the right place for this. I can add a section
like this there ...
[name *.bin]
binstore = on
but is there a way to get more complex rules via Bazaar? In my case, I'd
like to enable it for file X only (by adding some metadata to a file.)
If there is no way to attach it to a file, can files in the repository
be uniquely identified?
* The file contents are passed to the content filter as chunks, which
are strings. That basically forces me to have the whole file in memory.
Is there a way to obtain a stream-interface to the file instead of the
file contents?
* What is the recommended way to get debug output out of my plugin?
bzrlib.trace? Is there something else specific for debugging?
Cheers,
Anteru
More information about the bazaar
mailing list