[MERGE] runtime ignores

John Arbash Meinel john at arbash-meinel.com
Thu Jul 20 23:20:55 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adeodato Simó had a reasonable use case for allowing plugins to add
ignores only at runtime. The attached plugin gives them an actual api to
use to do this, rather than modifying a list.

Further, it changes the ignore functions to use sets rather than lists.
Mostly this is because now we have 4 ways that files get ignored:

1) Plugins add them to DEFAULT_IGNORE, this is deprecated but still
supported for now.
2) Plugins add them to the runtime list with 'add_runtime_ignores'.
3) User global ignores in ~/.bazaar/ignore
4) Project specific ignores in .bzrignore

Just to be efficient I'm using a set, so that if there are overlaps, the
total size of the regex doesn't grow without bound.

I'd like to get this in soon, so that bzrtools can update to using it if
present.
Because right now seeing the DEPRECATION warning everytime I run bzr is
a little bit annoying.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEwAHHJdeBCYSNAAMRAqtCAKCtp3o1nMqh/iNN9seo7ARJWmD4vgCgoKrq
Mbn0lLX1QAw7OKVBpuzW0bE=
=Ueat
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: runtime-ignores.patch
Type: text/x-patch
Size: 20752 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060720/e099e2c0/attachment.bin 


More information about the bazaar mailing list