Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Configuration files

fsvs
Discussion topic

Back to topic list

Configuration files

Author benjaminm
Full name Benjamin M.
Date 2007-09-09 13:37:51 PDT
Message Hi Phil,

Since I don't have any bug to report... here some thoughts about the
configuration files handling...

I want to be able to use completely distinct paths for |FSVS_CONF| /
|FSVS_WAA |based on the directory I'm in. For example, here my different
projects root directories and associated CONF / WAA paths :

/home/project-a (|FSVS_CONF=|/usr/lo​cal/var/fsvs/project​-a/conf ||
|FSVS_WAA||=|/usr/lo​cal/var/fsvs/project​-a/waa)
/home/project-b (|FSVS_CONF=|/usr/lo​cal/var/fsvs/project​-b/conf ||
|FSVS_WAA||=|/usr/lo​cal/var/fsvs/project​-b/waa)
/home/project-c (|FSVS_CONF=|/usr/lo​cal/var/fsvs/project​-c/conf ||
|FSVS_WAA||=|/usr/lo​cal/var/fsvs/project​-c/waa)
...

I think that one possibility could be to add in the priority order
"$PWD/.fsvs/config":

    * command line //(highest)
    * environment variables. These are named as |FSVS_/{uppercase option
      name}/|.
    * $PWD/.fsvs/config <================== NEW ONE !!!!
    * |$HOME/|.fsvs/wc-dir/Config
    * |$FSVS_CONF/wc-dir/Config|
    * |$HOME/|.fsvs/config
    * |$FSVS_CONF/config|

if I understand right your config schema
(http://fsvs.tigris.o​rg/source/browse/*ch​eckout*/fsvs/trunk/w​ww/doxygen/html/grou​p__options.html)
... I would have to have in ./.fsvs/config:
 
conf=||/usr/local/va​r/fsvs/project-a/con​f
waa=||/usr/local/var​/fsvs/project-a/waa

So, simply by cd'ing into the project's root directory (for example:
/home/project-a), I would get the right configuration loaded
(/home/project-a/.fsvs/config) and the right paths
(|FSVS_CONF=|/usr/lo​cal/var/fsvs/project​-a/conf ||
|FSVS_WAA||=|/usr/lo​cal/var/fsvs/project​-a/waa)...

That would save me lot of time, since I have to change a lot between
different projects and tracking configuration (or more exactly... not
making error) is becoming rapidly a nightmare...

Does it make sense?

Ben.
Attachments

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

Configuration files benjaminm Benjamin M. 2007-09-09 13:37:51 PDT
     Re: Configuration files pmarek P.Marek 2007-09-09 22:18:15 PDT
Messages per page: