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/local/var/fsvs/project-a/conf || |FSVS_WAA||=|/usr/local/var/fsvs/project-a/waa) /home/project-b (|FSVS_CONF=|/usr/local/var/fsvs/project-b/conf || |FSVS_WAA||=|/usr/local/var/fsvs/project-b/waa) /home/project-c (|FSVS_CONF=|/usr/local/var/fsvs/project-c/conf || |FSVS_WAA||=|/usr/local/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.org/source/browse/*checkout*/fsvs/trunk/www/doxygen/html/group__options.html) ... I would have to have in ./.fsvs/config:

conf=||/usr/local/var/fsvs/project-a/conf
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/local/var/fsvs/project-a/conf || |FSVS_WAA||=|/usr/local/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.

Reply via email to