Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add an undocumented --noverify option to the rebuild command to skip the verify_before_commit() sanity check. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6a11af1782ede28a10a1e6ac36fde1da |
User & Date: | drh 2010-11-06 23:59:30 |
Context
2010-11-07
| ||
23:51 | Avoid the use of %lld to work around limitations of some windows compilers. Ticket [9d186979fc4fe8d9c] check-in: c76bb6d2 user: drh tags: trunk | |
10:23 | Merge from trunk. Leaf check-in: 1a6876db user: michael tags: ttmrichter-skins | |
10:13 | merge from trunk check-in: 8050311d user: wolfgang tags: StvPrivateHook2 | |
08:16 | Create new branch named "venks-emacs" check-in: e8d231aa user: venkat tags: venks-emacs | |
2010-11-06
| ||
23:59 | Add an undocumented --noverify option to the rebuild command to skip the verify_before_commit() sanity check. check-in: 6a11af17 user: drh tags: trunk | |
21:04 | Rename the "portable_system()" function to "fossil_system()" and move it from diffcmd.c into main.c. check-in: d9880a80 user: drh tags: trunk | |
Changes
Changes to src/rebuild.c.
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
...
371
372
373
374
375
376
377
378
379
380
381
382
383
384
|
** records. Run this command after updating the fossil
** executable in a way that changes the database schema.
*/
void rebuild_database(void){
int forceFlag;
int randomizeFlag;
int errCnt;
forceFlag = find_option("force","f",0)!=0;
randomizeFlag = find_option("randomize", 0, 0)!=0;
if( g.argc==3 ){
db_open_repository(g.argv[2]);
}else{
db_find_and_open_repository(1);
if( g.argc!=2 ){
................................................................................
ttyOutput = 1;
errCnt = rebuild_db(randomizeFlag, 1);
if( errCnt && !forceFlag ){
printf("%d errors. Rolling back changes. Use --force to force a commit.\n",
errCnt);
db_end_transaction(1);
}else{
db_end_transaction(0);
}
}
/*
** COMMAND: test-detach
**
|
>
>
>
|
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
...
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
|
** records. Run this command after updating the fossil ** executable in a way that changes the database schema. */ void rebuild_database(void){ int forceFlag; int randomizeFlag; int errCnt; int omitVerify; omitVerify = find_option("noverify",0,0)!=0; forceFlag = find_option("force","f",0)!=0; randomizeFlag = find_option("randomize", 0, 0)!=0; if( g.argc==3 ){ db_open_repository(g.argv[2]); }else{ db_find_and_open_repository(1); if( g.argc!=2 ){ ................................................................................ ttyOutput = 1; errCnt = rebuild_db(randomizeFlag, 1); if( errCnt && !forceFlag ){ printf("%d errors. Rolling back changes. Use --force to force a commit.\n", errCnt); db_end_transaction(1); }else{ if( omitVerify ) verify_cancel(); db_end_transaction(0); } } /* ** COMMAND: test-detach ** |