On Sat, Sep 12, 2015 at 12:57 AM, Warren Young <[email protected]> wrote:

> For instance, why even mention “SHA1 Hash” on the checkin details page in
> fossil ui, from src/info.c?  Why not something more generic, like “checkin
> ID”?
>

The checkin ID is the hash of the manifest for the checkin. e.g. try:

[stephan@host:~/cvs/fossil/cwal]$ f info
...
checkout:     c56006cd3df5400a38de9b0b7e9797f8e2f3a999 2015-08-14 15:17:09
UTC
...

[stephan@host:~/cvs/fossil/cwal]$ f artifact
c56006cd3df5400a38de9b0b7e9797f8e2f3a999
B f88c7a2382edcc51d004f133fa72fc462814b200
C minor\stest\scode\stweaks.
D 2015-08-14T15:17:09.841
F s2/s2.c 46dc5ced9a243b20571781a6b4ac232e79ca1e27
F s2/s2.h 7ab0c333784a684f608938b676a6c1c6c09ec170
F s2/s2_ops.c 69d17c0d0b017e19d1b0c87a75153c55841a02db
F s2/unit/070-000-enum.s2 19c28bc16ea5e5a30953307344740566ca373ac4
P 3aa469f15c41f9920c0b43ae47acc3da4fc821e7
R 1f0ece1803f7f3776ace86d686725d62
U stephan
Z bfdac81f2888e26d15908ba724a50cf1

[stephan@host:~/cvs/fossil/cwal]$ f artifact
c56006cd3df5400a38de9b0b7e9797f8e2f3a999 | sha1sum -
c56006cd3df5400a38de9b0b7e9797f8e2f3a999  -

note that the input hash and output hash have the same value.


> While looking into this, I see evidence of past historical wrangling here:
> blob.uuid, for example, even though sizeof(SHA1) != sizeof(UUID).  I guess
> Fossil once used MD5 for these ID values, too, and not just for integrity
> checksumming?
>

md5 is used in a small number of places for (IIRC) speed purposes. IIRC
it's only used in the calculation of the R-card (pure an integrity-checking
measure).

-- 
----- 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
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to