2014-05-30 22:25 GMT+02:00 Stephan Beal <sgb...@googlemail.com>:
> On Fri, May 30, 2014 at 10:15 PM, Stephan Beal <sgb...@googlemail.com>
> wrote:
> Hmmmm. It seems fossil no longer has an option to create the initial
> checkin, and i can't figure out how to create one without libfossil:

There are currently 3 ways to create a repository with initial checkin:
1) fossil new foo.fossil --date-override now
2) fossil new foo.fossil
3) fossil new foo.fossil --empty
    fossil commit -m "my initial commit"
The latter has the advantage that any comment can be specified,
and doing "fossil add" beforehand allows the first commit to be non-empty.

2014-05-31 19:07 GMT+02:00 Joel Bruick <j...@joelface.com>:
> I hope so. The commit I backed out seems to serve no purpose besides messing
> up vfile_aggregate_checksum_disk()
.....
> Instead, all added files were being included in the checksum, which was
> causing it to not match the repository checksum.

You are absolutely right! Thank you for fixing this! This commit was
an ill-thought to fix the checksum mismatch, but the real fix
for the problem was done later:
    [http://fossil-scm.org/index.html/info/f7d9413ccf]
Did a little testing, and everything appears to work fine now.

> For what it's worth, count me among those who would like to see this feature
> remain, even if it isn't the default.

I would also prefer --empty being the default in "fossil new": Whether
there is an initial empty commit or not, all operations should function
the same after all. It would mean that there only two ways left
to create a repository with an initial empty commit, in stead of
currently 3.....  It is unfortunate that some corner-cases were
discovered violating that, but that's life. I understand the frustration
that a new feature unveils longstanding 'bugs' (which were impossible
to trigger before, so whether they are bugs can be disputed).

2014-05-31 21:40 GMT+02:00 Stephan Beal <sgb...@googlemail.com>:
> Thank you very much to Michai for the report and the other devs for the
> testing, patching, and verification.

Seconded. And thanks very much to Stefan for taking this
while I had a long free weekend.

I hope many people will test "fossil new --empty" whenever they
create a new repository.

Regards,
       Jan Nijtmans
_______________________________________________
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