On Oct 9, 2012, at 16:36 , Joe Mistachkin wrote:

> Remigiusz Modrzejewski wrote:
>> 
>> So, is it finally possible to script pre-/post- commit hooks?
>> 
> 
> More or less:
> 
>       
> http://www.fossil-scm.org/index.html/artifact?ci=trunk&filename=src/xfer.c&l
> n=1201-1205
> 
> The key is that these are actually post-transfer scripts.  It is up to the
> called script to determine how many commits, if any, have been done since
> it was last called.  I have a working proof-of-concept Tcl script on a
> private repository that does this and sends mail via SMTP if a commit is
> detected.  The real expressive power here comes from having Tcl enabled at
> compile-time (and via the runtime setting) and being able to seamlessly
> invoke it from TH1.

That's nice. I guess I'll try to use it in the following months (for continuous 
 integration). But it's still impossible to obtain policing with that. Like, 
refusing to receive a push if some commit was not properly signed. This would 
be a pretty useful thing that's long time possible in  the competing products. 
Thankfully I will not need that for a long time and hope Fossil gets it before 
that.

Kind regards,
Remigiusz Modrzejewski
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to