Fossil SCM
Bug-fix in ticket handling when tracing is on. (discovered in tkt-change-hook branch)
Commit
9e940f2e1e67738b0dffe26ef1ed0cdc63980867
Parent
93c258250b4ccf6…
1 file changed
+5
-4
+5
-4
| --- src/tkt.c | ||
| +++ src/tkt.c | ||
| @@ -621,15 +621,16 @@ | ||
| 621 | 621 | @ <font color="blue"> |
| 622 | 622 | @ <p>Ticket artifact that would have been submitted:</p> |
| 623 | 623 | @ <blockquote><pre>%h(blob_str(&tktchng))</pre></blockquote> |
| 624 | 624 | @ <hr /></font> |
| 625 | 625 | return TH_OK; |
| 626 | - }else if( g.thTrace ){ | |
| 627 | - Th_Trace("submit_ticket {\n<blockquote><pre>\n%h\n</pre></blockquote>\n" | |
| 628 | - "}<br />\n", | |
| 629 | - blob_str(&tktchng)); | |
| 630 | 626 | }else{ |
| 627 | + if( g.thTrace ){ | |
| 628 | + Th_Trace("submit_ticket {\n<blockquote><pre>\n%h\n</pre></blockquote>\n" | |
| 629 | + "}<br />\n", | |
| 630 | + blob_str(&tktchng)); | |
| 631 | + } | |
| 631 | 632 | ticket_put(&tktchng, zUuid, |
| 632 | 633 | (g.perm.ModTkt==0 && db_get_boolean("modreq-tkt",0)==1)); |
| 633 | 634 | } |
| 634 | 635 | return ticket_change(); |
| 635 | 636 | } |
| 636 | 637 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -621,15 +621,16 @@ | |
| 621 | @ <font color="blue"> |
| 622 | @ <p>Ticket artifact that would have been submitted:</p> |
| 623 | @ <blockquote><pre>%h(blob_str(&tktchng))</pre></blockquote> |
| 624 | @ <hr /></font> |
| 625 | return TH_OK; |
| 626 | }else if( g.thTrace ){ |
| 627 | Th_Trace("submit_ticket {\n<blockquote><pre>\n%h\n</pre></blockquote>\n" |
| 628 | "}<br />\n", |
| 629 | blob_str(&tktchng)); |
| 630 | }else{ |
| 631 | ticket_put(&tktchng, zUuid, |
| 632 | (g.perm.ModTkt==0 && db_get_boolean("modreq-tkt",0)==1)); |
| 633 | } |
| 634 | return ticket_change(); |
| 635 | } |
| 636 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -621,15 +621,16 @@ | |
| 621 | @ <font color="blue"> |
| 622 | @ <p>Ticket artifact that would have been submitted:</p> |
| 623 | @ <blockquote><pre>%h(blob_str(&tktchng))</pre></blockquote> |
| 624 | @ <hr /></font> |
| 625 | return TH_OK; |
| 626 | }else{ |
| 627 | if( g.thTrace ){ |
| 628 | Th_Trace("submit_ticket {\n<blockquote><pre>\n%h\n</pre></blockquote>\n" |
| 629 | "}<br />\n", |
| 630 | blob_str(&tktchng)); |
| 631 | } |
| 632 | ticket_put(&tktchng, zUuid, |
| 633 | (g.perm.ModTkt==0 && db_get_boolean("modreq-tkt",0)==1)); |
| 634 | } |
| 635 | return ticket_change(); |
| 636 | } |
| 637 |