[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Issue 1385] New - "make check" tests fail if on modified ~/.subversion/config

From: Daniel Patterson <danpat_at_adaptiveinternational.com>
Date: 2003-07-04 01:59:10 CEST

On Fri, 2003-07-04 at 09:42, Branko ibej wrote:
> mark benedetto king wrote:
> >I believe that virtually every configurable option probably deserves
> >some command-line tweakability. The fact that it is configurable means
> >that not everyone wants the same thing; this is likely to also mean
> >that one person might not want the same thing all of the time.
> >
> Yikes. I'd only support this if the config option parsing could be
> hoisted off of the svn_config interface itself. Actually defining
> explicit command line options for each and every option is a huge can of
> worms.

  I don't know whether this discussion is heading down this path or not,
  but perhaps a config file format change might better support
  this kind of thing? Time to get out the bikeshed-painting brushes...

  A good (my bikeshed) model for this that I've seen is the
  configuration used by "apt" in Debian. And I quote:

      Syntacticly the configuration language is modeled after what
      the ISC tools such as bind and dhcp use. Each line is of the form

        APT::Get::Assume-Yes "true";

      The trailing semicolon is required and the quotes are optional.
      A new scope can be opened with curly braces, like:

        APT {
          Get {
            Assume-Yes "true";
            Fix-Broken "true";
          };
        };

      ......
     
      All of the APT tools take a -o option which allows an arbitary
      configuration directive to be specified on the command line. The
      syntax is a full option name (APT::Get::Assume-Yes for
      instance) followed by an equals sign then the new value of the
      option. Lists can be appended too by adding a trailing :: to the
      list name.

  For example, I regularly override the proxy cache control by doing:

    apt-get -o acquire::http::proxy::no-cache="yes" install subversion

  All the options are settable this way.

  The parser for this config file is reasonably trivial (I remember
  hearing in the order of 300 lines) and is extremely flexible.

daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 4 02:00:09 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.