Fossil

Check-in [9d50b77e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Minor addenda to the R-card calculation notes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9d50b77e1298f2e1597842fcd61ed3898ac2068b
User & Date: stephan 2013-08-19 18:33:59
Context
2013-08-20
04:06
Bring in the latest SQLite with VDBE and Btree performance optimizations. check-in: 187845b5 user: drh tags: trunk
2013-08-19
18:33
Minor addenda to the R-card calculation notes. check-in: 9d50b77e user: stephan tags: trunk
17:13
Set default CSS for canvas node colors since Chrome has different browser defaults than all others. check-in: 9b19e7e0 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to www/fileformat.wiki.

770
771
772
773
774
775
776
777
778
779
780
781



# for i in $(awk '/^F /{print $2}' MF); do \
  echo $i $(stat -c '%s' $i); \
  cat $i; \
done | md5sum
c0788982781981c96a0d81465fec7192  -
</pre></nowiki>

Minor caveat: the above demonstration will work only when none of the
filenames in the manifest are "fossilized" (encoded) because they contain
spaces. In that case the shell-generated hash would differ because the
<tt>stat</tt> calls will fail to find such files (which are output in encoded
form here).










|



|
>
>
>
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
# for i in $(awk '/^F /{print $2}' MF); do \
  echo $i $(stat -c '%s' $i); \
  cat $i; \
done | md5sum
c0788982781981c96a0d81465fec7192  -
</pre></nowiki>

Minor caveats: the above demonstration will work only when none of the
filenames in the manifest are "fossilized" (encoded) because they contain
spaces. In that case the shell-generated hash would differ because the
<tt>stat</tt> calls will fail to find such files (which are output in encoded
form here). That approach also won't work for delta manifests. Calculating
the R-card for delta manifests requires traversing both the delta and its baseline in
lexical order of the files, prefering the delta's copy if both contain
a given file.