As indicated in my statements below your insert, I have tried
using the raw SQL approach. The insert statement shown there
was derived from looking at the config table of a dummy
repository.

The motivation for using command line entries is that I'm doing
it for 25 repositories at the moment and anticipating that
number increasing to about 100. Each repository has a similar
name (e.g. F-100, F-110, F-120, ...) and a similar set of users.
The server directory with these repositories is a library for
use by non-programmers in the creation and archiving of text
and word processing documents on a project basis. Each repository
is a separate project.

So I created a C program to read from another sqlite database
and generate the fossil commands. By updating the control
database contents, I can continue the semi-automated creation
with less risk of missing some configuration step on one of
many repositories.

On Sun, 2011-11-20 at 20:13 -0500, Richard Hipp wrote:
> 
> 
> On Sun, Nov 20, 2011 at 7:56 PM, Chris Peachment <ch...@ononbb.com>
> wrote:
>         I'm using fossil version 1.20 on Linux for both server and
>         client
>         computers.
>         
>         I want to use fossil command line instructions to initialise
>         an
>         empty repository. I use:
>         
>         fossil new test.fossil
>         
>         but I can not find a command to provide the project-name value
>         to
>         be stored in the config table.
> 
> There isn't one - or at least not a simple one.  I always configure
> using the web interface:  just run "fossil ui test.fossil" and
> manually configure it that way.
> 
> If you definitely, positively must do your configuration from the
> command line, it can be done using raw SQL.  Probably just a single
> INSERT statement.  But I'd have to go look up exactly what that INSERT
> statement would be.  May I suggest:  Configure a dummy repository
> using "fossil ui" and then look in the CONFIG table of the repository
> database to see where the project name got inserted.  It should be
> obvious from there what you need to do to insert that name yourself.
>  
>         
>         The following instruction does not have the same effect as
>         using the fossil ui web interface to enter this value.
>         
>         fossil sqlite3 test.fossil "insert into config values
>         ('project-name',
>         'Test Repository', current_timestamp)" -R test.fossil
>         
>         One consequence of using the insert statement that cloning the
>         repository does not transfer the project-name.
>         
>         Closed ticket 8473eeb9ffb012e1db8597d97c9f7fdde340485e shown
>         at
>         
>         http://fossil-scm.org/index.html/tktview?name=8473eeb9ff
>         
>         refers to this clone behaviour but does not describe how the
>         repository was created, so it is not clear if the above action
>         was the cause of the behaviour seen prior that ticket.
>         
>         
>         As secondary issues, I can not find commands to supply the
>         project-name and user info fields.
>         
>         And it would be nice to insert a wiki page (specifically the
>         home page) from the command line too.
>         
>         Thanks for any assistance.
>         
>         Chris Peachment
>         
>         
>         _______________________________________________
>         fossil-users mailing list
>         fossil-users@lists.fossil-scm.org
>         http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> 
> 
> 
> -- 
> D. Richard Hipp
> d...@sqlite.org
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to