On Thu, Jan 22, 2015 at 10:43 AM, Andy Gibbs <andyg1...@hotmail.co.uk>
wrote:

> I am trying to create a commit without a parent, effectively so that I can
> create a separate stream inside my repository, in no way linked to trunk
> and all its branches.
>
> I cannot find in the documentation how to do this, but I know that it is
> possible because Jan Nijtmans has managed to do it here:
> http://fosclipse.sourceforge.net/cgi-bin/core/timeline?n=20&b=2012-07-23


i'm not sure if there's an official way to do it, but you could
programatically generate an empty manifest (this could be templated, using
'md5sum' to add the z-card), store it in the blob table, and run a rebuild.
That "should" do it, i think. Something like manually typing out....

------------------------
C my\scommit
D 2015-01-22T01:02:03
U yourname
------------------------

Now pipe that through md5sum for z-card:

md5sum mymf
3f73e5387a2d59468a3e7ed355dba755  mymf


echo 'Z 3f73e5387a2d59468a3e7ed355dba755' >> mymf

(CAREFUL: you need Unix newlines.)

Stuff that file into the blob table and rebuild.

i _think_ that would do it, but ymmv.

If that does, let me know and i'll add a libfossil tool/option to do it for
you once i'm off of medical leave.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
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