Fossil SCM

Fix the forbid-delta-manifest setting so that it actually works.

drh 2020-07-24 10:57 trunk
Commit 6ed036f287235a576db28d8570a4dd21daa52804ee3856c93a89c176be2f52aa
1 file changed +4 -3
+4 -3
--- src/checkin.c
+++ src/checkin.c
@@ -2238,14 +2238,15 @@
22382238
/* So that older versions of Fossil (that do not understand delta-
22392239
** manifest) can continue to use this repository, do not create a new
22402240
** delta-manifest unless this repository already contains one or more
22412241
** delta-manifests, or unless the delta-manifest is explicitly requested
22422242
** by the --delta option.
2243
+ **
2244
+ ** The forbid-delta-manifests setting prevents new delta manifests.
22432245
*/
2244
- if( !forceDelta
2245
- && !db_get_boolean("seen-delta-manifest",0)
2246
- && !db_get_boolean("forbid-delta-manifests",0)
2246
+ if( (!forceDelta && !db_get_boolean("seen-delta-manifest",0))
2247
+ || db_get_boolean("forbid-delta-manifests",0)
22472248
){
22482249
forceBaseline = 1;
22492250
}
22502251
22512252
/*
22522253
--- src/checkin.c
+++ src/checkin.c
@@ -2238,14 +2238,15 @@
2238 /* So that older versions of Fossil (that do not understand delta-
2239 ** manifest) can continue to use this repository, do not create a new
2240 ** delta-manifest unless this repository already contains one or more
2241 ** delta-manifests, or unless the delta-manifest is explicitly requested
2242 ** by the --delta option.
 
 
2243 */
2244 if( !forceDelta
2245 && !db_get_boolean("seen-delta-manifest",0)
2246 && !db_get_boolean("forbid-delta-manifests",0)
2247 ){
2248 forceBaseline = 1;
2249 }
2250
2251 /*
2252
--- src/checkin.c
+++ src/checkin.c
@@ -2238,14 +2238,15 @@
2238 /* So that older versions of Fossil (that do not understand delta-
2239 ** manifest) can continue to use this repository, do not create a new
2240 ** delta-manifest unless this repository already contains one or more
2241 ** delta-manifests, or unless the delta-manifest is explicitly requested
2242 ** by the --delta option.
2243 **
2244 ** The forbid-delta-manifests setting prevents new delta manifests.
2245 */
2246 if( (!forceDelta && !db_get_boolean("seen-delta-manifest",0))
2247 || db_get_boolean("forbid-delta-manifests",0)
 
2248 ){
2249 forceBaseline = 1;
2250 }
2251
2252 /*
2253

Keyboard Shortcuts

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