Fossil SCM
Fixed 2 swapped error messages. Added /json/wiki/diff button to demo page.
Commit
1578ba34410b13ef595766e8d8b43561875eaa9e
Parent
c6c38a522faf1cc…
2 files changed
+4
+4
-4
+4
| --- ajax/index.html | ||
| +++ ajax/index.html | ||
| @@ -233,14 +233,18 @@ | ||
| 233 | 233 | <input type='button' value='branch/list' onclick='TheApp.cgi.sendCommand("/json/branch/list")' /> |
| 234 | 234 | <input type='button' value='timeline/ci' onclick='TheApp.cgi.sendCommand("/json/timeline/ci?files=true")' /> |
| 235 | 235 | <input type='button' value='timeline/wiki' onclick='TheApp.cgi.sendCommand("/json/timeline/wiki")' /> |
| 236 | 236 | <input type='button' value='timeline/ticket' onclick='TheApp.cgi.sendCommand("/json/timeline/ticket")' /> |
| 237 | 237 | <input type='button' value='timeline/branch' onclick='TheApp.cgi.sendCommand("/json/timeline/branch")' /> |
| 238 | + | |
| 239 | +<br/> | |
| 240 | + | |
| 238 | 241 | <input type='button' value='wiki/list' onclick='TheApp.cgi.sendCommand("/json/wiki/list")' /> |
| 239 | 242 | <input type='button' value='wiki/list verbose' onclick='TheApp.cgi.sendCommand("/json/wiki/list",{verbose:1})' /> |
| 240 | 243 | <input type='button' value='wiki/get Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get",{name:"Fossil"})' /> |
| 241 | 244 | <input type='button' value='wiki/get/Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get/Fossil")' /> |
| 245 | +<input type='button' value='wiki/diff' onclick='TheApp.cgi.sendCommand("/json/wiki/diff/e32ccdcda59e930c77c/e15992f475760cdf3a9")' /> | |
| 242 | 246 | |
| 243 | 247 | <br/> |
| 244 | 248 | |
| 245 | 249 | <input type='button' value='user/list' onclick='TheApp.cgi.sendCommand("/json/user/list")' /> |
| 246 | 250 | <input type='button' value='user/get' onclick='TheApp.cgi.sendCommand("/json/user/get?name=anonymous")' /> |
| 247 | 251 |
| --- ajax/index.html | |
| +++ ajax/index.html | |
| @@ -233,14 +233,18 @@ | |
| 233 | <input type='button' value='branch/list' onclick='TheApp.cgi.sendCommand("/json/branch/list")' /> |
| 234 | <input type='button' value='timeline/ci' onclick='TheApp.cgi.sendCommand("/json/timeline/ci?files=true")' /> |
| 235 | <input type='button' value='timeline/wiki' onclick='TheApp.cgi.sendCommand("/json/timeline/wiki")' /> |
| 236 | <input type='button' value='timeline/ticket' onclick='TheApp.cgi.sendCommand("/json/timeline/ticket")' /> |
| 237 | <input type='button' value='timeline/branch' onclick='TheApp.cgi.sendCommand("/json/timeline/branch")' /> |
| 238 | <input type='button' value='wiki/list' onclick='TheApp.cgi.sendCommand("/json/wiki/list")' /> |
| 239 | <input type='button' value='wiki/list verbose' onclick='TheApp.cgi.sendCommand("/json/wiki/list",{verbose:1})' /> |
| 240 | <input type='button' value='wiki/get Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get",{name:"Fossil"})' /> |
| 241 | <input type='button' value='wiki/get/Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get/Fossil")' /> |
| 242 | |
| 243 | <br/> |
| 244 | |
| 245 | <input type='button' value='user/list' onclick='TheApp.cgi.sendCommand("/json/user/list")' /> |
| 246 | <input type='button' value='user/get' onclick='TheApp.cgi.sendCommand("/json/user/get?name=anonymous")' /> |
| 247 |
| --- ajax/index.html | |
| +++ ajax/index.html | |
| @@ -233,14 +233,18 @@ | |
| 233 | <input type='button' value='branch/list' onclick='TheApp.cgi.sendCommand("/json/branch/list")' /> |
| 234 | <input type='button' value='timeline/ci' onclick='TheApp.cgi.sendCommand("/json/timeline/ci?files=true")' /> |
| 235 | <input type='button' value='timeline/wiki' onclick='TheApp.cgi.sendCommand("/json/timeline/wiki")' /> |
| 236 | <input type='button' value='timeline/ticket' onclick='TheApp.cgi.sendCommand("/json/timeline/ticket")' /> |
| 237 | <input type='button' value='timeline/branch' onclick='TheApp.cgi.sendCommand("/json/timeline/branch")' /> |
| 238 | |
| 239 | <br/> |
| 240 | |
| 241 | <input type='button' value='wiki/list' onclick='TheApp.cgi.sendCommand("/json/wiki/list")' /> |
| 242 | <input type='button' value='wiki/list verbose' onclick='TheApp.cgi.sendCommand("/json/wiki/list",{verbose:1})' /> |
| 243 | <input type='button' value='wiki/get Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get",{name:"Fossil"})' /> |
| 244 | <input type='button' value='wiki/get/Fossil' onclick='TheApp.cgi.sendCommand("/json/wiki/get/Fossil")' /> |
| 245 | <input type='button' value='wiki/diff' onclick='TheApp.cgi.sendCommand("/json/wiki/diff/e32ccdcda59e930c77c/e15992f475760cdf3a9")' /> |
| 246 | |
| 247 | <br/> |
| 248 | |
| 249 | <input type='button' value='user/list' onclick='TheApp.cgi.sendCommand("/json/user/list")' /> |
| 250 | <input type='button' value='user/get' onclick='TheApp.cgi.sendCommand("/json/user/get?name=anonymous")' /> |
| 251 |
+4
-4
| --- src/json_wiki.c | ||
| +++ src/json_wiki.c | ||
| @@ -458,21 +458,21 @@ | ||
| 458 | 458 | } |
| 459 | 459 | |
| 460 | 460 | r1 = symbolic_name_to_rid( zV1, "w" ); |
| 461 | 461 | zErrTag = zV1; |
| 462 | 462 | if(r1<0){ |
| 463 | - goto invalid; | |
| 463 | + goto ambiguous; | |
| 464 | 464 | }else if(0==r1){ |
| 465 | - goto ambiguous; | |
| 465 | + goto invalid; | |
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | r2 = symbolic_name_to_rid( zV2, "w" ); |
| 469 | 469 | zErrTag = zV2; |
| 470 | 470 | if(r2<0){ |
| 471 | - goto invalid; | |
| 471 | + goto ambiguous; | |
| 472 | 472 | }else if(0==r2){ |
| 473 | - goto ambiguous; | |
| 473 | + goto invalid; | |
| 474 | 474 | } |
| 475 | 475 | |
| 476 | 476 | zErrTag = zV1; |
| 477 | 477 | pW1 = manifest_get(r1, CFTYPE_WIKI); |
| 478 | 478 | if( pW1==0 ) { |
| 479 | 479 |
| --- src/json_wiki.c | |
| +++ src/json_wiki.c | |
| @@ -458,21 +458,21 @@ | |
| 458 | } |
| 459 | |
| 460 | r1 = symbolic_name_to_rid( zV1, "w" ); |
| 461 | zErrTag = zV1; |
| 462 | if(r1<0){ |
| 463 | goto invalid; |
| 464 | }else if(0==r1){ |
| 465 | goto ambiguous; |
| 466 | } |
| 467 | |
| 468 | r2 = symbolic_name_to_rid( zV2, "w" ); |
| 469 | zErrTag = zV2; |
| 470 | if(r2<0){ |
| 471 | goto invalid; |
| 472 | }else if(0==r2){ |
| 473 | goto ambiguous; |
| 474 | } |
| 475 | |
| 476 | zErrTag = zV1; |
| 477 | pW1 = manifest_get(r1, CFTYPE_WIKI); |
| 478 | if( pW1==0 ) { |
| 479 |
| --- src/json_wiki.c | |
| +++ src/json_wiki.c | |
| @@ -458,21 +458,21 @@ | |
| 458 | } |
| 459 | |
| 460 | r1 = symbolic_name_to_rid( zV1, "w" ); |
| 461 | zErrTag = zV1; |
| 462 | if(r1<0){ |
| 463 | goto ambiguous; |
| 464 | }else if(0==r1){ |
| 465 | goto invalid; |
| 466 | } |
| 467 | |
| 468 | r2 = symbolic_name_to_rid( zV2, "w" ); |
| 469 | zErrTag = zV2; |
| 470 | if(r2<0){ |
| 471 | goto ambiguous; |
| 472 | }else if(0==r2){ |
| 473 | goto invalid; |
| 474 | } |
| 475 | |
| 476 | zErrTag = zV1; |
| 477 | pW1 = manifest_get(r1, CFTYPE_WIKI); |
| 478 | if( pW1==0 ) { |
| 479 |