New config/snapshot files format
Created originally on Bitbucket by aleufroy (Alain L)
Hi,$
Here is a proposition for a new config/snaphots files format that is more flexible than the previous one.
The subrepositories configuration parameters are placed in an INI file ".hggrconf".$ Using this format simplify adding new configuration parameters. The sections of the INI file are guest names and values are configuration parameters:
- "pulluri" for remote uri$
- "layout" for filesystem location.$
Example:
#!INI
[mygr1-name]
layout = mygr1
pulluri = http://hg.logilab.org/users/alain/guestrepo
[mygr2-name]
layout = deepeer/path/mygr2
pulluri = mygr1
The snapshoot file contains metadata about the repository state.$
It is named .hggrsnap
. It has the same format as the snapshot file of
subrepo
.
Example:
#!INI
mygr1 = branch1
deepeer/path/mygr2 = mytag$
Note that the configuration file is always loaded even for the grfreeze
command.
Note also that there are many arbitrary names :)
Best