Fossil SCM

Bug-fix in ticket handling when tracing is on. (discovered in tkt-change-hook branch)

jan.nijtmans 2013-10-15 06:48 trunk
Commit 9e940f2e1e67738b0dffe26ef1ed0cdc63980867
1 file changed +5 -4
+5 -4
--- src/tkt.c
+++ src/tkt.c
@@ -621,15 +621,16 @@
621621
@ <font color="blue">
622622
@ <p>Ticket artifact that would have been submitted:</p>
623623
@ <blockquote><pre>%h(blob_str(&tktchng))</pre></blockquote>
624624
@ <hr /></font>
625625
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));
630626
}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
+ }
631632
ticket_put(&tktchng, zUuid,
632633
(g.perm.ModTkt==0 && db_get_boolean("modreq-tkt",0)==1));
633634
}
634635
return ticket_change();
635636
}
636637
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button