Constructing a starting fossil repository

It’s a common thing for our OEM partners to package up their own build of Iguana.  It makes sense to ship Iguana with a starting fossil repository which has a set of starting ‘template’ scripts which can be used to do a client install.  See Windows manual install instructions for more information.

It’s easy to package up an automated generation of this starting fossil repository.  We do it ourselves when we build Iguana with a starting set of example projects.  This the type of shell script we use with invoke the fossil command line which ships with Iguana:

# Create a new empty repository
fossil new initial.sqlite
# Open it
fossil open initial.sqlite
# Add one directory for each translator instance
# - each is named with a GUID and represents a subdirectory
fossil add 544DEFF7BE2B88218AF47DBF4D97E7A9
# Add the shared directory
fossil add shared
# Add the 'other' directory - for vmds.
fossil add other
# Commit the changes
fossil commit -f -m "Initial Revision" --tag "Example"
# Close the repository
fossil close

This shell script assumes that you have a directory structure like that of the typical repository used by Iguana.  See Fossil repository layout and also Creating an initial repository from scratch for some alternative instructions for the same operation put together by Jeff Lewis.

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.