Fossil SCM
Remove extra newlines from calls to fossil_fatal()
Commit
2c42b217e5c4f4044ed617562cb68ed1e0c4eb80
Parent
48ecfe6645a86d1…
12 files changed
+1
-1
+1
-1
+8
-8
+1
-1
+1
-1
+3
-3
+1
-1
+1
-1
+4
-4
+1
-1
+1
-1
+2
-2
+1
-1
| --- src/branch.c | ||
| +++ src/branch.c | ||
| @@ -154,11 +154,11 @@ | ||
| 154 | 154 | if( brid==0 ){ |
| 155 | 155 | fossil_fatal("trouble committing manifest: %s", g.zErrMsg); |
| 156 | 156 | } |
| 157 | 157 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", brid); |
| 158 | 158 | if( manifest_crosslink(brid, &branch, MC_PERMIT_HOOKS)==0 ){ |
| 159 | - fossil_fatal("%s\n", g.zErrMsg); | |
| 159 | + fossil_fatal("%s", g.zErrMsg); | |
| 160 | 160 | } |
| 161 | 161 | assert( blob_is_reset(&branch) ); |
| 162 | 162 | content_deltify(rootid, brid, 0); |
| 163 | 163 | zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", brid); |
| 164 | 164 | fossil_print("New branch: %s\n", zUuid); |
| 165 | 165 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -154,11 +154,11 @@ | |
| 154 | if( brid==0 ){ |
| 155 | fossil_fatal("trouble committing manifest: %s", g.zErrMsg); |
| 156 | } |
| 157 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", brid); |
| 158 | if( manifest_crosslink(brid, &branch, MC_PERMIT_HOOKS)==0 ){ |
| 159 | fossil_fatal("%s\n", g.zErrMsg); |
| 160 | } |
| 161 | assert( blob_is_reset(&branch) ); |
| 162 | content_deltify(rootid, brid, 0); |
| 163 | zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", brid); |
| 164 | fossil_print("New branch: %s\n", zUuid); |
| 165 |
| --- src/branch.c | |
| +++ src/branch.c | |
| @@ -154,11 +154,11 @@ | |
| 154 | if( brid==0 ){ |
| 155 | fossil_fatal("trouble committing manifest: %s", g.zErrMsg); |
| 156 | } |
| 157 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", brid); |
| 158 | if( manifest_crosslink(brid, &branch, MC_PERMIT_HOOKS)==0 ){ |
| 159 | fossil_fatal("%s", g.zErrMsg); |
| 160 | } |
| 161 | assert( blob_is_reset(&branch) ); |
| 162 | content_deltify(rootid, brid, 0); |
| 163 | zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", brid); |
| 164 | fossil_print("New branch: %s\n", zUuid); |
| 165 |
+1
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -2245,11 +2245,11 @@ | ||
| 2245 | 2245 | fossil_fatal("trouble committing manifest: %s", g.zErrMsg); |
| 2246 | 2246 | } |
| 2247 | 2247 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", nvid); |
| 2248 | 2248 | if( manifest_crosslink(nvid, &manifest, |
| 2249 | 2249 | dryRunFlag ? MC_NONE : MC_PERMIT_HOOKS)==0 ){ |
| 2250 | - fossil_fatal("%s\n", g.zErrMsg); | |
| 2250 | + fossil_fatal("%s", g.zErrMsg); | |
| 2251 | 2251 | } |
| 2252 | 2252 | assert( blob_is_reset(&manifest) ); |
| 2253 | 2253 | content_deltify(vid, nvid, 0); |
| 2254 | 2254 | zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", nvid); |
| 2255 | 2255 | |
| 2256 | 2256 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2245,11 +2245,11 @@ | |
| 2245 | fossil_fatal("trouble committing manifest: %s", g.zErrMsg); |
| 2246 | } |
| 2247 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", nvid); |
| 2248 | if( manifest_crosslink(nvid, &manifest, |
| 2249 | dryRunFlag ? MC_NONE : MC_PERMIT_HOOKS)==0 ){ |
| 2250 | fossil_fatal("%s\n", g.zErrMsg); |
| 2251 | } |
| 2252 | assert( blob_is_reset(&manifest) ); |
| 2253 | content_deltify(vid, nvid, 0); |
| 2254 | zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", nvid); |
| 2255 | |
| 2256 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -2245,11 +2245,11 @@ | |
| 2245 | fossil_fatal("trouble committing manifest: %s", g.zErrMsg); |
| 2246 | } |
| 2247 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", nvid); |
| 2248 | if( manifest_crosslink(nvid, &manifest, |
| 2249 | dryRunFlag ? MC_NONE : MC_PERMIT_HOOKS)==0 ){ |
| 2250 | fossil_fatal("%s", g.zErrMsg); |
| 2251 | } |
| 2252 | assert( blob_is_reset(&manifest) ); |
| 2253 | content_deltify(vid, nvid, 0); |
| 2254 | zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", nvid); |
| 2255 | |
| 2256 |
+8
-8
| --- src/deltacmd.c | ||
| +++ src/deltacmd.c | ||
| @@ -54,18 +54,18 @@ | ||
| 54 | 54 | Blob orig, target, delta; |
| 55 | 55 | if( g.argc!=5 ){ |
| 56 | 56 | usage("ORIGIN TARGET DELTA"); |
| 57 | 57 | } |
| 58 | 58 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 59 | - fossil_fatal("cannot read %s\n", g.argv[2]); | |
| 59 | + fossil_fatal("cannot read %s", g.argv[2]); | |
| 60 | 60 | } |
| 61 | 61 | if( blob_read_from_file(&target, g.argv[3])<0 ){ |
| 62 | - fossil_fatal("cannot read %s\n", g.argv[3]); | |
| 62 | + fossil_fatal("cannot read %s", g.argv[3]); | |
| 63 | 63 | } |
| 64 | 64 | blob_delta_create(&orig, &target, &delta); |
| 65 | 65 | if( blob_write_to_file(&delta, g.argv[4])<blob_size(&delta) ){ |
| 66 | - fossil_fatal("cannot write %s\n", g.argv[4]); | |
| 66 | + fossil_fatal("cannot write %s", g.argv[4]); | |
| 67 | 67 | } |
| 68 | 68 | blob_reset(&orig); |
| 69 | 69 | blob_reset(&target); |
| 70 | 70 | blob_reset(&delta); |
| 71 | 71 | } |
| @@ -85,14 +85,14 @@ | ||
| 85 | 85 | int sz1, sz2, sz3; |
| 86 | 86 | if( g.argc!=4 ){ |
| 87 | 87 | usage("ORIGIN TARGET"); |
| 88 | 88 | } |
| 89 | 89 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 90 | - fossil_fatal("cannot read %s\n", g.argv[2]); | |
| 90 | + fossil_fatal("cannot read %s", g.argv[2]); | |
| 91 | 91 | } |
| 92 | 92 | if( blob_read_from_file(&target, g.argv[3])<0 ){ |
| 93 | - fossil_fatal("cannot read %s\n", g.argv[3]); | |
| 93 | + fossil_fatal("cannot read %s", g.argv[3]); | |
| 94 | 94 | } |
| 95 | 95 | blob_delta_create(&orig, &target, &delta); |
| 96 | 96 | delta_analyze(blob_buffer(&delta), blob_size(&delta), &nCopy, &nInsert); |
| 97 | 97 | sz1 = blob_size(&orig); |
| 98 | 98 | sz2 = blob_size(&target); |
| @@ -153,18 +153,18 @@ | ||
| 153 | 153 | Blob orig, target, delta; |
| 154 | 154 | if( g.argc!=5 ){ |
| 155 | 155 | usage("ORIGIN DELTA TARGET"); |
| 156 | 156 | } |
| 157 | 157 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 158 | - fossil_fatal("cannot read %s\n", g.argv[2]); | |
| 158 | + fossil_fatal("cannot read %s", g.argv[2]); | |
| 159 | 159 | } |
| 160 | 160 | if( blob_read_from_file(&delta, g.argv[3])<0 ){ |
| 161 | - fossil_fatal("cannot read %s\n", g.argv[3]); | |
| 161 | + fossil_fatal("cannot read %s", g.argv[3]); | |
| 162 | 162 | } |
| 163 | 163 | blob_delta_apply(&orig, &delta, &target); |
| 164 | 164 | if( blob_write_to_file(&target, g.argv[4])<blob_size(&target) ){ |
| 165 | - fossil_fatal("cannot write %s\n", g.argv[4]); | |
| 165 | + fossil_fatal("cannot write %s", g.argv[4]); | |
| 166 | 166 | } |
| 167 | 167 | blob_reset(&orig); |
| 168 | 168 | blob_reset(&target); |
| 169 | 169 | blob_reset(&delta); |
| 170 | 170 | } |
| 171 | 171 |
| --- src/deltacmd.c | |
| +++ src/deltacmd.c | |
| @@ -54,18 +54,18 @@ | |
| 54 | Blob orig, target, delta; |
| 55 | if( g.argc!=5 ){ |
| 56 | usage("ORIGIN TARGET DELTA"); |
| 57 | } |
| 58 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 59 | fossil_fatal("cannot read %s\n", g.argv[2]); |
| 60 | } |
| 61 | if( blob_read_from_file(&target, g.argv[3])<0 ){ |
| 62 | fossil_fatal("cannot read %s\n", g.argv[3]); |
| 63 | } |
| 64 | blob_delta_create(&orig, &target, &delta); |
| 65 | if( blob_write_to_file(&delta, g.argv[4])<blob_size(&delta) ){ |
| 66 | fossil_fatal("cannot write %s\n", g.argv[4]); |
| 67 | } |
| 68 | blob_reset(&orig); |
| 69 | blob_reset(&target); |
| 70 | blob_reset(&delta); |
| 71 | } |
| @@ -85,14 +85,14 @@ | |
| 85 | int sz1, sz2, sz3; |
| 86 | if( g.argc!=4 ){ |
| 87 | usage("ORIGIN TARGET"); |
| 88 | } |
| 89 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 90 | fossil_fatal("cannot read %s\n", g.argv[2]); |
| 91 | } |
| 92 | if( blob_read_from_file(&target, g.argv[3])<0 ){ |
| 93 | fossil_fatal("cannot read %s\n", g.argv[3]); |
| 94 | } |
| 95 | blob_delta_create(&orig, &target, &delta); |
| 96 | delta_analyze(blob_buffer(&delta), blob_size(&delta), &nCopy, &nInsert); |
| 97 | sz1 = blob_size(&orig); |
| 98 | sz2 = blob_size(&target); |
| @@ -153,18 +153,18 @@ | |
| 153 | Blob orig, target, delta; |
| 154 | if( g.argc!=5 ){ |
| 155 | usage("ORIGIN DELTA TARGET"); |
| 156 | } |
| 157 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 158 | fossil_fatal("cannot read %s\n", g.argv[2]); |
| 159 | } |
| 160 | if( blob_read_from_file(&delta, g.argv[3])<0 ){ |
| 161 | fossil_fatal("cannot read %s\n", g.argv[3]); |
| 162 | } |
| 163 | blob_delta_apply(&orig, &delta, &target); |
| 164 | if( blob_write_to_file(&target, g.argv[4])<blob_size(&target) ){ |
| 165 | fossil_fatal("cannot write %s\n", g.argv[4]); |
| 166 | } |
| 167 | blob_reset(&orig); |
| 168 | blob_reset(&target); |
| 169 | blob_reset(&delta); |
| 170 | } |
| 171 |
| --- src/deltacmd.c | |
| +++ src/deltacmd.c | |
| @@ -54,18 +54,18 @@ | |
| 54 | Blob orig, target, delta; |
| 55 | if( g.argc!=5 ){ |
| 56 | usage("ORIGIN TARGET DELTA"); |
| 57 | } |
| 58 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 59 | fossil_fatal("cannot read %s", g.argv[2]); |
| 60 | } |
| 61 | if( blob_read_from_file(&target, g.argv[3])<0 ){ |
| 62 | fossil_fatal("cannot read %s", g.argv[3]); |
| 63 | } |
| 64 | blob_delta_create(&orig, &target, &delta); |
| 65 | if( blob_write_to_file(&delta, g.argv[4])<blob_size(&delta) ){ |
| 66 | fossil_fatal("cannot write %s", g.argv[4]); |
| 67 | } |
| 68 | blob_reset(&orig); |
| 69 | blob_reset(&target); |
| 70 | blob_reset(&delta); |
| 71 | } |
| @@ -85,14 +85,14 @@ | |
| 85 | int sz1, sz2, sz3; |
| 86 | if( g.argc!=4 ){ |
| 87 | usage("ORIGIN TARGET"); |
| 88 | } |
| 89 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 90 | fossil_fatal("cannot read %s", g.argv[2]); |
| 91 | } |
| 92 | if( blob_read_from_file(&target, g.argv[3])<0 ){ |
| 93 | fossil_fatal("cannot read %s", g.argv[3]); |
| 94 | } |
| 95 | blob_delta_create(&orig, &target, &delta); |
| 96 | delta_analyze(blob_buffer(&delta), blob_size(&delta), &nCopy, &nInsert); |
| 97 | sz1 = blob_size(&orig); |
| 98 | sz2 = blob_size(&target); |
| @@ -153,18 +153,18 @@ | |
| 153 | Blob orig, target, delta; |
| 154 | if( g.argc!=5 ){ |
| 155 | usage("ORIGIN DELTA TARGET"); |
| 156 | } |
| 157 | if( blob_read_from_file(&orig, g.argv[2])<0 ){ |
| 158 | fossil_fatal("cannot read %s", g.argv[2]); |
| 159 | } |
| 160 | if( blob_read_from_file(&delta, g.argv[3])<0 ){ |
| 161 | fossil_fatal("cannot read %s", g.argv[3]); |
| 162 | } |
| 163 | blob_delta_apply(&orig, &delta, &target); |
| 164 | if( blob_write_to_file(&target, g.argv[4])<blob_size(&target) ){ |
| 165 | fossil_fatal("cannot write %s", g.argv[4]); |
| 166 | } |
| 167 | blob_reset(&orig); |
| 168 | blob_reset(&target); |
| 169 | blob_reset(&delta); |
| 170 | } |
| 171 |
+1
-1
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -363,11 +363,11 @@ | ||
| 363 | 363 | f = fossil_fopen(markfile_in, "r"); |
| 364 | 364 | if( f==0 ){ |
| 365 | 365 | fossil_fatal("cannot open %s for reading", markfile_in); |
| 366 | 366 | } |
| 367 | 367 | if(import_marks(f, &blobs, &vers)<0){ |
| 368 | - fossil_fatal("error importing marks from file: %s\n", markfile_in); | |
| 368 | + fossil_fatal("error importing marks from file: %s", markfile_in); | |
| 369 | 369 | } |
| 370 | 370 | db_prepare(&qb, "INSERT OR IGNORE INTO oldblob VALUES (:rid)"); |
| 371 | 371 | db_prepare(&qc, "INSERT OR IGNORE INTO oldcommit VALUES (:rid)"); |
| 372 | 372 | rid = bag_first(&blobs); |
| 373 | 373 | if(rid!=0){ |
| 374 | 374 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -363,11 +363,11 @@ | |
| 363 | f = fossil_fopen(markfile_in, "r"); |
| 364 | if( f==0 ){ |
| 365 | fossil_fatal("cannot open %s for reading", markfile_in); |
| 366 | } |
| 367 | if(import_marks(f, &blobs, &vers)<0){ |
| 368 | fossil_fatal("error importing marks from file: %s\n", markfile_in); |
| 369 | } |
| 370 | db_prepare(&qb, "INSERT OR IGNORE INTO oldblob VALUES (:rid)"); |
| 371 | db_prepare(&qc, "INSERT OR IGNORE INTO oldcommit VALUES (:rid)"); |
| 372 | rid = bag_first(&blobs); |
| 373 | if(rid!=0){ |
| 374 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -363,11 +363,11 @@ | |
| 363 | f = fossil_fopen(markfile_in, "r"); |
| 364 | if( f==0 ){ |
| 365 | fossil_fatal("cannot open %s for reading", markfile_in); |
| 366 | } |
| 367 | if(import_marks(f, &blobs, &vers)<0){ |
| 368 | fossil_fatal("error importing marks from file: %s", markfile_in); |
| 369 | } |
| 370 | db_prepare(&qb, "INSERT OR IGNORE INTO oldblob VALUES (:rid)"); |
| 371 | db_prepare(&qc, "INSERT OR IGNORE INTO oldcommit VALUES (:rid)"); |
| 372 | rid = bag_first(&blobs); |
| 373 | if(rid!=0){ |
| 374 |
+1
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -863,11 +863,11 @@ | ||
| 863 | 863 | #ifdef _WIN32 |
| 864 | 864 | win32_getcwd(zBuf, nBuf); |
| 865 | 865 | #else |
| 866 | 866 | if( getcwd(zBuf, nBuf-1)==0 ){ |
| 867 | 867 | if( errno==ERANGE ){ |
| 868 | - fossil_fatal("pwd too big: max %d\n", nBuf-1); | |
| 868 | + fossil_fatal("pwd too big: max %d", nBuf-1); | |
| 869 | 869 | }else{ |
| 870 | 870 | fossil_fatal("cannot find current working directory; %s", |
| 871 | 871 | strerror(errno)); |
| 872 | 872 | } |
| 873 | 873 | } |
| 874 | 874 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -863,11 +863,11 @@ | |
| 863 | #ifdef _WIN32 |
| 864 | win32_getcwd(zBuf, nBuf); |
| 865 | #else |
| 866 | if( getcwd(zBuf, nBuf-1)==0 ){ |
| 867 | if( errno==ERANGE ){ |
| 868 | fossil_fatal("pwd too big: max %d\n", nBuf-1); |
| 869 | }else{ |
| 870 | fossil_fatal("cannot find current working directory; %s", |
| 871 | strerror(errno)); |
| 872 | } |
| 873 | } |
| 874 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -863,11 +863,11 @@ | |
| 863 | #ifdef _WIN32 |
| 864 | win32_getcwd(zBuf, nBuf); |
| 865 | #else |
| 866 | if( getcwd(zBuf, nBuf-1)==0 ){ |
| 867 | if( errno==ERANGE ){ |
| 868 | fossil_fatal("pwd too big: max %d", nBuf-1); |
| 869 | }else{ |
| 870 | fossil_fatal("cannot find current working directory; %s", |
| 871 | strerror(errno)); |
| 872 | } |
| 873 | } |
| 874 |
+3
-3
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -1768,14 +1768,14 @@ | ||
| 1768 | 1768 | ); |
| 1769 | 1769 | |
| 1770 | 1770 | if( markfile_in ){ |
| 1771 | 1771 | FILE *f = fossil_fopen(markfile_in, "r"); |
| 1772 | 1772 | if( !f ){ |
| 1773 | - fossil_fatal("cannot open %s for reading\n", markfile_in); | |
| 1773 | + fossil_fatal("cannot open %s for reading", markfile_in); | |
| 1774 | 1774 | } |
| 1775 | 1775 | if(import_marks(f, &blobs, NULL)<0){ |
| 1776 | - fossil_fatal("error importing marks from file: %s\n", markfile_in); | |
| 1776 | + fossil_fatal("error importing marks from file: %s", markfile_in); | |
| 1777 | 1777 | } |
| 1778 | 1778 | fclose(f); |
| 1779 | 1779 | } |
| 1780 | 1780 | |
| 1781 | 1781 | manifest_crosslink_begin(); |
| @@ -1805,11 +1805,11 @@ | ||
| 1805 | 1805 | } |
| 1806 | 1806 | } |
| 1807 | 1807 | db_finalize(&q_marks); |
| 1808 | 1808 | f = fossil_fopen(markfile_out, "w"); |
| 1809 | 1809 | if( !f ){ |
| 1810 | - fossil_fatal("cannot open %s for writing\n", markfile_out); | |
| 1810 | + fossil_fatal("cannot open %s for writing", markfile_out); | |
| 1811 | 1811 | } |
| 1812 | 1812 | export_marks(f, &blobs, &vers); |
| 1813 | 1813 | fclose(f); |
| 1814 | 1814 | bag_clear(&blobs); |
| 1815 | 1815 | bag_clear(&vers); |
| 1816 | 1816 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1768,14 +1768,14 @@ | |
| 1768 | ); |
| 1769 | |
| 1770 | if( markfile_in ){ |
| 1771 | FILE *f = fossil_fopen(markfile_in, "r"); |
| 1772 | if( !f ){ |
| 1773 | fossil_fatal("cannot open %s for reading\n", markfile_in); |
| 1774 | } |
| 1775 | if(import_marks(f, &blobs, NULL)<0){ |
| 1776 | fossil_fatal("error importing marks from file: %s\n", markfile_in); |
| 1777 | } |
| 1778 | fclose(f); |
| 1779 | } |
| 1780 | |
| 1781 | manifest_crosslink_begin(); |
| @@ -1805,11 +1805,11 @@ | |
| 1805 | } |
| 1806 | } |
| 1807 | db_finalize(&q_marks); |
| 1808 | f = fossil_fopen(markfile_out, "w"); |
| 1809 | if( !f ){ |
| 1810 | fossil_fatal("cannot open %s for writing\n", markfile_out); |
| 1811 | } |
| 1812 | export_marks(f, &blobs, &vers); |
| 1813 | fclose(f); |
| 1814 | bag_clear(&blobs); |
| 1815 | bag_clear(&vers); |
| 1816 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1768,14 +1768,14 @@ | |
| 1768 | ); |
| 1769 | |
| 1770 | if( markfile_in ){ |
| 1771 | FILE *f = fossil_fopen(markfile_in, "r"); |
| 1772 | if( !f ){ |
| 1773 | fossil_fatal("cannot open %s for reading", markfile_in); |
| 1774 | } |
| 1775 | if(import_marks(f, &blobs, NULL)<0){ |
| 1776 | fossil_fatal("error importing marks from file: %s", markfile_in); |
| 1777 | } |
| 1778 | fclose(f); |
| 1779 | } |
| 1780 | |
| 1781 | manifest_crosslink_begin(); |
| @@ -1805,11 +1805,11 @@ | |
| 1805 | } |
| 1806 | } |
| 1807 | db_finalize(&q_marks); |
| 1808 | f = fossil_fopen(markfile_out, "w"); |
| 1809 | if( !f ){ |
| 1810 | fossil_fatal("cannot open %s for writing", markfile_out); |
| 1811 | } |
| 1812 | export_marks(f, &blobs, &vers); |
| 1813 | fclose(f); |
| 1814 | bag_clear(&blobs); |
| 1815 | bag_clear(&vers); |
| 1816 |
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -231,11 +231,11 @@ | ||
| 231 | 231 | db_int(-1, "SELECT count(*) FROM event WHERE type='ci' /*scan*/")); |
| 232 | 232 | }else{ |
| 233 | 233 | int rid; |
| 234 | 234 | rid = name_to_rid(g.argv[2]); |
| 235 | 235 | if( rid==0 ){ |
| 236 | - fossil_fatal("no such object: %s\n", g.argv[2]); | |
| 236 | + fossil_fatal("no such object: %s", g.argv[2]); | |
| 237 | 237 | } |
| 238 | 238 | show_common_info(rid, "uuid:", 1, 1); |
| 239 | 239 | } |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -231,11 +231,11 @@ | |
| 231 | db_int(-1, "SELECT count(*) FROM event WHERE type='ci' /*scan*/")); |
| 232 | }else{ |
| 233 | int rid; |
| 234 | rid = name_to_rid(g.argv[2]); |
| 235 | if( rid==0 ){ |
| 236 | fossil_fatal("no such object: %s\n", g.argv[2]); |
| 237 | } |
| 238 | show_common_info(rid, "uuid:", 1, 1); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -231,11 +231,11 @@ | |
| 231 | db_int(-1, "SELECT count(*) FROM event WHERE type='ci' /*scan*/")); |
| 232 | }else{ |
| 233 | int rid; |
| 234 | rid = name_to_rid(g.argv[2]); |
| 235 | if( rid==0 ){ |
| 236 | fossil_fatal("no such object: %s", g.argv[2]); |
| 237 | } |
| 238 | show_common_info(rid, "uuid:", 1, 1); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 |
+1
-1
| --- src/json_branch.c | ||
| +++ src/json_branch.c | ||
| @@ -292,11 +292,11 @@ | ||
| 292 | 292 | if( brid==0 ){ |
| 293 | 293 | fossil_fatal("Problem committing manifest: %s", g.zErrMsg); |
| 294 | 294 | } |
| 295 | 295 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", brid); |
| 296 | 296 | if( manifest_crosslink(brid, &branch, MC_PERMIT_HOOKS)==0 ){ |
| 297 | - fossil_fatal("%s\n", g.zErrMsg); | |
| 297 | + fossil_fatal("%s", g.zErrMsg); | |
| 298 | 298 | } |
| 299 | 299 | assert( blob_is_reset(&branch) ); |
| 300 | 300 | content_deltify(rootid, brid, 0); |
| 301 | 301 | if( zNewRid ){ |
| 302 | 302 | *zNewRid = brid; |
| 303 | 303 |
| --- src/json_branch.c | |
| +++ src/json_branch.c | |
| @@ -292,11 +292,11 @@ | |
| 292 | if( brid==0 ){ |
| 293 | fossil_fatal("Problem committing manifest: %s", g.zErrMsg); |
| 294 | } |
| 295 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", brid); |
| 296 | if( manifest_crosslink(brid, &branch, MC_PERMIT_HOOKS)==0 ){ |
| 297 | fossil_fatal("%s\n", g.zErrMsg); |
| 298 | } |
| 299 | assert( blob_is_reset(&branch) ); |
| 300 | content_deltify(rootid, brid, 0); |
| 301 | if( zNewRid ){ |
| 302 | *zNewRid = brid; |
| 303 |
| --- src/json_branch.c | |
| +++ src/json_branch.c | |
| @@ -292,11 +292,11 @@ | |
| 292 | if( brid==0 ){ |
| 293 | fossil_fatal("Problem committing manifest: %s", g.zErrMsg); |
| 294 | } |
| 295 | db_multi_exec("INSERT OR IGNORE INTO unsent VALUES(%d)", brid); |
| 296 | if( manifest_crosslink(brid, &branch, MC_PERMIT_HOOKS)==0 ){ |
| 297 | fossil_fatal("%s", g.zErrMsg); |
| 298 | } |
| 299 | assert( blob_is_reset(&branch) ); |
| 300 | content_deltify(rootid, brid, 0); |
| 301 | if( zNewRid ){ |
| 302 | *zNewRid = brid; |
| 303 |
+4
-4
| --- src/merge3.c | ||
| +++ src/merge3.c | ||
| @@ -376,21 +376,21 @@ | ||
| 376 | 376 | |
| 377 | 377 | if( g.argc!=6 ){ |
| 378 | 378 | usage("PIVOT V1 V2 MERGED"); |
| 379 | 379 | } |
| 380 | 380 | if( blob_read_from_file(&pivot, g.argv[2])<0 ){ |
| 381 | - fossil_fatal("cannot read %s\n", g.argv[2]); | |
| 381 | + fossil_fatal("cannot read %s", g.argv[2]); | |
| 382 | 382 | } |
| 383 | 383 | if( blob_read_from_file(&v1, g.argv[3])<0 ){ |
| 384 | - fossil_fatal("cannot read %s\n", g.argv[3]); | |
| 384 | + fossil_fatal("cannot read %s", g.argv[3]); | |
| 385 | 385 | } |
| 386 | 386 | if( blob_read_from_file(&v2, g.argv[4])<0 ){ |
| 387 | - fossil_fatal("cannot read %s\n", g.argv[4]); | |
| 387 | + fossil_fatal("cannot read %s", g.argv[4]); | |
| 388 | 388 | } |
| 389 | 389 | blob_merge(&pivot, &v1, &v2, &merged); |
| 390 | 390 | if( blob_write_to_file(&merged, g.argv[5])<blob_size(&merged) ){ |
| 391 | - fossil_fatal("cannot write %s\n", g.argv[4]); | |
| 391 | + fossil_fatal("cannot write %s", g.argv[4]); | |
| 392 | 392 | } |
| 393 | 393 | blob_reset(&pivot); |
| 394 | 394 | blob_reset(&v1); |
| 395 | 395 | blob_reset(&v2); |
| 396 | 396 | blob_reset(&merged); |
| 397 | 397 |
| --- src/merge3.c | |
| +++ src/merge3.c | |
| @@ -376,21 +376,21 @@ | |
| 376 | |
| 377 | if( g.argc!=6 ){ |
| 378 | usage("PIVOT V1 V2 MERGED"); |
| 379 | } |
| 380 | if( blob_read_from_file(&pivot, g.argv[2])<0 ){ |
| 381 | fossil_fatal("cannot read %s\n", g.argv[2]); |
| 382 | } |
| 383 | if( blob_read_from_file(&v1, g.argv[3])<0 ){ |
| 384 | fossil_fatal("cannot read %s\n", g.argv[3]); |
| 385 | } |
| 386 | if( blob_read_from_file(&v2, g.argv[4])<0 ){ |
| 387 | fossil_fatal("cannot read %s\n", g.argv[4]); |
| 388 | } |
| 389 | blob_merge(&pivot, &v1, &v2, &merged); |
| 390 | if( blob_write_to_file(&merged, g.argv[5])<blob_size(&merged) ){ |
| 391 | fossil_fatal("cannot write %s\n", g.argv[4]); |
| 392 | } |
| 393 | blob_reset(&pivot); |
| 394 | blob_reset(&v1); |
| 395 | blob_reset(&v2); |
| 396 | blob_reset(&merged); |
| 397 |
| --- src/merge3.c | |
| +++ src/merge3.c | |
| @@ -376,21 +376,21 @@ | |
| 376 | |
| 377 | if( g.argc!=6 ){ |
| 378 | usage("PIVOT V1 V2 MERGED"); |
| 379 | } |
| 380 | if( blob_read_from_file(&pivot, g.argv[2])<0 ){ |
| 381 | fossil_fatal("cannot read %s", g.argv[2]); |
| 382 | } |
| 383 | if( blob_read_from_file(&v1, g.argv[3])<0 ){ |
| 384 | fossil_fatal("cannot read %s", g.argv[3]); |
| 385 | } |
| 386 | if( blob_read_from_file(&v2, g.argv[4])<0 ){ |
| 387 | fossil_fatal("cannot read %s", g.argv[4]); |
| 388 | } |
| 389 | blob_merge(&pivot, &v1, &v2, &merged); |
| 390 | if( blob_write_to_file(&merged, g.argv[5])<blob_size(&merged) ){ |
| 391 | fossil_fatal("cannot write %s", g.argv[4]); |
| 392 | } |
| 393 | blob_reset(&pivot); |
| 394 | blob_reset(&v1); |
| 395 | blob_reset(&v2); |
| 396 | blob_reset(&merged); |
| 397 |
+1
-1
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -2593,11 +2593,11 @@ | ||
| 2593 | 2593 | }else if( fossil_stricmp(g.argv[2], "webhook")==0 ){ |
| 2594 | 2594 | rc = Th_WebpageHook(g.argv[3], (unsigned int)atoi(g.argv[4])); |
| 2595 | 2595 | }else if( fossil_stricmp(g.argv[2], "webnotify")==0 ){ |
| 2596 | 2596 | rc = Th_WebpageNotify(g.argv[3], (unsigned int)atoi(g.argv[4])); |
| 2597 | 2597 | }else{ |
| 2598 | - fossil_fatal("Unknown TH1 hook %s\n", g.argv[2]); | |
| 2598 | + fossil_fatal("Unknown TH1 hook %s", g.argv[2]); | |
| 2599 | 2599 | } |
| 2600 | 2600 | if( g.interp ){ |
| 2601 | 2601 | zResult = (char*)Th_GetResult(g.interp, &nResult); |
| 2602 | 2602 | } |
| 2603 | 2603 | sendText("RESULT (", -1, 0); |
| 2604 | 2604 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -2593,11 +2593,11 @@ | |
| 2593 | }else if( fossil_stricmp(g.argv[2], "webhook")==0 ){ |
| 2594 | rc = Th_WebpageHook(g.argv[3], (unsigned int)atoi(g.argv[4])); |
| 2595 | }else if( fossil_stricmp(g.argv[2], "webnotify")==0 ){ |
| 2596 | rc = Th_WebpageNotify(g.argv[3], (unsigned int)atoi(g.argv[4])); |
| 2597 | }else{ |
| 2598 | fossil_fatal("Unknown TH1 hook %s\n", g.argv[2]); |
| 2599 | } |
| 2600 | if( g.interp ){ |
| 2601 | zResult = (char*)Th_GetResult(g.interp, &nResult); |
| 2602 | } |
| 2603 | sendText("RESULT (", -1, 0); |
| 2604 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -2593,11 +2593,11 @@ | |
| 2593 | }else if( fossil_stricmp(g.argv[2], "webhook")==0 ){ |
| 2594 | rc = Th_WebpageHook(g.argv[3], (unsigned int)atoi(g.argv[4])); |
| 2595 | }else if( fossil_stricmp(g.argv[2], "webnotify")==0 ){ |
| 2596 | rc = Th_WebpageNotify(g.argv[3], (unsigned int)atoi(g.argv[4])); |
| 2597 | }else{ |
| 2598 | fossil_fatal("Unknown TH1 hook %s", g.argv[2]); |
| 2599 | } |
| 2600 | if( g.interp ){ |
| 2601 | zResult = (char*)Th_GetResult(g.interp, &nResult); |
| 2602 | } |
| 2603 | sendText("RESULT (", -1, 0); |
| 2604 |
+1
-1
| --- src/tkt.c | ||
| +++ src/tkt.c | ||
| @@ -1386,11 +1386,11 @@ | ||
| 1386 | 1386 | blob_appendf(&tktchng, "K %s\n", zTktUuid); |
| 1387 | 1387 | blob_appendf(&tktchng, "U %F\n", zUser); |
| 1388 | 1388 | md5sum_blob(&tktchng, &cksum); |
| 1389 | 1389 | blob_appendf(&tktchng, "Z %b\n", &cksum); |
| 1390 | 1390 | if( ticket_put(&tktchng, zTktUuid, ticket_need_moderation(1)) ){ |
| 1391 | - fossil_fatal("%s\n", g.zErrMsg); | |
| 1391 | + fossil_fatal("%s", g.zErrMsg); | |
| 1392 | 1392 | }else{ |
| 1393 | 1393 | fossil_print("ticket %s succeeded for %s\n", |
| 1394 | 1394 | (eCmd==set?"set":"add"),zTktUuid); |
| 1395 | 1395 | } |
| 1396 | 1396 | } |
| 1397 | 1397 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -1386,11 +1386,11 @@ | |
| 1386 | blob_appendf(&tktchng, "K %s\n", zTktUuid); |
| 1387 | blob_appendf(&tktchng, "U %F\n", zUser); |
| 1388 | md5sum_blob(&tktchng, &cksum); |
| 1389 | blob_appendf(&tktchng, "Z %b\n", &cksum); |
| 1390 | if( ticket_put(&tktchng, zTktUuid, ticket_need_moderation(1)) ){ |
| 1391 | fossil_fatal("%s\n", g.zErrMsg); |
| 1392 | }else{ |
| 1393 | fossil_print("ticket %s succeeded for %s\n", |
| 1394 | (eCmd==set?"set":"add"),zTktUuid); |
| 1395 | } |
| 1396 | } |
| 1397 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -1386,11 +1386,11 @@ | |
| 1386 | blob_appendf(&tktchng, "K %s\n", zTktUuid); |
| 1387 | blob_appendf(&tktchng, "U %F\n", zUser); |
| 1388 | md5sum_blob(&tktchng, &cksum); |
| 1389 | blob_appendf(&tktchng, "Z %b\n", &cksum); |
| 1390 | if( ticket_put(&tktchng, zTktUuid, ticket_need_moderation(1)) ){ |
| 1391 | fossil_fatal("%s", g.zErrMsg); |
| 1392 | }else{ |
| 1393 | fossil_print("ticket %s succeeded for %s\n", |
| 1394 | (eCmd==set?"set":"add"),zTktUuid); |
| 1395 | } |
| 1396 | } |
| 1397 |
+2
-2
| --- src/vfile.c | ||
| +++ src/vfile.c | ||
| @@ -350,11 +350,11 @@ | ||
| 350 | 350 | } |
| 351 | 351 | } |
| 352 | 352 | if( verbose ) fossil_print("%s\n", &zName[nRepos]); |
| 353 | 353 | if( file_wd_isdir(zName)==1 ){ |
| 354 | 354 | /*TODO(dchest): remove directories? */ |
| 355 | - fossil_fatal("%s is directory, cannot overwrite\n", zName); | |
| 355 | + fossil_fatal("%s is directory, cannot overwrite", zName); | |
| 356 | 356 | } |
| 357 | 357 | if( file_wd_size(zName)>=0 && (isLink || file_wd_islink(0)) ){ |
| 358 | 358 | file_delete(zName); |
| 359 | 359 | } |
| 360 | 360 | if( isLink ){ |
| @@ -918,11 +918,11 @@ | ||
| 918 | 918 | blob_zero(pManOut); |
| 919 | 919 | } |
| 920 | 920 | db_must_be_within_tree(); |
| 921 | 921 | pManifest = manifest_get(vid, CFTYPE_MANIFEST, &err); |
| 922 | 922 | if( pManifest==0 ){ |
| 923 | - fossil_fatal("manifest file (%d) is malformed:\n%s\n", | |
| 923 | + fossil_fatal("manifest file (%d) is malformed:\n%s", | |
| 924 | 924 | vid, blob_str(&err)); |
| 925 | 925 | } |
| 926 | 926 | manifest_file_rewind(pManifest); |
| 927 | 927 | while( (pFile = manifest_file_next(pManifest,0))!=0 ){ |
| 928 | 928 | if( pFile->zUuid==0 ) continue; |
| 929 | 929 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -350,11 +350,11 @@ | |
| 350 | } |
| 351 | } |
| 352 | if( verbose ) fossil_print("%s\n", &zName[nRepos]); |
| 353 | if( file_wd_isdir(zName)==1 ){ |
| 354 | /*TODO(dchest): remove directories? */ |
| 355 | fossil_fatal("%s is directory, cannot overwrite\n", zName); |
| 356 | } |
| 357 | if( file_wd_size(zName)>=0 && (isLink || file_wd_islink(0)) ){ |
| 358 | file_delete(zName); |
| 359 | } |
| 360 | if( isLink ){ |
| @@ -918,11 +918,11 @@ | |
| 918 | blob_zero(pManOut); |
| 919 | } |
| 920 | db_must_be_within_tree(); |
| 921 | pManifest = manifest_get(vid, CFTYPE_MANIFEST, &err); |
| 922 | if( pManifest==0 ){ |
| 923 | fossil_fatal("manifest file (%d) is malformed:\n%s\n", |
| 924 | vid, blob_str(&err)); |
| 925 | } |
| 926 | manifest_file_rewind(pManifest); |
| 927 | while( (pFile = manifest_file_next(pManifest,0))!=0 ){ |
| 928 | if( pFile->zUuid==0 ) continue; |
| 929 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -350,11 +350,11 @@ | |
| 350 | } |
| 351 | } |
| 352 | if( verbose ) fossil_print("%s\n", &zName[nRepos]); |
| 353 | if( file_wd_isdir(zName)==1 ){ |
| 354 | /*TODO(dchest): remove directories? */ |
| 355 | fossil_fatal("%s is directory, cannot overwrite", zName); |
| 356 | } |
| 357 | if( file_wd_size(zName)>=0 && (isLink || file_wd_islink(0)) ){ |
| 358 | file_delete(zName); |
| 359 | } |
| 360 | if( isLink ){ |
| @@ -918,11 +918,11 @@ | |
| 918 | blob_zero(pManOut); |
| 919 | } |
| 920 | db_must_be_within_tree(); |
| 921 | pManifest = manifest_get(vid, CFTYPE_MANIFEST, &err); |
| 922 | if( pManifest==0 ){ |
| 923 | fossil_fatal("manifest file (%d) is malformed:\n%s", |
| 924 | vid, blob_str(&err)); |
| 925 | } |
| 926 | manifest_file_rewind(pManifest); |
| 927 | while( (pFile = manifest_file_next(pManifest,0))!=0 ){ |
| 928 | if( pFile->zUuid==0 ) continue; |
| 929 |