On Fri, Dec 17, 2010 at 12:07 AM, Nolan Darilek <no...@thewordnerd.info>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have some situations where I find myself creating the same starter
> projects over and over. For instance, I'll create the same starter web
> app with similar database setup and coding style.
>
> Were I doing this with Git, I'd start with a template repository, clone
> it and go. But I'm not sure this is possible with Fossil.
>
> My understanding is that Fossil creates a unique project ID such that it
> ensures syncs happen only between repositories of the same project. Is
> this accurate?
>
> If so, I wonder if a variant of "fossil new" might accept a second
> repository file or URL argument. This would copy all artifacts from the
> second repository into the first, then set a new project ID on the first
> repository. This would ensure that each new project has a distinct ID
> from the template, but still starts with the same artifacts.
>
> Or is there some other way to accomplish this goal?
>

Just make a copy of the template repository.  If you want to change the
"project id" you can do that using:

     fossil test-detach copied-repo.fossil

If you don't like using a "test" command in Fossil, you can do the same in
SQLite:

     sqlite3 copied-repo.fossil "UPDATE config SET
value=lower(hex(randomblob(20))) WHERE value='project-code'"




> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0K8AwACgkQIaMjFWMehWKbdACfZL2dpYkdcExmsBrq2COB/rDC
> uScAn1jwlg8weJmPAd5jjPKTE3dh4Pid
> =pyMJ
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> 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