Fossil SCM

Only set "seen-delta-manifest" once.

jan.nijtmans 2013-07-10 10:10 trunk
Commit 18d762af88a8ac9bf75c7d790780fa3c759b27e3
1 file changed +2 -2
+2 -2
--- src/manifest.c
+++ src/manifest.c
@@ -1715,12 +1715,12 @@
17151715
/* If this is a delta-manifest, record the fact that this repository
17161716
** contains delta manifests, to free the "commit" logic to generate
17171717
** new delta manifests.
17181718
*/
17191719
if( p->zBaseline!=0 ){
1720
- static int once = 0;
1721
- if( !once ){
1720
+ static int once = 1;
1721
+ if( once ){
17221722
db_set_int("seen-delta-manifest", 1, 0);
17231723
once = 0;
17241724
}
17251725
}
17261726
}
17271727
--- src/manifest.c
+++ src/manifest.c
@@ -1715,12 +1715,12 @@
1715 /* If this is a delta-manifest, record the fact that this repository
1716 ** contains delta manifests, to free the "commit" logic to generate
1717 ** new delta manifests.
1718 */
1719 if( p->zBaseline!=0 ){
1720 static int once = 0;
1721 if( !once ){
1722 db_set_int("seen-delta-manifest", 1, 0);
1723 once = 0;
1724 }
1725 }
1726 }
1727
--- src/manifest.c
+++ src/manifest.c
@@ -1715,12 +1715,12 @@
1715 /* If this is a delta-manifest, record the fact that this repository
1716 ** contains delta manifests, to free the "commit" logic to generate
1717 ** new delta manifests.
1718 */
1719 if( p->zBaseline!=0 ){
1720 static int once = 1;
1721 if( once ){
1722 db_set_int("seen-delta-manifest", 1, 0);
1723 once = 0;
1724 }
1725 }
1726 }
1727

Keyboard Shortcuts

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