Configuration versioning

konrad.hinsen at laposte.net konrad.hinsen at laposte.net
Thu Jun 22 01:42:55 CDT 2006


On 22.06.2006, at 02:04, Dmitriy Morozov wrote:

> Is it possibile to do such (per-file) non-distributable version
> control? What are the best practices of managing configuration files
> in a given directory?
>
> Is it possible to do this with hooks? Do hooks allow one to make
> decisions on which files get exported/imported?

You could use a precommit hook to copy the config file to a different  
name (that includes the repository name, for example) and have that  
copy versioned. That would give you a trace of changes to the config  
file, but if you go back to a specific version, you'd have to copy  
the config manually to its standard name, as there seem to be no  
update hook.

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen ät cnrs-orleans.fr
---------------------------------------------------------------------





More information about the Mercurial mailing list