Fossil SCM
Minor addenda to the R-card calculation notes.
Commit
9d50b77e1298f2e1597842fcd61ed3898ac2068b
Parent
9b19e7e086cd36c…
1 file changed
+5
-2
+5
-2
| --- www/fileformat.wiki | ||
| +++ www/fileformat.wiki | ||
| @@ -772,10 +772,13 @@ | ||
| 772 | 772 | cat $i; \ |
| 773 | 773 | done | md5sum |
| 774 | 774 | c0788982781981c96a0d81465fec7192 - |
| 775 | 775 | </pre></nowiki> |
| 776 | 776 | |
| 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 | |
| 778 | 778 | filenames in the manifest are "fossilized" (encoded) because they contain |
| 779 | 779 | spaces. In that case the shell-generated hash would differ because the |
| 780 | 780 | <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. | |
| 782 | 785 |
| --- 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 |