Re: [fossil-users] mark offeset: fossil export and import and re-export

2016-10-14 Thread Joerg Sonnenberger
On Sat, Oct 15, 2016 at 05:59:50AM +0900, Osamu Aoki wrote:
> These 2 files should be the same ... I hoped but reality is a bit
> complicated.  They are very similar but the mark field is strange.

No, the marks are derived from the rid and those again depend on the
order in which blobs are added. I'm not at all surprised if the
export/import cycle does change the order. If you want to compare two
fossil repositories for being equivalent, the easiest approach would be
to take all non-cluster entries in the blob table, print the uuid and
sort the result.

Joerg
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] mark offeset: fossil export and import and re-export

2016-10-14 Thread Osamu Aoki
Hi,

As a part of sanity check, I made an export of fossil archive to a file
and back into another fossil archive ... and re-export to a file.

These 2 files should be the same ... I hoped but reality is a bit
complicated.  They are very similar but the mark field is strange.

The initial export start with:
| blob
| mark :4
| data 3238
...

But re-export starts with:
| blob
| mark :2
| data 3238
...

This "mark" entry seems to get 2 offset for all the data entry.

So the fossil archive generated by "fossil import" has 2 less number for
all the marks.  

This is strange...

Osamu
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users