Fossil SCM
Earlier detection of unresolved deltas due to an incomplete clone.
Commit
55a5b7014d890728a4c60b6e56cac699483212cf78ae06b60ac269a2fea9a216
Parent
ea5afad31f47839…
1 file changed
+4
+4
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -265,10 +265,14 @@ | ||
| 265 | 265 | fossil_fatal("server returned an error - clone aborted"); |
| 266 | 266 | } |
| 267 | 267 | db_open_repository(zRepo); |
| 268 | 268 | } |
| 269 | 269 | db_begin_transaction(); |
| 270 | + if( db_exists("SELECT 1 FROM delta WHERE srcId IN phantom") ){ | |
| 271 | + fossil_fatal("there are unresolved deltas -" | |
| 272 | + " the clone is probably incomplete and unusable."); | |
| 273 | + } | |
| 270 | 274 | fossil_print("Rebuilding repository meta-data...\n"); |
| 271 | 275 | rebuild_db(0, 1, 0); |
| 272 | 276 | if( !noCompress ){ |
| 273 | 277 | fossil_print("Extra delta compression... "); fflush(stdout); |
| 274 | 278 | extra_deltification(); |
| 275 | 279 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -265,10 +265,14 @@ | |
| 265 | fossil_fatal("server returned an error - clone aborted"); |
| 266 | } |
| 267 | db_open_repository(zRepo); |
| 268 | } |
| 269 | db_begin_transaction(); |
| 270 | fossil_print("Rebuilding repository meta-data...\n"); |
| 271 | rebuild_db(0, 1, 0); |
| 272 | if( !noCompress ){ |
| 273 | fossil_print("Extra delta compression... "); fflush(stdout); |
| 274 | extra_deltification(); |
| 275 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -265,10 +265,14 @@ | |
| 265 | fossil_fatal("server returned an error - clone aborted"); |
| 266 | } |
| 267 | db_open_repository(zRepo); |
| 268 | } |
| 269 | db_begin_transaction(); |
| 270 | if( db_exists("SELECT 1 FROM delta WHERE srcId IN phantom") ){ |
| 271 | fossil_fatal("there are unresolved deltas -" |
| 272 | " the clone is probably incomplete and unusable."); |
| 273 | } |
| 274 | fossil_print("Rebuilding repository meta-data...\n"); |
| 275 | rebuild_db(0, 1, 0); |
| 276 | if( !noCompress ){ |
| 277 | fossil_print("Extra delta compression... "); fflush(stdout); |
| 278 | extra_deltification(); |
| 279 |