Hey,
>The templates are a mechanism for an administrator to easily crank out
>preconstructed and preconfigured repositories.
>
>
OK this is what I thought.
> on-disk templates specify the files and dirs on disk. Yes, these could
> contain config files for <whatever>, including DB config files.
>
> in-repos templates specify what revision 1 of the repository will look
> like. That definitely cannot specify a config, since it exists at an
> entirely different semantic level.
> (not yet implemented)
>
>
Hmmm. This is interesting. It brings to mind one of a couple things I
remember putting on my "needs to be worked out" list.
I'm still re-engaging my brain on all this FS stuff, as you know it's
not for the faint of heart:-) Buuuut.
I remember wanting to ask about the possibility of making the repos
create more atomic. Not for the usual protection reasons. As I recall
there are two separate steps which result in the creation of a repos
which is "ready for action". Step one was setting up the tables and
step two was inserting the initial data.
I have a mechanism to do this as a single step completely from config
files. It allows me to create different schemas different ways for
different DBs. I remember having a little difficulty "priming the pump"
(using the two step approach) with either Oracle or MySQL can't recall.
I'll re-find my problem soon enough I guess:-)
Anyway if memory serves it was related to revision 0. Is what you
mention above related to this or is it for something else, and if so,
what?
>For BDB-based systems, the database config exists inside the db/
>subdirectory, and (for safety reasons) libsvn_fs will not construct a BDB
>environment in an already-existing directory. Thus, you cannot prepopulate
>the db/DB_CONFIG file using on-disk templates. If somebody can think of a
>way to do so, then we can do the necessary tweaks.
>
>[ one idea might be to create the db/ subdir *first*, then use the template
> to drop files into the repos, possibly overwriting db/DB_CONFIG; but that
> just seems way dangerous to me... ]
>
Me too. I'll get it worked out after I get my current patch fully in
place.
Thanks,
gat
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 1 05:34:49 2003