Fossil SCM
merge trunk into creole
Commit
651c75c5b77a8fbeeb2c483dc9ec2741922592a4
Parent
cacb8db398981c5…
11 files changed
+1
-1
+1
-1
+1
-1
+2
-4
+2
-4
+2
-1
+2
-1
+2
-2
+2
-2
+11
-1
+11
-1
M
Makefile
+1
-1
| --- Makefile | ||
| +++ Makefile | ||
| @@ -24,11 +24,11 @@ | ||
| 24 | 24 | # the finished binary for fossil. The BCC compiler above is used |
| 25 | 25 | # for building intermediate code-generator tools. |
| 26 | 26 | # |
| 27 | 27 | #TCC = gcc -O6 |
| 28 | 28 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage |
| 29 | -TCC = gcc -Os | |
| 29 | +TCC = gcc -g -Os -Wall | |
| 30 | 30 | |
| 31 | 31 | #### Extra arguments for linking the finished binary. Fossil needs |
| 32 | 32 | # to link against the Z-Lib compression library. There are no |
| 33 | 33 | # other dependencies. We sometimes add the -static option here |
| 34 | 34 | # so that we can build a static executable that will run in a |
| 35 | 35 |
| --- Makefile | |
| +++ Makefile | |
| @@ -24,11 +24,11 @@ | |
| 24 | # the finished binary for fossil. The BCC compiler above is used |
| 25 | # for building intermediate code-generator tools. |
| 26 | # |
| 27 | #TCC = gcc -O6 |
| 28 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage |
| 29 | TCC = gcc -Os |
| 30 | |
| 31 | #### Extra arguments for linking the finished binary. Fossil needs |
| 32 | # to link against the Z-Lib compression library. There are no |
| 33 | # other dependencies. We sometimes add the -static option here |
| 34 | # so that we can build a static executable that will run in a |
| 35 |
| --- Makefile | |
| +++ Makefile | |
| @@ -24,11 +24,11 @@ | |
| 24 | # the finished binary for fossil. The BCC compiler above is used |
| 25 | # for building intermediate code-generator tools. |
| 26 | # |
| 27 | #TCC = gcc -O6 |
| 28 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage |
| 29 | TCC = gcc -g -Os -Wall |
| 30 | |
| 31 | #### Extra arguments for linking the finished binary. Fossil needs |
| 32 | # to link against the Z-Lib compression library. There are no |
| 33 | # other dependencies. We sometimes add the -static option here |
| 34 | # so that we can build a static executable that will run in a |
| 35 |
+1
-1
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -78,11 +78,11 @@ | ||
| 78 | 78 | db_record_repository_filename(g.argv[3]); |
| 79 | 79 | db_initial_setup(0, 0); |
| 80 | 80 | user_select(); |
| 81 | 81 | db_set("content-schema", CONTENT_SCHEMA, 0); |
| 82 | 82 | db_set("aux-schema", AUX_SCHEMA, 0); |
| 83 | - db_set("last-sync-url", g.urlCanonical, 0); | |
| 83 | + db_set("last-sync-url", g.argv[2], 0); | |
| 84 | 84 | db_multi_exec( |
| 85 | 85 | "REPLACE INTO config(name,value)" |
| 86 | 86 | " VALUES('server-code', lower(hex(randomblob(20))));" |
| 87 | 87 | ); |
| 88 | 88 | url_enable_proxy(0); |
| 89 | 89 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -78,11 +78,11 @@ | |
| 78 | db_record_repository_filename(g.argv[3]); |
| 79 | db_initial_setup(0, 0); |
| 80 | user_select(); |
| 81 | db_set("content-schema", CONTENT_SCHEMA, 0); |
| 82 | db_set("aux-schema", AUX_SCHEMA, 0); |
| 83 | db_set("last-sync-url", g.urlCanonical, 0); |
| 84 | db_multi_exec( |
| 85 | "REPLACE INTO config(name,value)" |
| 86 | " VALUES('server-code', lower(hex(randomblob(20))));" |
| 87 | ); |
| 88 | url_enable_proxy(0); |
| 89 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -78,11 +78,11 @@ | |
| 78 | db_record_repository_filename(g.argv[3]); |
| 79 | db_initial_setup(0, 0); |
| 80 | user_select(); |
| 81 | db_set("content-schema", CONTENT_SCHEMA, 0); |
| 82 | db_set("aux-schema", AUX_SCHEMA, 0); |
| 83 | db_set("last-sync-url", g.argv[2], 0); |
| 84 | db_multi_exec( |
| 85 | "REPLACE INTO config(name,value)" |
| 86 | " VALUES('server-code', lower(hex(randomblob(20))));" |
| 87 | ); |
| 88 | url_enable_proxy(0); |
| 89 |
+1
-1
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -78,11 +78,11 @@ | ||
| 78 | 78 | db_record_repository_filename(g.argv[3]); |
| 79 | 79 | db_initial_setup(0, 0); |
| 80 | 80 | user_select(); |
| 81 | 81 | db_set("content-schema", CONTENT_SCHEMA, 0); |
| 82 | 82 | db_set("aux-schema", AUX_SCHEMA, 0); |
| 83 | - db_set("last-sync-url", g.urlCanonical, 0); | |
| 83 | + db_set("last-sync-url", g.argv[2], 0); | |
| 84 | 84 | db_multi_exec( |
| 85 | 85 | "REPLACE INTO config(name,value)" |
| 86 | 86 | " VALUES('server-code', lower(hex(randomblob(20))));" |
| 87 | 87 | ); |
| 88 | 88 | url_enable_proxy(0); |
| 89 | 89 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -78,11 +78,11 @@ | |
| 78 | db_record_repository_filename(g.argv[3]); |
| 79 | db_initial_setup(0, 0); |
| 80 | user_select(); |
| 81 | db_set("content-schema", CONTENT_SCHEMA, 0); |
| 82 | db_set("aux-schema", AUX_SCHEMA, 0); |
| 83 | db_set("last-sync-url", g.urlCanonical, 0); |
| 84 | db_multi_exec( |
| 85 | "REPLACE INTO config(name,value)" |
| 86 | " VALUES('server-code', lower(hex(randomblob(20))));" |
| 87 | ); |
| 88 | url_enable_proxy(0); |
| 89 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -78,11 +78,11 @@ | |
| 78 | db_record_repository_filename(g.argv[3]); |
| 79 | db_initial_setup(0, 0); |
| 80 | user_select(); |
| 81 | db_set("content-schema", CONTENT_SCHEMA, 0); |
| 82 | db_set("aux-schema", AUX_SCHEMA, 0); |
| 83 | db_set("last-sync-url", g.argv[2], 0); |
| 84 | db_multi_exec( |
| 85 | "REPLACE INTO config(name,value)" |
| 86 | " VALUES('server-code', lower(hex(randomblob(20))));" |
| 87 | ); |
| 88 | url_enable_proxy(0); |
| 89 |
+2
-4
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -171,12 +171,11 @@ | ||
| 171 | 171 | } |
| 172 | 172 | if( zExternalCommand==0 ){ |
| 173 | 173 | internalDiff=1; |
| 174 | 174 | }else{ |
| 175 | 175 | blob_zero(&cmd); |
| 176 | - shell_escape(&cmd, zExternalCommand); | |
| 177 | - blob_append(&cmd, " ", 1); | |
| 176 | + blob_appendf(&cmd,"%s ",zExternalCommand); | |
| 178 | 177 | } |
| 179 | 178 | } |
| 180 | 179 | zFile = g.argv[g.argc-1]; |
| 181 | 180 | file_tree_name(zFile, &fname, 1); |
| 182 | 181 | |
| @@ -207,12 +206,11 @@ | ||
| 207 | 206 | blob_reset(¤t); |
| 208 | 207 | blob_reset(&out); |
| 209 | 208 | }else{ |
| 210 | 209 | blob_write_to_file(&record, blob_str(&vname)); |
| 211 | 210 | blob_reset(&record); |
| 212 | - shell_escape(&cmd, blob_str(&vname)); | |
| 213 | - blob_appendf(&cmd, " "); | |
| 211 | + blob_appendf(&cmd, "%s ", blob_str(&vname)); | |
| 214 | 212 | shell_escape(&cmd, zFile); |
| 215 | 213 | portable_system(blob_str(&cmd)); |
| 216 | 214 | unlink(blob_str(&vname)); |
| 217 | 215 | blob_reset(&vname); |
| 218 | 216 | blob_reset(&cmd); |
| 219 | 217 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -171,12 +171,11 @@ | |
| 171 | } |
| 172 | if( zExternalCommand==0 ){ |
| 173 | internalDiff=1; |
| 174 | }else{ |
| 175 | blob_zero(&cmd); |
| 176 | shell_escape(&cmd, zExternalCommand); |
| 177 | blob_append(&cmd, " ", 1); |
| 178 | } |
| 179 | } |
| 180 | zFile = g.argv[g.argc-1]; |
| 181 | file_tree_name(zFile, &fname, 1); |
| 182 | |
| @@ -207,12 +206,11 @@ | |
| 207 | blob_reset(¤t); |
| 208 | blob_reset(&out); |
| 209 | }else{ |
| 210 | blob_write_to_file(&record, blob_str(&vname)); |
| 211 | blob_reset(&record); |
| 212 | shell_escape(&cmd, blob_str(&vname)); |
| 213 | blob_appendf(&cmd, " "); |
| 214 | shell_escape(&cmd, zFile); |
| 215 | portable_system(blob_str(&cmd)); |
| 216 | unlink(blob_str(&vname)); |
| 217 | blob_reset(&vname); |
| 218 | blob_reset(&cmd); |
| 219 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -171,12 +171,11 @@ | |
| 171 | } |
| 172 | if( zExternalCommand==0 ){ |
| 173 | internalDiff=1; |
| 174 | }else{ |
| 175 | blob_zero(&cmd); |
| 176 | blob_appendf(&cmd,"%s ",zExternalCommand); |
| 177 | } |
| 178 | } |
| 179 | zFile = g.argv[g.argc-1]; |
| 180 | file_tree_name(zFile, &fname, 1); |
| 181 | |
| @@ -207,12 +206,11 @@ | |
| 206 | blob_reset(¤t); |
| 207 | blob_reset(&out); |
| 208 | }else{ |
| 209 | blob_write_to_file(&record, blob_str(&vname)); |
| 210 | blob_reset(&record); |
| 211 | blob_appendf(&cmd, "%s ", blob_str(&vname)); |
| 212 | shell_escape(&cmd, zFile); |
| 213 | portable_system(blob_str(&cmd)); |
| 214 | unlink(blob_str(&vname)); |
| 215 | blob_reset(&vname); |
| 216 | blob_reset(&cmd); |
| 217 |
+2
-4
| --- src/diffcmd.c | ||
| +++ src/diffcmd.c | ||
| @@ -171,12 +171,11 @@ | ||
| 171 | 171 | } |
| 172 | 172 | if( zExternalCommand==0 ){ |
| 173 | 173 | internalDiff=1; |
| 174 | 174 | }else{ |
| 175 | 175 | blob_zero(&cmd); |
| 176 | - shell_escape(&cmd, zExternalCommand); | |
| 177 | - blob_append(&cmd, " ", 1); | |
| 176 | + blob_appendf(&cmd,"%s ",zExternalCommand); | |
| 178 | 177 | } |
| 179 | 178 | } |
| 180 | 179 | zFile = g.argv[g.argc-1]; |
| 181 | 180 | file_tree_name(zFile, &fname, 1); |
| 182 | 181 | |
| @@ -207,12 +206,11 @@ | ||
| 207 | 206 | blob_reset(¤t); |
| 208 | 207 | blob_reset(&out); |
| 209 | 208 | }else{ |
| 210 | 209 | blob_write_to_file(&record, blob_str(&vname)); |
| 211 | 210 | blob_reset(&record); |
| 212 | - shell_escape(&cmd, blob_str(&vname)); | |
| 213 | - blob_appendf(&cmd, " "); | |
| 211 | + blob_appendf(&cmd, "%s ", blob_str(&vname)); | |
| 214 | 212 | shell_escape(&cmd, zFile); |
| 215 | 213 | portable_system(blob_str(&cmd)); |
| 216 | 214 | unlink(blob_str(&vname)); |
| 217 | 215 | blob_reset(&vname); |
| 218 | 216 | blob_reset(&cmd); |
| 219 | 217 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -171,12 +171,11 @@ | |
| 171 | } |
| 172 | if( zExternalCommand==0 ){ |
| 173 | internalDiff=1; |
| 174 | }else{ |
| 175 | blob_zero(&cmd); |
| 176 | shell_escape(&cmd, zExternalCommand); |
| 177 | blob_append(&cmd, " ", 1); |
| 178 | } |
| 179 | } |
| 180 | zFile = g.argv[g.argc-1]; |
| 181 | file_tree_name(zFile, &fname, 1); |
| 182 | |
| @@ -207,12 +206,11 @@ | |
| 207 | blob_reset(¤t); |
| 208 | blob_reset(&out); |
| 209 | }else{ |
| 210 | blob_write_to_file(&record, blob_str(&vname)); |
| 211 | blob_reset(&record); |
| 212 | shell_escape(&cmd, blob_str(&vname)); |
| 213 | blob_appendf(&cmd, " "); |
| 214 | shell_escape(&cmd, zFile); |
| 215 | portable_system(blob_str(&cmd)); |
| 216 | unlink(blob_str(&vname)); |
| 217 | blob_reset(&vname); |
| 218 | blob_reset(&cmd); |
| 219 |
| --- src/diffcmd.c | |
| +++ src/diffcmd.c | |
| @@ -171,12 +171,11 @@ | |
| 171 | } |
| 172 | if( zExternalCommand==0 ){ |
| 173 | internalDiff=1; |
| 174 | }else{ |
| 175 | blob_zero(&cmd); |
| 176 | blob_appendf(&cmd,"%s ",zExternalCommand); |
| 177 | } |
| 178 | } |
| 179 | zFile = g.argv[g.argc-1]; |
| 180 | file_tree_name(zFile, &fname, 1); |
| 181 | |
| @@ -207,12 +206,11 @@ | |
| 206 | blob_reset(¤t); |
| 207 | blob_reset(&out); |
| 208 | }else{ |
| 209 | blob_write_to_file(&record, blob_str(&vname)); |
| 210 | blob_reset(&record); |
| 211 | blob_appendf(&cmd, "%s ", blob_str(&vname)); |
| 212 | shell_escape(&cmd, zFile); |
| 213 | portable_system(blob_str(&cmd)); |
| 214 | unlink(blob_str(&vname)); |
| 215 | blob_reset(&vname); |
| 216 | blob_reset(&cmd); |
| 217 |
+2
-1
| --- src/sha1.c | ||
| +++ src/sha1.c | ||
| @@ -536,11 +536,12 @@ | ||
| 536 | 536 | return 0; |
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | |
| 540 | 540 | /* |
| 541 | -** COMMAND: test-sha1sum | |
| 541 | +** COMMAND: sha1sum | |
| 542 | +** %fossil sha1sum FILE... | |
| 542 | 543 | ** |
| 543 | 544 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 544 | 545 | ** If an file is named "-" then take its content from standard input. |
| 545 | 546 | */ |
| 546 | 547 | void sha1sum_test(void){ |
| 547 | 548 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -536,11 +536,12 @@ | |
| 536 | return 0; |
| 537 | } |
| 538 | |
| 539 | |
| 540 | /* |
| 541 | ** COMMAND: test-sha1sum |
| 542 | ** |
| 543 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 544 | ** If an file is named "-" then take its content from standard input. |
| 545 | */ |
| 546 | void sha1sum_test(void){ |
| 547 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -536,11 +536,12 @@ | |
| 536 | return 0; |
| 537 | } |
| 538 | |
| 539 | |
| 540 | /* |
| 541 | ** COMMAND: sha1sum |
| 542 | ** %fossil sha1sum FILE... |
| 543 | ** |
| 544 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 545 | ** If an file is named "-" then take its content from standard input. |
| 546 | */ |
| 547 | void sha1sum_test(void){ |
| 548 |
+2
-1
| --- src/sha1.c | ||
| +++ src/sha1.c | ||
| @@ -536,11 +536,12 @@ | ||
| 536 | 536 | return 0; |
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | |
| 540 | 540 | /* |
| 541 | -** COMMAND: test-sha1sum | |
| 541 | +** COMMAND: sha1sum | |
| 542 | +** %fossil sha1sum FILE... | |
| 542 | 543 | ** |
| 543 | 544 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 544 | 545 | ** If an file is named "-" then take its content from standard input. |
| 545 | 546 | */ |
| 546 | 547 | void sha1sum_test(void){ |
| 547 | 548 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -536,11 +536,12 @@ | |
| 536 | return 0; |
| 537 | } |
| 538 | |
| 539 | |
| 540 | /* |
| 541 | ** COMMAND: test-sha1sum |
| 542 | ** |
| 543 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 544 | ** If an file is named "-" then take its content from standard input. |
| 545 | */ |
| 546 | void sha1sum_test(void){ |
| 547 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -536,11 +536,12 @@ | |
| 536 | return 0; |
| 537 | } |
| 538 | |
| 539 | |
| 540 | /* |
| 541 | ** COMMAND: sha1sum |
| 542 | ** %fossil sha1sum FILE... |
| 543 | ** |
| 544 | ** Compute an SHA1 checksum of all files named on the command-line. |
| 545 | ** If an file is named "-" then take its content from standard input. |
| 546 | */ |
| 547 | void sha1sum_test(void){ |
| 548 |
+2
-2
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -191,11 +191,11 @@ | ||
| 191 | 191 | @ media="screen"> |
| 192 | 192 | @ </head> |
| 193 | 193 | @ <body> |
| 194 | 194 | @ <div class="header"> |
| 195 | 195 | @ <div class="logo"> |
| 196 | -@ <img src="/logo" alt="logo"> | |
| 196 | +@ <img src="$baseurl/logo" alt="logo"> | |
| 197 | 197 | @ <br><nobr>$<project_name></nobr> |
| 198 | 198 | @ </div> |
| 199 | 199 | @ <div class="title">$<title></div> |
| 200 | 200 | @ <div class="status"><nobr><th1> |
| 201 | 201 | @ if {[info exists login]} { |
| @@ -431,11 +431,11 @@ | ||
| 431 | 431 | @ border:1px solid green; |
| 432 | 432 | @ } |
| 433 | 433 | @ .creole-nomacro { |
| 434 | 434 | @ color:red; |
| 435 | 435 | @ border:1px solid red; |
| 436 | -@ } | |
| 436 | +@ } | |
| 437 | 437 | ; |
| 438 | 438 | |
| 439 | 439 | /* |
| 440 | 440 | ** WEBPAGE: style.css |
| 441 | 441 | */ |
| 442 | 442 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -191,11 +191,11 @@ | |
| 191 | @ media="screen"> |
| 192 | @ </head> |
| 193 | @ <body> |
| 194 | @ <div class="header"> |
| 195 | @ <div class="logo"> |
| 196 | @ <img src="/logo" alt="logo"> |
| 197 | @ <br><nobr>$<project_name></nobr> |
| 198 | @ </div> |
| 199 | @ <div class="title">$<title></div> |
| 200 | @ <div class="status"><nobr><th1> |
| 201 | @ if {[info exists login]} { |
| @@ -431,11 +431,11 @@ | |
| 431 | @ border:1px solid green; |
| 432 | @ } |
| 433 | @ .creole-nomacro { |
| 434 | @ color:red; |
| 435 | @ border:1px solid red; |
| 436 | @ } |
| 437 | ; |
| 438 | |
| 439 | /* |
| 440 | ** WEBPAGE: style.css |
| 441 | */ |
| 442 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -191,11 +191,11 @@ | |
| 191 | @ media="screen"> |
| 192 | @ </head> |
| 193 | @ <body> |
| 194 | @ <div class="header"> |
| 195 | @ <div class="logo"> |
| 196 | @ <img src="$baseurl/logo" alt="logo"> |
| 197 | @ <br><nobr>$<project_name></nobr> |
| 198 | @ </div> |
| 199 | @ <div class="title">$<title></div> |
| 200 | @ <div class="status"><nobr><th1> |
| 201 | @ if {[info exists login]} { |
| @@ -431,11 +431,11 @@ | |
| 431 | @ border:1px solid green; |
| 432 | @ } |
| 433 | @ .creole-nomacro { |
| 434 | @ color:red; |
| 435 | @ border:1px solid red; |
| 436 | @ } |
| 437 | ; |
| 438 | |
| 439 | /* |
| 440 | ** WEBPAGE: style.css |
| 441 | */ |
| 442 |
+2
-2
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -191,11 +191,11 @@ | ||
| 191 | 191 | @ media="screen"> |
| 192 | 192 | @ </head> |
| 193 | 193 | @ <body> |
| 194 | 194 | @ <div class="header"> |
| 195 | 195 | @ <div class="logo"> |
| 196 | -@ <img src="/logo" alt="logo"> | |
| 196 | +@ <img src="$baseurl/logo" alt="logo"> | |
| 197 | 197 | @ <br><nobr>$<project_name></nobr> |
| 198 | 198 | @ </div> |
| 199 | 199 | @ <div class="title">$<title></div> |
| 200 | 200 | @ <div class="status"><nobr><th1> |
| 201 | 201 | @ if {[info exists login]} { |
| @@ -431,11 +431,11 @@ | ||
| 431 | 431 | @ border:1px solid green; |
| 432 | 432 | @ } |
| 433 | 433 | @ .creole-nomacro { |
| 434 | 434 | @ color:red; |
| 435 | 435 | @ border:1px solid red; |
| 436 | -@ } | |
| 436 | +@ } | |
| 437 | 437 | ; |
| 438 | 438 | |
| 439 | 439 | /* |
| 440 | 440 | ** WEBPAGE: style.css |
| 441 | 441 | */ |
| 442 | 442 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -191,11 +191,11 @@ | |
| 191 | @ media="screen"> |
| 192 | @ </head> |
| 193 | @ <body> |
| 194 | @ <div class="header"> |
| 195 | @ <div class="logo"> |
| 196 | @ <img src="/logo" alt="logo"> |
| 197 | @ <br><nobr>$<project_name></nobr> |
| 198 | @ </div> |
| 199 | @ <div class="title">$<title></div> |
| 200 | @ <div class="status"><nobr><th1> |
| 201 | @ if {[info exists login]} { |
| @@ -431,11 +431,11 @@ | |
| 431 | @ border:1px solid green; |
| 432 | @ } |
| 433 | @ .creole-nomacro { |
| 434 | @ color:red; |
| 435 | @ border:1px solid red; |
| 436 | @ } |
| 437 | ; |
| 438 | |
| 439 | /* |
| 440 | ** WEBPAGE: style.css |
| 441 | */ |
| 442 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -191,11 +191,11 @@ | |
| 191 | @ media="screen"> |
| 192 | @ </head> |
| 193 | @ <body> |
| 194 | @ <div class="header"> |
| 195 | @ <div class="logo"> |
| 196 | @ <img src="$baseurl/logo" alt="logo"> |
| 197 | @ <br><nobr>$<project_name></nobr> |
| 198 | @ </div> |
| 199 | @ <div class="title">$<title></div> |
| 200 | @ <div class="status"><nobr><th1> |
| 201 | @ if {[info exists login]} { |
| @@ -431,11 +431,11 @@ | |
| 431 | @ border:1px solid green; |
| 432 | @ } |
| 433 | @ .creole-nomacro { |
| 434 | @ color:red; |
| 435 | @ border:1px solid red; |
| 436 | @ } |
| 437 | ; |
| 438 | |
| 439 | /* |
| 440 | ** WEBPAGE: style.css |
| 441 | */ |
| 442 |
+11
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -658,13 +658,21 @@ | ||
| 658 | 658 | if( xfer.nToken==3 |
| 659 | 659 | && (blob_eq(&xfer.aToken[0], "pull") || blob_eq(&xfer.aToken[0], "push")) |
| 660 | 660 | && blob_is_uuid(&xfer.aToken[1]) |
| 661 | 661 | && blob_is_uuid(&xfer.aToken[2]) |
| 662 | 662 | ){ |
| 663 | - const char *zSCode; | |
| 664 | 663 | const char *zPCode; |
| 665 | 664 | |
| 665 | +#if 0 | |
| 666 | + /* This block checks to see if a server is trying to sync with itself. | |
| 667 | + ** This used to be disallowed, but I cannot think of any significant | |
| 668 | + ** harm, so I have disabled the check. | |
| 669 | + ** | |
| 670 | + ** With this check disabled, it is sufficient to copy the repository | |
| 671 | + ** database. No need to run clone. | |
| 672 | + */ | |
| 673 | + const char *zSCode; | |
| 666 | 674 | zSCode = db_get("server-code", 0); |
| 667 | 675 | if( zSCode==0 ){ |
| 668 | 676 | fossil_panic("missing server code"); |
| 669 | 677 | } |
| 670 | 678 | if( blob_eq_str(&xfer.aToken[1], zSCode, -1) ){ |
| @@ -671,10 +679,12 @@ | ||
| 671 | 679 | cgi_reset_content(); |
| 672 | 680 | @ error server\sloop |
| 673 | 681 | nErr++; |
| 674 | 682 | break; |
| 675 | 683 | } |
| 684 | +#endif | |
| 685 | + | |
| 676 | 686 | zPCode = db_get("project-code", 0); |
| 677 | 687 | if( zPCode==0 ){ |
| 678 | 688 | fossil_panic("missing project code"); |
| 679 | 689 | } |
| 680 | 690 | if( !blob_eq_str(&xfer.aToken[2], zPCode, -1) ){ |
| 681 | 691 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -658,13 +658,21 @@ | |
| 658 | if( xfer.nToken==3 |
| 659 | && (blob_eq(&xfer.aToken[0], "pull") || blob_eq(&xfer.aToken[0], "push")) |
| 660 | && blob_is_uuid(&xfer.aToken[1]) |
| 661 | && blob_is_uuid(&xfer.aToken[2]) |
| 662 | ){ |
| 663 | const char *zSCode; |
| 664 | const char *zPCode; |
| 665 | |
| 666 | zSCode = db_get("server-code", 0); |
| 667 | if( zSCode==0 ){ |
| 668 | fossil_panic("missing server code"); |
| 669 | } |
| 670 | if( blob_eq_str(&xfer.aToken[1], zSCode, -1) ){ |
| @@ -671,10 +679,12 @@ | |
| 671 | cgi_reset_content(); |
| 672 | @ error server\sloop |
| 673 | nErr++; |
| 674 | break; |
| 675 | } |
| 676 | zPCode = db_get("project-code", 0); |
| 677 | if( zPCode==0 ){ |
| 678 | fossil_panic("missing project code"); |
| 679 | } |
| 680 | if( !blob_eq_str(&xfer.aToken[2], zPCode, -1) ){ |
| 681 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -658,13 +658,21 @@ | |
| 658 | if( xfer.nToken==3 |
| 659 | && (blob_eq(&xfer.aToken[0], "pull") || blob_eq(&xfer.aToken[0], "push")) |
| 660 | && blob_is_uuid(&xfer.aToken[1]) |
| 661 | && blob_is_uuid(&xfer.aToken[2]) |
| 662 | ){ |
| 663 | const char *zPCode; |
| 664 | |
| 665 | #if 0 |
| 666 | /* This block checks to see if a server is trying to sync with itself. |
| 667 | ** This used to be disallowed, but I cannot think of any significant |
| 668 | ** harm, so I have disabled the check. |
| 669 | ** |
| 670 | ** With this check disabled, it is sufficient to copy the repository |
| 671 | ** database. No need to run clone. |
| 672 | */ |
| 673 | const char *zSCode; |
| 674 | zSCode = db_get("server-code", 0); |
| 675 | if( zSCode==0 ){ |
| 676 | fossil_panic("missing server code"); |
| 677 | } |
| 678 | if( blob_eq_str(&xfer.aToken[1], zSCode, -1) ){ |
| @@ -671,10 +679,12 @@ | |
| 679 | cgi_reset_content(); |
| 680 | @ error server\sloop |
| 681 | nErr++; |
| 682 | break; |
| 683 | } |
| 684 | #endif |
| 685 | |
| 686 | zPCode = db_get("project-code", 0); |
| 687 | if( zPCode==0 ){ |
| 688 | fossil_panic("missing project code"); |
| 689 | } |
| 690 | if( !blob_eq_str(&xfer.aToken[2], zPCode, -1) ){ |
| 691 |
+11
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -658,13 +658,21 @@ | ||
| 658 | 658 | if( xfer.nToken==3 |
| 659 | 659 | && (blob_eq(&xfer.aToken[0], "pull") || blob_eq(&xfer.aToken[0], "push")) |
| 660 | 660 | && blob_is_uuid(&xfer.aToken[1]) |
| 661 | 661 | && blob_is_uuid(&xfer.aToken[2]) |
| 662 | 662 | ){ |
| 663 | - const char *zSCode; | |
| 664 | 663 | const char *zPCode; |
| 665 | 664 | |
| 665 | +#if 0 | |
| 666 | + /* This block checks to see if a server is trying to sync with itself. | |
| 667 | + ** This used to be disallowed, but I cannot think of any significant | |
| 668 | + ** harm, so I have disabled the check. | |
| 669 | + ** | |
| 670 | + ** With this check disabled, it is sufficient to copy the repository | |
| 671 | + ** database. No need to run clone. | |
| 672 | + */ | |
| 673 | + const char *zSCode; | |
| 666 | 674 | zSCode = db_get("server-code", 0); |
| 667 | 675 | if( zSCode==0 ){ |
| 668 | 676 | fossil_panic("missing server code"); |
| 669 | 677 | } |
| 670 | 678 | if( blob_eq_str(&xfer.aToken[1], zSCode, -1) ){ |
| @@ -671,10 +679,12 @@ | ||
| 671 | 679 | cgi_reset_content(); |
| 672 | 680 | @ error server\sloop |
| 673 | 681 | nErr++; |
| 674 | 682 | break; |
| 675 | 683 | } |
| 684 | +#endif | |
| 685 | + | |
| 676 | 686 | zPCode = db_get("project-code", 0); |
| 677 | 687 | if( zPCode==0 ){ |
| 678 | 688 | fossil_panic("missing project code"); |
| 679 | 689 | } |
| 680 | 690 | if( !blob_eq_str(&xfer.aToken[2], zPCode, -1) ){ |
| 681 | 691 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -658,13 +658,21 @@ | |
| 658 | if( xfer.nToken==3 |
| 659 | && (blob_eq(&xfer.aToken[0], "pull") || blob_eq(&xfer.aToken[0], "push")) |
| 660 | && blob_is_uuid(&xfer.aToken[1]) |
| 661 | && blob_is_uuid(&xfer.aToken[2]) |
| 662 | ){ |
| 663 | const char *zSCode; |
| 664 | const char *zPCode; |
| 665 | |
| 666 | zSCode = db_get("server-code", 0); |
| 667 | if( zSCode==0 ){ |
| 668 | fossil_panic("missing server code"); |
| 669 | } |
| 670 | if( blob_eq_str(&xfer.aToken[1], zSCode, -1) ){ |
| @@ -671,10 +679,12 @@ | |
| 671 | cgi_reset_content(); |
| 672 | @ error server\sloop |
| 673 | nErr++; |
| 674 | break; |
| 675 | } |
| 676 | zPCode = db_get("project-code", 0); |
| 677 | if( zPCode==0 ){ |
| 678 | fossil_panic("missing project code"); |
| 679 | } |
| 680 | if( !blob_eq_str(&xfer.aToken[2], zPCode, -1) ){ |
| 681 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -658,13 +658,21 @@ | |
| 658 | if( xfer.nToken==3 |
| 659 | && (blob_eq(&xfer.aToken[0], "pull") || blob_eq(&xfer.aToken[0], "push")) |
| 660 | && blob_is_uuid(&xfer.aToken[1]) |
| 661 | && blob_is_uuid(&xfer.aToken[2]) |
| 662 | ){ |
| 663 | const char *zPCode; |
| 664 | |
| 665 | #if 0 |
| 666 | /* This block checks to see if a server is trying to sync with itself. |
| 667 | ** This used to be disallowed, but I cannot think of any significant |
| 668 | ** harm, so I have disabled the check. |
| 669 | ** |
| 670 | ** With this check disabled, it is sufficient to copy the repository |
| 671 | ** database. No need to run clone. |
| 672 | */ |
| 673 | const char *zSCode; |
| 674 | zSCode = db_get("server-code", 0); |
| 675 | if( zSCode==0 ){ |
| 676 | fossil_panic("missing server code"); |
| 677 | } |
| 678 | if( blob_eq_str(&xfer.aToken[1], zSCode, -1) ){ |
| @@ -671,10 +679,12 @@ | |
| 679 | cgi_reset_content(); |
| 680 | @ error server\sloop |
| 681 | nErr++; |
| 682 | break; |
| 683 | } |
| 684 | #endif |
| 685 | |
| 686 | zPCode = db_get("project-code", 0); |
| 687 | if( zPCode==0 ){ |
| 688 | fossil_panic("missing project code"); |
| 689 | } |
| 690 | if( !blob_eq_str(&xfer.aToken[2], zPCode, -1) ){ |
| 691 |