Here the current code (missing the capture of the stdout). I send it as a
patch to the current trunk version (0d1d7f6481).


Ideas?

On Sat, Jan 31, 2015 at 9:56 AM, Stephan Beal <sgb...@googlemail.com> wrote:

> On Sat, Jan 31, 2015 at 3:09 PM, Abilio Marques <abili...@gmail.com>
> wrote:
>
>> I think that adding the ability to capture the app stdout (and stderr)
>> would be a great thing. That way it could be even more powerful than git
>> hooks.
>>
>
> There is some code in fossil for capturing piped i/o, but i have no idea
> if it works on non-*nix: see src/popen.c.
>
>
>> But actually, I've never used TH1 before, so I don't even know if it's
>> possible to return values out of a function, nor if there is a limit on
>> strings length.
>>
>
> (A) you can return a string (because everything is a string in TH1) and
> (B) there is no inherent size limit other than the system's allocator.
> However, you might want to look into the full-fledged (optional) TCL
> support, as TH1 apps get tedious to debug once they're longer than 5 or 10
> lines. (If you're just spawning a process and returning its output, though,
> you don't need much code.) That said, i cannot comment on the TCL bits -
> hopefully someone familiar with them can enlighten us on how best to go
> about it.
>
>
>> I want to share my working proof of concept with you guys, so you can
>> test it and give feedback on it. What is the best way to do it?
>> ​
>>
>
> Post it here and someone will certainly start playing with it. (i'm ruling
> myself out for the time being - i have nerve damage in my left arm from too
> much typing and am reduced to right-hand-only typing for the foreseeable
> future.)
>
>
>> How do I get allowed to push to a branch in the main repo?​
>>
>
> http://www.fossil-scm.org/index.html/doc/trunk/www/copyright-release.html
>
> fill that out and send it (snail mail) to Richard (a.k.a. "drh") at the
> address on that form.
>
> Once he's got that on file, you'll be set up with commit access.
>
> :)
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
> http://gplus.to/sgbeal
> "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
> those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
_______________________________________________
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