Fossil SCM
Merge trunk into autodef-build-fixes
Commit
f116b4ed598e8c59a361ce6fdd2db9acbdc2a8614f663c5ef8c21e8afdb98c54
Parent
37713fc1280bb92…
4 files changed
+2
-2
+1
-1
+2
-2
+1
-1
+2
-2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -2606,11 +2606,11 @@ | ||
| 2606 | 2606 | } |
| 2607 | 2607 | if( forceDelta ){ |
| 2608 | 2608 | if( forceBaseline ){ |
| 2609 | 2609 | fossil_fatal("cannot use --delta and --baseline together"); |
| 2610 | 2610 | } |
| 2611 | - if( db_get_boolean("forbid-delta-manifests",0) ){ | |
| 2611 | + if( db_get_boolean("forbid-delta-manifests",1) ){ | |
| 2612 | 2612 | fossil_fatal("delta manifests are prohibited in this repository"); |
| 2613 | 2613 | } |
| 2614 | 2614 | } |
| 2615 | 2615 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 2616 | 2616 | if( !dryRunFlag ){ |
| @@ -2784,11 +2784,11 @@ | ||
| 2784 | 2784 | ** --delta option is specified. The remote repo will send the |
| 2785 | 2785 | ** avoid-delta-manifests pragma if its "forbid-delta-manifests" |
| 2786 | 2786 | ** setting is enabled. |
| 2787 | 2787 | */ |
| 2788 | 2788 | if( !(forceDelta || db_get_boolean("seen-delta-manifest",0)) |
| 2789 | - || db_get_boolean("forbid-delta-manifests",0) | |
| 2789 | + || db_get_boolean("forbid-delta-manifests",1) | |
| 2790 | 2790 | || g.bAvoidDeltaManifests |
| 2791 | 2791 | ){ |
| 2792 | 2792 | forceBaseline = 1; |
| 2793 | 2793 | } |
| 2794 | 2794 | |
| 2795 | 2795 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2606,11 +2606,11 @@ | |
| 2606 | } |
| 2607 | if( forceDelta ){ |
| 2608 | if( forceBaseline ){ |
| 2609 | fossil_fatal("cannot use --delta and --baseline together"); |
| 2610 | } |
| 2611 | if( db_get_boolean("forbid-delta-manifests",0) ){ |
| 2612 | fossil_fatal("delta manifests are prohibited in this repository"); |
| 2613 | } |
| 2614 | } |
| 2615 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 2616 | if( !dryRunFlag ){ |
| @@ -2784,11 +2784,11 @@ | |
| 2784 | ** --delta option is specified. The remote repo will send the |
| 2785 | ** avoid-delta-manifests pragma if its "forbid-delta-manifests" |
| 2786 | ** setting is enabled. |
| 2787 | */ |
| 2788 | if( !(forceDelta || db_get_boolean("seen-delta-manifest",0)) |
| 2789 | || db_get_boolean("forbid-delta-manifests",0) |
| 2790 | || g.bAvoidDeltaManifests |
| 2791 | ){ |
| 2792 | forceBaseline = 1; |
| 2793 | } |
| 2794 | |
| 2795 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2606,11 +2606,11 @@ | |
| 2606 | } |
| 2607 | if( forceDelta ){ |
| 2608 | if( forceBaseline ){ |
| 2609 | fossil_fatal("cannot use --delta and --baseline together"); |
| 2610 | } |
| 2611 | if( db_get_boolean("forbid-delta-manifests",1) ){ |
| 2612 | fossil_fatal("delta manifests are prohibited in this repository"); |
| 2613 | } |
| 2614 | } |
| 2615 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 2616 | if( !dryRunFlag ){ |
| @@ -2784,11 +2784,11 @@ | |
| 2784 | ** --delta option is specified. The remote repo will send the |
| 2785 | ** avoid-delta-manifests pragma if its "forbid-delta-manifests" |
| 2786 | ** setting is enabled. |
| 2787 | */ |
| 2788 | if( !(forceDelta || db_get_boolean("seen-delta-manifest",0)) |
| 2789 | || db_get_boolean("forbid-delta-manifests",1) |
| 2790 | || g.bAvoidDeltaManifests |
| 2791 | ){ |
| 2792 | forceBaseline = 1; |
| 2793 | } |
| 2794 | |
| 2795 |
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -4894,11 +4894,11 @@ | ||
| 4894 | 4894 | ** complex; see https://fossil-scm.org/home/doc/trunk/www/globs.md#syntax |
| 4895 | 4895 | ** Note that /fileedit cannot edit binary files, so the list should not |
| 4896 | 4896 | ** contain any globs for, e.g., images or PDFs. |
| 4897 | 4897 | */ |
| 4898 | 4898 | /* |
| 4899 | -** SETTING: forbid-delta-manifests boolean default=off | |
| 4899 | +** SETTING: forbid-delta-manifests boolean default=on | |
| 4900 | 4900 | ** If enabled on a client, new delta manifests are prohibited on |
| 4901 | 4901 | ** commits. If enabled on a server, whenever a client attempts |
| 4902 | 4902 | ** to obtain a check-in lock during auto-sync, the server will |
| 4903 | 4903 | ** send the "pragma avoid-delta-manifests" statement in its reply, |
| 4904 | 4904 | ** which will cause the client to avoid generating a delta |
| 4905 | 4905 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -4894,11 +4894,11 @@ | |
| 4894 | ** complex; see https://fossil-scm.org/home/doc/trunk/www/globs.md#syntax |
| 4895 | ** Note that /fileedit cannot edit binary files, so the list should not |
| 4896 | ** contain any globs for, e.g., images or PDFs. |
| 4897 | */ |
| 4898 | /* |
| 4899 | ** SETTING: forbid-delta-manifests boolean default=off |
| 4900 | ** If enabled on a client, new delta manifests are prohibited on |
| 4901 | ** commits. If enabled on a server, whenever a client attempts |
| 4902 | ** to obtain a check-in lock during auto-sync, the server will |
| 4903 | ** send the "pragma avoid-delta-manifests" statement in its reply, |
| 4904 | ** which will cause the client to avoid generating a delta |
| 4905 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -4894,11 +4894,11 @@ | |
| 4894 | ** complex; see https://fossil-scm.org/home/doc/trunk/www/globs.md#syntax |
| 4895 | ** Note that /fileedit cannot edit binary files, so the list should not |
| 4896 | ** contain any globs for, e.g., images or PDFs. |
| 4897 | */ |
| 4898 | /* |
| 4899 | ** SETTING: forbid-delta-manifests boolean default=on |
| 4900 | ** If enabled on a client, new delta manifests are prohibited on |
| 4901 | ** commits. If enabled on a server, whenever a client attempts |
| 4902 | ** to obtain a check-in lock during auto-sync, the server will |
| 4903 | ** send the "pragma avoid-delta-manifests" statement in its reply, |
| 4904 | ** which will cause the client to avoid generating a delta |
| 4905 |
+2
-2
| --- src/fileedit.c | ||
| +++ src/fileedit.c | ||
| @@ -356,11 +356,11 @@ | ||
| 356 | 356 | ** tiny gain for doing so. That heuristic is not *quite* |
| 357 | 357 | ** right, in that when we're deriving from another delta, we |
| 358 | 358 | ** really should compare the F-card count between it and its |
| 359 | 359 | ** baseline, and create a delta if the baseline has (say) |
| 360 | 360 | ** twice or more as many F-cards as the previous delta. */) |
| 361 | - && !db_get_boolean("forbid-delta-manifests",0) | |
| 361 | + && !db_get_boolean("forbid-delta-manifests",1) | |
| 362 | 362 | ){ |
| 363 | 363 | asDelta = 1; |
| 364 | 364 | blob_appendf(pOut, "B %s\n", |
| 365 | 365 | pCI->pParent->zBaseline |
| 366 | 366 | ? pCI->pParent->zBaseline |
| @@ -1875,11 +1875,11 @@ | ||
| 1875 | 1875 | "what appear to be fossil merge conflict " |
| 1876 | 1876 | "markers?"); |
| 1877 | 1877 | style_labeled_checkbox("cb-prefer-delta", |
| 1878 | 1878 | "prefer_delta", |
| 1879 | 1879 | "Prefer delta manifest?", "1", |
| 1880 | - db_get_boolean("forbid-delta-manifests",0) | |
| 1880 | + db_get_boolean("forbid-delta-manifests",1) | |
| 1881 | 1881 | ? 0 |
| 1882 | 1882 | : (db_get_boolean("seen-delta-manifest",0) |
| 1883 | 1883 | || cimi.flags & CIMINI_PREFER_DELTA), |
| 1884 | 1884 | "Will create a delta manifest, instead of " |
| 1885 | 1885 | "baseline, if conditions are favorable to " |
| 1886 | 1886 |
| --- src/fileedit.c | |
| +++ src/fileedit.c | |
| @@ -356,11 +356,11 @@ | |
| 356 | ** tiny gain for doing so. That heuristic is not *quite* |
| 357 | ** right, in that when we're deriving from another delta, we |
| 358 | ** really should compare the F-card count between it and its |
| 359 | ** baseline, and create a delta if the baseline has (say) |
| 360 | ** twice or more as many F-cards as the previous delta. */) |
| 361 | && !db_get_boolean("forbid-delta-manifests",0) |
| 362 | ){ |
| 363 | asDelta = 1; |
| 364 | blob_appendf(pOut, "B %s\n", |
| 365 | pCI->pParent->zBaseline |
| 366 | ? pCI->pParent->zBaseline |
| @@ -1875,11 +1875,11 @@ | |
| 1875 | "what appear to be fossil merge conflict " |
| 1876 | "markers?"); |
| 1877 | style_labeled_checkbox("cb-prefer-delta", |
| 1878 | "prefer_delta", |
| 1879 | "Prefer delta manifest?", "1", |
| 1880 | db_get_boolean("forbid-delta-manifests",0) |
| 1881 | ? 0 |
| 1882 | : (db_get_boolean("seen-delta-manifest",0) |
| 1883 | || cimi.flags & CIMINI_PREFER_DELTA), |
| 1884 | "Will create a delta manifest, instead of " |
| 1885 | "baseline, if conditions are favorable to " |
| 1886 |
| --- src/fileedit.c | |
| +++ src/fileedit.c | |
| @@ -356,11 +356,11 @@ | |
| 356 | ** tiny gain for doing so. That heuristic is not *quite* |
| 357 | ** right, in that when we're deriving from another delta, we |
| 358 | ** really should compare the F-card count between it and its |
| 359 | ** baseline, and create a delta if the baseline has (say) |
| 360 | ** twice or more as many F-cards as the previous delta. */) |
| 361 | && !db_get_boolean("forbid-delta-manifests",1) |
| 362 | ){ |
| 363 | asDelta = 1; |
| 364 | blob_appendf(pOut, "B %s\n", |
| 365 | pCI->pParent->zBaseline |
| 366 | ? pCI->pParent->zBaseline |
| @@ -1875,11 +1875,11 @@ | |
| 1875 | "what appear to be fossil merge conflict " |
| 1876 | "markers?"); |
| 1877 | style_labeled_checkbox("cb-prefer-delta", |
| 1878 | "prefer_delta", |
| 1879 | "Prefer delta manifest?", "1", |
| 1880 | db_get_boolean("forbid-delta-manifests",1) |
| 1881 | ? 0 |
| 1882 | : (db_get_boolean("seen-delta-manifest",0) |
| 1883 | || cimi.flags & CIMINI_PREFER_DELTA), |
| 1884 | "Will create a delta manifest, instead of " |
| 1885 | "baseline, if conditions are favorable to " |
| 1886 |
+1
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -1826,11 +1826,11 @@ | ||
| 1826 | 1826 | blob_str(&xfer.aToken[2]), g.zLogin, |
| 1827 | 1827 | blob_str(&xfer.aToken[3]) |
| 1828 | 1828 | ); |
| 1829 | 1829 | db_protect_pop(); |
| 1830 | 1830 | } |
| 1831 | - if( db_get_boolean("forbid-delta-manifests",0) ){ | |
| 1831 | + if( db_get_boolean("forbid-delta-manifests",1) ){ | |
| 1832 | 1832 | @ pragma avoid-delta-manifests |
| 1833 | 1833 | } |
| 1834 | 1834 | }else |
| 1835 | 1835 | |
| 1836 | 1836 | /* pragma ci-unlock CLIENT-ID |
| 1837 | 1837 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -1826,11 +1826,11 @@ | |
| 1826 | blob_str(&xfer.aToken[2]), g.zLogin, |
| 1827 | blob_str(&xfer.aToken[3]) |
| 1828 | ); |
| 1829 | db_protect_pop(); |
| 1830 | } |
| 1831 | if( db_get_boolean("forbid-delta-manifests",0) ){ |
| 1832 | @ pragma avoid-delta-manifests |
| 1833 | } |
| 1834 | }else |
| 1835 | |
| 1836 | /* pragma ci-unlock CLIENT-ID |
| 1837 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -1826,11 +1826,11 @@ | |
| 1826 | blob_str(&xfer.aToken[2]), g.zLogin, |
| 1827 | blob_str(&xfer.aToken[3]) |
| 1828 | ); |
| 1829 | db_protect_pop(); |
| 1830 | } |
| 1831 | if( db_get_boolean("forbid-delta-manifests",1) ){ |
| 1832 | @ pragma avoid-delta-manifests |
| 1833 | } |
| 1834 | }else |
| 1835 | |
| 1836 | /* pragma ci-unlock CLIENT-ID |
| 1837 |