Fossil SCM

Attempt to set the repository application_id to 1598444364 (which is the same as '_FSL') before any changes to the repository.

drh 2013-05-01 19:59 trunk
Commit 822d6f0dab1fb7ea60e0171e5de7344cfcd8dcbe
2 files changed +1 +4
+1
--- src/db.c
+++ src/db.c
@@ -164,10 +164,11 @@
164164
if( rollbackFlag ) db.doRollback = 1;
165165
db.nBegin--;
166166
if( db.nBegin==0 ){
167167
int i;
168168
if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){
169
+ sqlite3_exec(g.db, "PRAGMA application_id=1598444364;", 0, 0, 0);
169170
while( db.nBeforeCommit ){
170171
db.nBeforeCommit--;
171172
sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0);
172173
sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]);
173174
}
174175
--- src/db.c
+++ src/db.c
@@ -164,10 +164,11 @@
164 if( rollbackFlag ) db.doRollback = 1;
165 db.nBegin--;
166 if( db.nBegin==0 ){
167 int i;
168 if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){
 
169 while( db.nBeforeCommit ){
170 db.nBeforeCommit--;
171 sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0);
172 sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]);
173 }
174
--- src/db.c
+++ src/db.c
@@ -164,10 +164,11 @@
164 if( rollbackFlag ) db.doRollback = 1;
165 db.nBegin--;
166 if( db.nBegin==0 ){
167 int i;
168 if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){
169 sqlite3_exec(g.db, "PRAGMA application_id=1598444364;", 0, 0, 0);
170 while( db.nBeforeCommit ){
171 db.nBeforeCommit--;
172 sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0);
173 sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]);
174 }
175
--- src/schema.c
+++ src/schema.c
@@ -178,10 +178,14 @@
178178
@ CREATE TABLE concealed(
179179
@ hash TEXT PRIMARY KEY, -- The SHA1 hash of content
180180
@ mtime DATE, -- Time created. Seconds since 1970
181181
@ content TEXT -- Content intended to be concealed
182182
@ );
183
+@
184
+@ -- The application ID helps the unix "file" command to identify the
185
+@ -- database as a fossil repository.
186
+@ PRAGMA application_id=1598444364; -- Equivalent to '_FSL'
183187
;
184188
185189
/*
186190
** The default reportfmt entry for the schema. This is in an extra
187191
** script so that (configure reset) can install the default report.
188192
--- src/schema.c
+++ src/schema.c
@@ -178,10 +178,14 @@
178 @ CREATE TABLE concealed(
179 @ hash TEXT PRIMARY KEY, -- The SHA1 hash of content
180 @ mtime DATE, -- Time created. Seconds since 1970
181 @ content TEXT -- Content intended to be concealed
182 @ );
 
 
 
 
183 ;
184
185 /*
186 ** The default reportfmt entry for the schema. This is in an extra
187 ** script so that (configure reset) can install the default report.
188
--- src/schema.c
+++ src/schema.c
@@ -178,10 +178,14 @@
178 @ CREATE TABLE concealed(
179 @ hash TEXT PRIMARY KEY, -- The SHA1 hash of content
180 @ mtime DATE, -- Time created. Seconds since 1970
181 @ content TEXT -- Content intended to be concealed
182 @ );
183 @
184 @ -- The application ID helps the unix "file" command to identify the
185 @ -- database as a fossil repository.
186 @ PRAGMA application_id=1598444364; -- Equivalent to '_FSL'
187 ;
188
189 /*
190 ** The default reportfmt entry for the schema. This is in an extra
191 ** script so that (configure reset) can install the default report.
192

Keyboard Shortcuts

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