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

Reply via email to