Re: [fossil-users] Small issue with ticket hook script

2014-02-06 Thread Jan Nijtmans
2014-01-12 0:09 GMT+01:00 Mark Janssen mpc.jans...@gmail.com: On 11 Jan 2014 20:09, Jan Nijtmans jan.nijtm...@gmail.com wrote: Anyone interested in writing a TH1 encodeURIComponent() function? I guess more parts in fossil could benefit from that. Of course it would be easier if th1 had a

Re: [fossil-users] Small issue with ticket hook script

2014-01-11 Thread Jan Nijtmans
2014/1/9 Mark Janssen mpc.jans...@gmail.com: When I use the following script as a ticket hook: set project simpletask tclInvoke package require http query {SELECT title, status FROM ticket WHERE tkt_uuid=$uuid} { set title [tclInvoke http::formatQuery $title] http

Re: [fossil-users] Small issue with ticket hook script

2014-01-11 Thread Mark Janssen
On 11 Jan 2014 20:09, Jan Nijtmans jan.nijtm...@gmail.com wrote: 2014/1/9 Mark Janssen mpc.jans...@gmail.com: When I use the following script as a ticket hook: set project simpletask tclInvoke package require http query {SELECT title, status FROM ticket WHERE

Re: [fossil-users] Small issue with ticket hook script

2014-01-10 Thread Mark Janssen
On Thu, Jan 9, 2014 at 7:49 PM, Mark Janssen mpc.jans...@gmail.com wrote: On Thu, Jan 9, 2014 at 5:58 PM, Mark Janssen mpc.jans...@gmail.comwrote: On Thu, Jan 9, 2014 at 5:31 PM, Jan Nijtmans jan.nijtm...@gmail.comwrote: 2014/1/9 Jan Nijtmans jan.nijtm...@gmail.com: I have a

Re: [fossil-users] Small issue with ticket hook script

2014-01-10 Thread Jan Nijtmans
2014/1/10 Mark Janssen mpc.jans...@gmail.com: Sorry to keep replying to myself, but with latest version of delay-ticket-hook [e4af590ff9] it still doesn't work. The cause is that in tkt.c the result logic is off. Below change fixes it: Yes, that's it! I saw Joe's fixes, but I still wasn't sure

Re: [fossil-users] Small issue with ticket hook script

2014-01-10 Thread Mark Janssen
On Fri, Jan 10, 2014 at 11:46 AM, Jan Nijtmans jan.nijtm...@gmail.comwrote: 2014/1/10 Mark Janssen mpc.jans...@gmail.com: Sorry to keep replying to myself, but with latest version of delay-ticket-hook [e4af590ff9] it still doesn't work. The cause is that in tkt.c the result logic is off.

[fossil-users] Small issue with ticket hook script

2014-01-09 Thread Mark Janssen
When I use the following script as a ticket hook: set project simpletask tclInvoke package require http query {SELECT title, status FROM ticket WHERE tkt_uuid=$uuid} { set title [tclInvoke http::formatQuery $title] http -asynchronous --

Re: [fossil-users] Small issue with ticket hook script

2014-01-09 Thread Jan Nijtmans
2014/1/9 Mark Janssen mpc.jans...@gmail.com: The reflected information in the query is the info from before the ticket update. I suspect the ticket hook is fired before the actual ticket change transaction is commited. Would it be possible to reverse this so that the hook script will be

Re: [fossil-users] Small issue with ticket hook script

2014-01-09 Thread Mark Janssen
On Thu, Jan 9, 2014 at 2:20 PM, Jan Nijtmans jan.nijtm...@gmail.com wrote: 2014/1/9 Mark Janssen mpc.jans...@gmail.com: The reflected information in the query is the info from before the ticket update. I suspect the ticket hook is fired before the actual ticket change transaction is

Re: [fossil-users] Small issue with ticket hook script

2014-01-09 Thread Jan Nijtmans
2014/1/9 Mark Janssen mpc.jans...@gmail.com: I tested it with ticket changes from the web interface. That's indeed what I suspected. I have a different fix in mind, I'll come back on that later. Thanks! Jan Nijtmans ___ fossil-users mailing list

Re: [fossil-users] Small issue with ticket hook script

2014-01-09 Thread Jan Nijtmans
2014/1/9 Jan Nijtmans jan.nijtm...@gmail.com: I have a different fix in mind, I'll come back on that later. http://fossil-scm.org/index.html/timeline?r=delay-ticket-hook Does this work for you? Regards, Jan Nijtmans ___ fossil-users mailing

Re: [fossil-users] Small issue with ticket hook script

2014-01-09 Thread Mark Janssen
On Thu, Jan 9, 2014 at 5:31 PM, Jan Nijtmans jan.nijtm...@gmail.com wrote: 2014/1/9 Jan Nijtmans jan.nijtm...@gmail.com: I have a different fix in mind, I'll come back on that later. http://fossil-scm.org/index.html/timeline?r=delay-ticket-hook Does this work for you? Regards,

Re: [fossil-users] Small issue with ticket hook script

2014-01-09 Thread Ron Wilson
On Thu, Jan 9, 2014 at 8:05 AM, Mark Janssen mpc.jans...@gmail.com wrote: ... The reflected information in the query is the info from before the ticket update. I suspect the ticket hook is fired before the actual ticket change transaction is commited. Would it be possible to reverse this so

Re: [fossil-users] Small issue with ticket hook script

2014-01-09 Thread Mark Janssen
On Thu, Jan 9, 2014 at 5:58 PM, Mark Janssen mpc.jans...@gmail.com wrote: On Thu, Jan 9, 2014 at 5:31 PM, Jan Nijtmans jan.nijtm...@gmail.comwrote: 2014/1/9 Jan Nijtmans jan.nijtm...@gmail.com: I have a different fix in mind, I'll come back on that later.