Opened 12 years ago

Last modified 12 years ago

#261 new task

allow multiple config files

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: major Milestone: svndigest 1.0
Component: configuration Version: trunk
Keywords: Cc:

Description

We should allow multiple config files. This implies that user can have one config file specific for the project that is analyzed (digested), but also a global config that contain settings that the user always want to use. These should not be two different kinds of files and absolutely not two kinds of Configuration classes. Rather what it means is that load(istream&) function in Configuration should be called twice.

I suggest the following schema

  1. Create Configuration object
  2. If $HOME/.svndigest/config exists load Configuration object from that file
  3. If <root>/.svndigest/config exists load Configuration object from that file
  4. If option --config-file is given and file exists load Configuration (if file does not exist exit)

In case several files are loaded and an option is set in multiple files, the latter file overrides the former one.

Change History (1)

comment:1 Changed 12 years ago by Peter Johansson

Milestone: 0.71.0

I am not sure about this ticket. Perhaps usability will not improve but only get more confusing. I move this to the future.

Note: See TracTickets for help on using tickets.