[RFC] Conditionalize format warnings

John Arbash Meinel john at arbash-meinel.com
Fri Apr 6 19:45:49 BST 2007


Matthew D. Fuller wrote:
> I've taken a stab at adding a config param to allow shutting off
> outdated-format warnings, so you can tell bzr "I know, and I don't
> care, so shaddup".  Attached.
> 
> I'm not entirely happy with it.  The big problem is that it can only
> read it out of the global config.  It can't use it from the per-branch
> config (and why don't we have per-WT and per-repo configs?  Something
> like this belongs in them just as much as in the branch, particularly
> as the format we're warning about is a WT) because I can't find any
> way to give it a context to look that up in.  That could just be a
> side effect of not knowing bzrlib, not knowing python, and not getting
> along with OOP, but I've reached my limit on pursuing it.

You can use a "LocationConfig". As long as it has a location and a
".get_user_config()" member.

John
=:->




More information about the bazaar mailing list