[MERGE] Tree-specific rules
Ian Clatworthy
ian.clatworthy at internode.on.net
Mon Jan 5 04:40:04 GMT 2009
lifeless, fullermd and I discussed tree-specific rules on
IRC today and agreed there was value in supporting them Real
Soon Now. Ultimately, we'd like to be able to define rules
that apply at a 'project' and/or branch level, perhaps by
embedding rules in locations.conf and branch.conf. That's
quite a complex change though, requiring further debate
(e.g. are nested sections in ini-files too ugly a syntax?)
and probably a branch format bump. There are also complexities
around reapplying rules from different branches against
a lightweight checkout.
This patch implements tree-specific rules by supporting an
optional new configuration file, .bzr/checkout/rules. As
currently implemented, this file is supported for all
working-trees formats. (Note however that one application
of rules, content filtering, is only supported by
WorkingTreeFormat5 - a.k.a. 1.12-preview - in a semi-related
patch up for review.) If and when project and branch level
rules are implemented, being able to override them for a
given working tree may be useful.
Reviewers, please note that I've moved some tests that
lifeless disabled in 1.6 from tests/tree_implementations
to tests/workingtree_implementations. That has lead to a
small amount of test duplication that seems OK to me. If
there's a better way to achieve the same overall test
coverage, please let me know.
Ian C.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree-specific-rules.patch
Type: text/x-diff
Size: 15075 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090105/be763eaa/attachment.bin
More information about the bazaar
mailing list