Fossil SCM
Fix the /debug_tktnew and /debug_tktedit methods so that the do not really create a new ticket artifact. Ticket [474b0bd4f991dd60d7d9bb].
Commit
06c5b3eb6d2c8287482139484ec487e053267680
Parent
f2025072b4bf72b…
1 file changed
+8
-1
+8
-1
| --- src/tkt.c | ||
| +++ src/tkt.c | ||
| @@ -469,11 +469,18 @@ | ||
| 469 | 469 | *(const char**)pUuid = zUuid; |
| 470 | 470 | blob_appendf(&tktchng, "K %s\n", zUuid); |
| 471 | 471 | blob_appendf(&tktchng, "U %F\n", g.zLogin ? g.zLogin : ""); |
| 472 | 472 | md5sum_blob(&tktchng, &cksum); |
| 473 | 473 | blob_appendf(&tktchng, "Z %b\n", &cksum); |
| 474 | - if( g.thTrace ){ | |
| 474 | + if( g.zPath[0]=='d' ){ | |
| 475 | + /* If called from /debug_tktnew or /debug_tktedit... */ | |
| 476 | + @ <font color="blue"> | |
| 477 | + @ <p>Ticket artifact that would have been submitted:</p> | |
| 478 | + @ <blockquote><pre>%h(blob_str(&tktchng))</pre></blockquote> | |
| 479 | + @ <hr /></font> | |
| 480 | + return TH_OK; | |
| 481 | + }else if( g.thTrace ){ | |
| 475 | 482 | Th_Trace("submit_ticket {\n<blockquote><pre>\n%h\n</pre></blockquote>\n" |
| 476 | 483 | "}<br />\n", |
| 477 | 484 | blob_str(&tktchng)); |
| 478 | 485 | }else{ |
| 479 | 486 | rid = content_put(&tktchng, 0, 0); |
| 480 | 487 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -469,11 +469,18 @@ | |
| 469 | *(const char**)pUuid = zUuid; |
| 470 | blob_appendf(&tktchng, "K %s\n", zUuid); |
| 471 | blob_appendf(&tktchng, "U %F\n", g.zLogin ? g.zLogin : ""); |
| 472 | md5sum_blob(&tktchng, &cksum); |
| 473 | blob_appendf(&tktchng, "Z %b\n", &cksum); |
| 474 | if( g.thTrace ){ |
| 475 | Th_Trace("submit_ticket {\n<blockquote><pre>\n%h\n</pre></blockquote>\n" |
| 476 | "}<br />\n", |
| 477 | blob_str(&tktchng)); |
| 478 | }else{ |
| 479 | rid = content_put(&tktchng, 0, 0); |
| 480 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -469,11 +469,18 @@ | |
| 469 | *(const char**)pUuid = zUuid; |
| 470 | blob_appendf(&tktchng, "K %s\n", zUuid); |
| 471 | blob_appendf(&tktchng, "U %F\n", g.zLogin ? g.zLogin : ""); |
| 472 | md5sum_blob(&tktchng, &cksum); |
| 473 | blob_appendf(&tktchng, "Z %b\n", &cksum); |
| 474 | if( g.zPath[0]=='d' ){ |
| 475 | /* If called from /debug_tktnew or /debug_tktedit... */ |
| 476 | @ <font color="blue"> |
| 477 | @ <p>Ticket artifact that would have been submitted:</p> |
| 478 | @ <blockquote><pre>%h(blob_str(&tktchng))</pre></blockquote> |
| 479 | @ <hr /></font> |
| 480 | return TH_OK; |
| 481 | }else if( g.thTrace ){ |
| 482 | Th_Trace("submit_ticket {\n<blockquote><pre>\n%h\n</pre></blockquote>\n" |
| 483 | "}<br />\n", |
| 484 | blob_str(&tktchng)); |
| 485 | }else{ |
| 486 | rid = content_put(&tktchng, 0, 0); |
| 487 |