Fossil SCM

Tweaks to the hash policy document.

drh 2017-03-05 19:13 UTC fossil-2.1
Commit b0d3e9cc311bcca58ef35277d862322abd6c787b
1 file changed +5 -3
--- www/hashpolicy.wiki
+++ www/hashpolicy.wiki
@@ -13,11 +13,11 @@
1313
going on, read on...
1414
1515
1616
<h2> Introduction </h2>
1717
18
-The first distributed version control system (as far as this author knows)
18
+The first snapshot-based distributed version control system
1919
was [http://www.monotone.ca|Monotone]. Many of the ideas behind the design
2020
of Fossil were copied from Monotone, including the use of a SHA1 hash to
2121
assign names to artifacts. Git and Mercurial did the same thing.
2222
2323
The SHA1 hash algorithm is used only to create names for artifacts in Fossil
@@ -27,11 +27,11 @@
2727
"SHA1 is broken". They see that Fossil (and Git, Mercurial, and Monotone)
2828
use SHA1 and they therefore conclude that "Fossil is broken". This is
2929
not true, but it is a public relations problem. So the decision
3030
was made to migrate Fossil away from SHA1.
3131
32
-This article describes how that is occurring.
32
+This article describes how that migration is occurring.
3333
3434
<h2>Use Of Hardened SHA1</h2>
3535
3636
In Fossil version 2.0 ([/timeline?c=version-2.0|2017-03-03]),
3737
the internal SHA1 implementation was changed from a generic
@@ -79,10 +79,12 @@
7979
and write all the same repositories and sync with one another, as long
8080
as none of the repositories contain artifacts named using SHA3. If
8181
a repository does contain artifacts named using SHA3, Fossil 1.37 will
8282
not know how to interpret those artifacts and will generate various warnings
8383
and errors.
84
+
85
+<h2>Picking Which Hash Algorithm To Use</h2>
8486
8587
If newer versions of Fossil are able to use either SHA1 or SHA3 to
8688
name artifacts, which hash algorithm is actually used? That question
8789
is answered by the "hash policy". These are the supported hash policies:
8890
@@ -114,11 +116,11 @@
114116
</tr>
115117
<tr>
116118
<td valign='top'>shun-sha1</td>
117119
<td>Like "sha3-only" but at this level do not accept a push of SHA1-named
118120
artifacts. If another Fossil instance tries to push a SHA1-named artifact,
119
-discard and ignore it.
121
+that artifact is discarded and ignored.
120122
</tr>
121123
</table>
122124
123125
For Fossil 2.0, and obviously also for Fossil 1.37 and before, the
124126
only hash policy supported was "sha1". All new artifacts were named
125127
--- www/hashpolicy.wiki
+++ www/hashpolicy.wiki
@@ -13,11 +13,11 @@
13 going on, read on...
14
15
16 <h2> Introduction </h2>
17
18 The first distributed version control system (as far as this author knows)
19 was [http://www.monotone.ca|Monotone]. Many of the ideas behind the design
20 of Fossil were copied from Monotone, including the use of a SHA1 hash to
21 assign names to artifacts. Git and Mercurial did the same thing.
22
23 The SHA1 hash algorithm is used only to create names for artifacts in Fossil
@@ -27,11 +27,11 @@
27 "SHA1 is broken". They see that Fossil (and Git, Mercurial, and Monotone)
28 use SHA1 and they therefore conclude that "Fossil is broken". This is
29 not true, but it is a public relations problem. So the decision
30 was made to migrate Fossil away from SHA1.
31
32 This article describes how that is occurring.
33
34 <h2>Use Of Hardened SHA1</h2>
35
36 In Fossil version 2.0 ([/timeline?c=version-2.0|2017-03-03]),
37 the internal SHA1 implementation was changed from a generic
@@ -79,10 +79,12 @@
79 and write all the same repositories and sync with one another, as long
80 as none of the repositories contain artifacts named using SHA3. If
81 a repository does contain artifacts named using SHA3, Fossil 1.37 will
82 not know how to interpret those artifacts and will generate various warnings
83 and errors.
 
 
84
85 If newer versions of Fossil are able to use either SHA1 or SHA3 to
86 name artifacts, which hash algorithm is actually used? That question
87 is answered by the "hash policy". These are the supported hash policies:
88
@@ -114,11 +116,11 @@
114 </tr>
115 <tr>
116 <td valign='top'>shun-sha1</td>
117 <td>Like "sha3-only" but at this level do not accept a push of SHA1-named
118 artifacts. If another Fossil instance tries to push a SHA1-named artifact,
119 discard and ignore it.
120 </tr>
121 </table>
122
123 For Fossil 2.0, and obviously also for Fossil 1.37 and before, the
124 only hash policy supported was "sha1". All new artifacts were named
125
--- www/hashpolicy.wiki
+++ www/hashpolicy.wiki
@@ -13,11 +13,11 @@
13 going on, read on...
14
15
16 <h2> Introduction </h2>
17
18 The first snapshot-based distributed version control system
19 was [http://www.monotone.ca|Monotone]. Many of the ideas behind the design
20 of Fossil were copied from Monotone, including the use of a SHA1 hash to
21 assign names to artifacts. Git and Mercurial did the same thing.
22
23 The SHA1 hash algorithm is used only to create names for artifacts in Fossil
@@ -27,11 +27,11 @@
27 "SHA1 is broken". They see that Fossil (and Git, Mercurial, and Monotone)
28 use SHA1 and they therefore conclude that "Fossil is broken". This is
29 not true, but it is a public relations problem. So the decision
30 was made to migrate Fossil away from SHA1.
31
32 This article describes how that migration is occurring.
33
34 <h2>Use Of Hardened SHA1</h2>
35
36 In Fossil version 2.0 ([/timeline?c=version-2.0|2017-03-03]),
37 the internal SHA1 implementation was changed from a generic
@@ -79,10 +79,12 @@
79 and write all the same repositories and sync with one another, as long
80 as none of the repositories contain artifacts named using SHA3. If
81 a repository does contain artifacts named using SHA3, Fossil 1.37 will
82 not know how to interpret those artifacts and will generate various warnings
83 and errors.
84
85 <h2>Picking Which Hash Algorithm To Use</h2>
86
87 If newer versions of Fossil are able to use either SHA1 or SHA3 to
88 name artifacts, which hash algorithm is actually used? That question
89 is answered by the "hash policy". These are the supported hash policies:
90
@@ -114,11 +116,11 @@
116 </tr>
117 <tr>
118 <td valign='top'>shun-sha1</td>
119 <td>Like "sha3-only" but at this level do not accept a push of SHA1-named
120 artifacts. If another Fossil instance tries to push a SHA1-named artifact,
121 that artifact is discarded and ignored.
122 </tr>
123 </table>
124
125 For Fossil 2.0, and obviously also for Fossil 1.37 and before, the
126 only hash policy supported was "sha1". All new artifacts were named
127

Keyboard Shortcuts

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