[RFC] Ignore lists
Robert Collins
robertc at robertcollins.net
Thu Jul 6 05:31:45 BST 2006
On Wed, 2006-07-05 at 19:20 +0200, Jelmer Vernooij wrote:
> 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?
I think its very similar to one aspect of what Jan Hudec has been
working on, and like that, I'm very much pro the concept.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060706/10812129/attachment.pgp
More information about the bazaar
mailing list