Fossil SCM
Ensure that the unversioned table exists if an upload is triggered via /uvlist.
Commit
3aa57a20b793877c288480654aa5c7120fdd3d659f89eb71abc97a5df81876cb
Parent
77fb3d07a8c22f7…
1 file changed
+1
+1
| --- src/unversioned.c | ||
| +++ src/unversioned.c | ||
| @@ -551,10 +551,11 @@ | ||
| 551 | 551 | } |
| 552 | 552 | if( zError ){ |
| 553 | 553 | fossil_fatal("Unversioned filenames may not %s: %Q", |
| 554 | 554 | zError, zName); |
| 555 | 555 | } |
| 556 | + unversioned_schema(); | |
| 556 | 557 | db_begin_transaction(); |
| 557 | 558 | content_rcvid_init("#!fossil /uvlist upload"); |
| 558 | 559 | blob_init(&content, aContent, nContent); |
| 559 | 560 | unversioned_write(zName, &content, time(0)); |
| 560 | 561 | blob_reset(&content); |
| 561 | 562 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -551,10 +551,11 @@ | |
| 551 | } |
| 552 | if( zError ){ |
| 553 | fossil_fatal("Unversioned filenames may not %s: %Q", |
| 554 | zError, zName); |
| 555 | } |
| 556 | db_begin_transaction(); |
| 557 | content_rcvid_init("#!fossil /uvlist upload"); |
| 558 | blob_init(&content, aContent, nContent); |
| 559 | unversioned_write(zName, &content, time(0)); |
| 560 | blob_reset(&content); |
| 561 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -551,10 +551,11 @@ | |
| 551 | } |
| 552 | if( zError ){ |
| 553 | fossil_fatal("Unversioned filenames may not %s: %Q", |
| 554 | zError, zName); |
| 555 | } |
| 556 | unversioned_schema(); |
| 557 | db_begin_transaction(); |
| 558 | content_rcvid_init("#!fossil /uvlist upload"); |
| 559 | blob_init(&content, aContent, nContent); |
| 560 | unversioned_write(zName, &content, time(0)); |
| 561 | blob_reset(&content); |
| 562 |