[RFC] Ignore lists

Jelmer Vernooij jelmer at samba.org
Wed Jul 5 18:20:18 BST 2006


Hi,

At the moment, '.bzrignore' is a magic file containing the ignore list
that is assumed to be present in every revision that has ignores.
However, this file might not be present in all formats, as other formats
might be using different ways of obtaining an ignore list.

WorkingTree already contains a `get_ignore_list()' function that, in the
default implementation, just reads .bzrignore but can be overridden to
obtain the ignore list in some other way.

It would be nice if the dependency on a `magic' file could be removed,
to be able to support ignore lists from foreign branches. Instead, I
think ignores should be in a control file and Repository should have a 
get_ignore_list(revid) function. CommitBuilder would have to have a
set_ignore_list() function.

The WorkingTree could use this function to obtain a list of ignores to
write to its control file (.bzrignore or something else).

I realize making the ignore list a control file would break the current
format, but I think making the API changes can already be done.

What do you think?

Cheers,

Jelmer
-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060705/04c14a30/attachment.pgp 


More information about the bazaar mailing list