On Thu, Aug 11, 2011 at 4:53 PM, lists <[email protected]> wrote:

> I'm a new user of fossil, having come grudgingly from CVS. Needless to say,
> my stubbornness was unfounded-life is immeasurably easier than it was on CVS
> for hundreds of little (and big) reasons.
>
> In trying to convert my workflow to fossil, I haven't been able to find any
> information in the wiki nor mail archives about creating a new repository,
> remotely, on the fossil server.


For a server you need two things:  (1) The repository database file (the
*.fossil file) and (2) some mechanism to serve that file.

Item (2) can be either CGI, or inetd/xinetd, or "fossil server".  See the
documentation for details.  In any of these cases you have to give it the
name of a repository database file to serve.

But here is a cool feature:  The name of the repo database file you give to
Fossil for (2) can actually be a directory rather than an individual file.
In that case, Fossil will serve all repos underneath that directory.

Suppose you have (2) set up to serve files out of the /home/www/repos
directory on your server.  Then in order to create a new repository on the
server you can do this:

(a) Create the repository locally using "fossil init repo-name.fossil"
(b) Do whatever check-ins and configuration you want on the new repository,
including setting the administrator password.
(c) Test your setup locally using "fossil ui"
(d) Scp or ftp the repository file into the /home/www/repos directory on the
server.

If you upload a repo file named /home/www/repos/abc.fossil" then you can
access it using http://domain/abc.  If you upload the file to
/home/www/repos/dir1/dir2/xyz.fossil, then you access it using
http://domain/dir1/dir2/xyz.  And so forth.

So once you get (1) up and going, installing a new repository is just a
matter of uploading a new repository file.



> I understand that in a large project and a tightly controlled server this
> may be undesirable, but in a home or small office environment, this is very
> useful without having to resort to log on to the server, issue the "fossil
> new <repo>" command and logging off, especially if you wish to restrict
> general log-in access to the server itself.
>
> One use for this is when creating static web sites; a new project comes
> along and whichever developer starts work on the project first simply
> creates the repository and commences work. Everyone else merely carries on
> as normal; "fossil clone <repo>" and "fossil open <repo>", etc.
>
> Am I missing something, or is this simply not a feature that exists yet?
>
> Sacha
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>



-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to