Fossil SCM

Minor addenda to the R-card calculation notes.

stephan 2013-08-19 18:33 trunk
Commit 9d50b77e1298f2e1597842fcd61ed3898ac2068b
1 file changed +5 -2
--- www/fileformat.wiki
+++ www/fileformat.wiki
@@ -772,10 +772,13 @@
772772
cat $i; \
773773
done | md5sum
774774
c0788982781981c96a0d81465fec7192 -
775775
</pre></nowiki>
776776
777
-Minor caveat: the above demonstration will work only when none of the
777
+Minor caveats: the above demonstration will work only when none of the
778778
filenames in the manifest are "fossilized" (encoded) because they contain
779779
spaces. In that case the shell-generated hash would differ because the
780780
<tt>stat</tt> calls will fail to find such files (which are output in encoded
781
-form here).
781
+form here). That approach also won't work for delta manifests. Calculating
782
+the R-card for delta manifests requires traversing both the delta and its baseline in
783
+lexical order of the files, prefering the delta's copy if both contain
784
+a given file.
782785
--- www/fileformat.wiki
+++ www/fileformat.wiki
@@ -772,10 +772,13 @@
772 cat $i; \
773 done | md5sum
774 c0788982781981c96a0d81465fec7192 -
775 </pre></nowiki>
776
777 Minor caveat: the above demonstration will work only when none of the
778 filenames in the manifest are "fossilized" (encoded) because they contain
779 spaces. In that case the shell-generated hash would differ because the
780 <tt>stat</tt> calls will fail to find such files (which are output in encoded
781 form here).
 
 
 
782
--- www/fileformat.wiki
+++ www/fileformat.wiki
@@ -772,10 +772,13 @@
772 cat $i; \
773 done | md5sum
774 c0788982781981c96a0d81465fec7192 -
775 </pre></nowiki>
776
777 Minor caveats: the above demonstration will work only when none of the
778 filenames in the manifest are "fossilized" (encoded) because they contain
779 spaces. In that case the shell-generated hash would differ because the
780 <tt>stat</tt> calls will fail to find such files (which are output in encoded
781 form here). That approach also won't work for delta manifests. Calculating
782 the R-card for delta manifests requires traversing both the delta and its baseline in
783 lexical order of the files, prefering the delta's copy if both contain
784 a given file.
785

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button