[fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread Leo Razoumov
Very recently fossil_getenv function was introduced as a wrapper around standard getenv to get Unicode right. In file.c: /* ** Return the value of an environment variable as UTF8. */ char *fossil_getenv(const char *zName){ char *zValue = getenv(zName); #ifdef _WIN32 if( zValue ) zValue =

Re: [fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread Lluís Batlle i Rossell
On Thu, Feb 16, 2012 at 06:37:49AM -0500, Leo Razoumov wrote: In Unix it returns pointer pointing into actual environment (should not be modified or deallocated). In Windows, on the other hand, fossil_mbcs_to_utf8 allocates memory via sqlite3_malloc. This memory is not and cannot not be freed

Re: [fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread Leo Razoumov
2012/2/16 Lluís Batlle i Rossell vi...@viric.name: On Thu, Feb 16, 2012 at 06:37:49AM -0500, Leo Razoumov wrote: In Unix it returns pointer pointing into actual environment (should not be modified or deallocated). In Windows, on the other hand, fossil_mbcs_to_utf8 allocates memory via

Re: [fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread Lluís Batlle i Rossell
On Thu, Feb 16, 2012 at 07:09:22AM -0500, Leo Razoumov wrote: 2012/2/16 Lluís Batlle i Rossell vi...@viric.name: On Thu, Feb 16, 2012 at 06:37:49AM -0500, Leo Razoumov wrote: In Unix it returns pointer pointing into actual environment (should not be modified or deallocated). In Windows, on

Re: [fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread Leo Razoumov
2012/2/16 Lluís Batlle i Rossell vi...@viric.name: On Thu, Feb 16, 2012 at 07:09:22AM -0500, Leo Razoumov wrote: 2012/2/16 Lluís Batlle i Rossell vi...@viric.name: On Thu, Feb 16, 2012 at 06:37:49AM -0500, Leo Razoumov wrote: In Unix it returns pointer pointing into actual environment

Re: [fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread Richard Hipp
On Thu, Feb 16, 2012 at 6:37 AM, Leo Razoumov slonik...@gmail.com wrote: Very recently fossil_getenv function was introduced as a wrapper around standard getenv to get Unicode right. In file.c: /* ** Return the value of an environment variable as UTF8. */ char *fossil_getenv(const char

Re: [fossil-users] With jimtcl available can we have hooks that trigger tcl scripts stored in the db?

2012-02-16 Thread Richard Hipp
On Wed, Feb 15, 2012 at 11:15 PM, Nolan Darilek no...@thewordnerd.infowrote: So is it currently possible to use TH1 to generate dynamic webpages? Could I use it to, say, select the last 5 events and display them on the main page? Or is that still out of reach? Just curious, since it seems

Re: [fossil-users] With jimtcl available can we have hooks that trigger tcl scripts stored in the db?

2012-02-16 Thread Nolan Darilek
On 02/16/2012 06:55 AM, Richard Hipp wrote: On Wed, Feb 15, 2012 at 11:15 PM, Nolan Darilek no...@thewordnerd.info mailto:no...@thewordnerd.info wrote: So is it currently possible to use TH1 to generate dynamic webpages? Could I use it to, say, select the last 5 events and

Re: [fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread altufaltu
In ui or server commands, I guess atleast 1 instance of fossil keeps running, listening to the port. If that functionality has memory leak, it needs a fix. - Original Message - From: Richard Hipp Sent: 02/16/12 06:04 PM To: slonik...@gmail.com, Fossil SCM user's discussion Subject:

Re: [fossil-users] memory leak using fossil_getenv and fossil_mbcs_to_utf8

2012-02-16 Thread Richard Hipp
On Thu, Feb 16, 2012 at 9:33 AM, altufa...@mail.com wrote: In ui or server commands, I guess atleast 1 instance of fossil keeps running, listening to the port. If that functionality has memory leak, it needs a fix. Fossil launches a separate process to handle each HTTP request. Always. Even

[fossil-users] Last changed date on wiki pages

2012-02-16 Thread Thomas Stover
Anyway to make a place on a wiki page say something like this was last updated on x/x/x? ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Re: [fossil-users] Last changed date on wiki pages

2012-02-16 Thread Stephan Beal
Hi! The adventurous can get that via the json api: fossil json wiki get PageName Or: http://... /json/wiki/get/PageName Should do the trick. - stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal On Feb 16, 2012 4:24 PM, Thomas Stover c...@thomasstover.com wrote:

Re: [fossil-users] With jimtcl available can we have hooks that trigger tcl scripts stored in the db?

2012-02-16 Thread Nolan Darilek
Cool, I'd like to at least have the discussion about that, though. What I'd like to see, if possible, is read-only access to the repository--access to the SELECT statement, for instance, and a way to iterate over the results and output them into the pages. To anyone afraid that I'll be

[fossil-users] Seeing SBS between any checkins

2012-02-16 Thread Lluís Batlle i Rossell
Hello, the /ci pages show a list of files changed between a checkin and its primary parent. Including the possibility of SBS diffs, or unified diffs. Can that be done between any checkins, following the kind of 'shortest path' that a merge operation uses? With SBS diffs, it would be great to

Re: [fossil-users] Seeing SBS between any checkins

2012-02-16 Thread Richard Hipp
2012/2/16 Lluís Batlle i Rossell vi...@viric.name Hello, the /ci pages show a list of files changed between a checkin and its primary parent. Including the possibility of SBS diffs, or unified diffs. Can that be done between any checkins, following the kind of 'shortest path' that a

Re: [fossil-users] With jimtcl available can we have hooks that trigger tcl scripts stored in the db?

2012-02-16 Thread Leo Razoumov
On Thu, Feb 16, 2012 at 09:00, Richard Hipp d...@sqlite.org wrote: I was once open to this kind of thing.  But since the security risks have been pointed out to me, I'm now very reluctant to do anything like this. TH1 is secure by virtual of being minimalist.  It really doesn't do much

Re: [fossil-users] Seeing SBS between any checkins

2012-02-16 Thread Lluís Batlle i Rossell
On Thu, Feb 16, 2012 at 11:25:32AM -0500, Richard Hipp wrote: 2012/2/16 Lluís Batlle i Rossell vi...@viric.name With SBS diffs, it would be great to see diffs between branches using the web UI. http://yourdomain/fossil/vdiff?from=VERSION1to=VERSION2sbs=1 example:

Re: [fossil-users] Seeing SBS between any checkins

2012-02-16 Thread Richard Hipp
2012/2/16 Lluís Batlle i Rossell vi...@viric.name On Thu, Feb 16, 2012 at 11:25:32AM -0500, Richard Hipp wrote: 2012/2/16 Lluís Batlle i Rossell vi...@viric.name With SBS diffs, it would be great to see diffs between branches using the web UI.

Re: [fossil-users] Bug: non-ASCII user names are corrupted

2012-02-16 Thread Роман Донченко
Richard Hipp d...@sqlite.org писал в своём письме Thu, 16 Feb 2012 05:09:34 +0400: 2012/2/15 Richard Hipp d...@sqlite.org 2012/2/15 Роман Донченко dxdra...@yandex.ru Hello, I'm using (well, trying to) Fossil on Windows. My username is Роман. This happens: F:\Sourcefossil init

[fossil-users] web page icon propagation

2012-02-16 Thread Thomas Stover
At first it appeared that push/pull was propagating the project icon. Then it looked like it was not, so I started adding it manually. Then I realized that was just browser silliness. Now I'm back to not seeing it working. Would someone tell me if this is suppose to work, since I have confused

Re: [fossil-users] Derived code, not to be pushed public

2012-02-16 Thread Ron Wilson
On Mon, Feb 6, 2012 at 1:53 PM, Lluís Batlle i Rossell vi...@viric.name wrote: On Mon, Feb 06, 2012 at 01:07:30PM -0500, Ron Wilson wrote: Mark your branch private. Anything you want to push can then be merged into a non-private branch. Ah, well, that's fine for personal work. I meant a bit

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Richard Hipp
The skin (including the project icon) is not versioned. It is consider server-specific metadata. The skin is copied when you clone. You can all move move it using: fossil configure pull fossil configure push skin It is often necessary to press Reload on your browser after changing

[fossil-users] On vdiff

2012-02-16 Thread Lluís Batlle i Rossell
On Thu, Feb 16, 2012 at 12:11:36PM -0500, Richard Hipp wrote: 2012/2/16 Lluís Batlle i Rossell vi...@viric.name On Thu, Feb 16, 2012 at 11:25:32AM -0500, Richard Hipp wrote: 2012/2/16 Lluís Batlle i Rossell vi...@viric.name With SBS diffs, it would be great to see diffs between

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Thomas Stover
On Thursday, February 16, 2012 11:23am, Richard Hipp d...@sqlite.org said: fossil configure pull fossil configure push skin ok. I think one time I did do a configure pull, and another time just pull. The user accounts are not by chance part of this configuration?

Re: [fossil-users] Last changed date on wiki pages

2012-02-16 Thread Thomas Stover
On Thursday, February 16, 2012 9:33am, Stephan Beal sgb...@googlemail.com said: The adventurous can get that via the json api: fossil json wiki get PageName Or: http://... /json/wiki/get/PageName Should do the trick. Interesting. Once I figured out I needed to rebuild with

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Thomas Stover
I spoke too soon. I get fossil: unknown command: configure on all my installations. Do I need another build flag? ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Lluís Batlle i Rossell
On Thu, Feb 16, 2012 at 11:41:53AM -0600, Thomas Stover wrote: I spoke too soon. I get fossil: unknown command: configure on all my installations. Do I need another build flag? No json. 'fossil configuration' :) Regards, Lluís ___ fossil-users

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Thomas Stover
On Thursday, February 16, 2012 11:47am, Lluís Batlle i Rossell vi...@viric.name said: On Thu, Feb 16, 2012 at 11:41:53AM -0600, Thomas Stover wrote: I spoke too soon. I get fossil: unknown command: configure on all my installations. Do I need another build flag? No json. 'fossil

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Richard Hipp
On Thu, Feb 16, 2012 at 12:28 PM, Thomas Stover c...@thomasstover.comwrote: On Thursday, February 16, 2012 11:23am, Richard Hipp d...@sqlite.org said: fossil configure pull fossil configure push skin ok. I think one time I did do a configure pull, and another time just pull.

Re: [fossil-users] Last changed date on wiki pages

2012-02-16 Thread Stephan Beal
On Thu, Feb 16, 2012 at 6:39 PM, Thomas Stover c...@thomasstover.com wrote: Interesting. Once I figured out I needed to rebuild with --enable-json it worked. i would have mentioned that if i hadn't been typing on my phone at the time ;). I wonder if it could be crafted to just return the

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Weber, Martin S
On 2012-02-16 12:41 , Thomas Stover c...@thomasstover.com wrote: I spoke too soon. I get fossil: unknown command: configure on all my installations. Do I need another build flag? It's easy actually. The full command is configuration, to which all of conf, config and even configur are valid

Re: [fossil-users] Seeing SBS between any checkins

2012-02-16 Thread Ramon Ribó
Hello, Have you tried to see the differences page on Google Chrome? I see them ok on firefox but very bad on chrome. It looks like it does not preserve indentation. RR 2012/2/16 Richard Hipp d...@sqlite.org: 2012/2/16 Lluís Batlle i Rossell vi...@viric.name On Thu, Feb 16, 2012 at

Re: [fossil-users] Seeing SBS between any checkins

2012-02-16 Thread Richard Hipp
On Thu, Feb 16, 2012 at 1:41 PM, Ramon Ribó ram...@compassis.com wrote: Hello, Have you tried to see the differences page on Google Chrome? I see them ok on firefox but very bad on chrome. It looks like it does not preserve indentation. Try pressing Reload several times to convince

Re: [fossil-users] Seeing SBS between any checkins

2012-02-16 Thread Leo Razoumov
On Thu, Feb 16, 2012 at 13:43, Richard Hipp d...@sqlite.org wrote: Try pressing Reload several times to convince Chrome to load the newest CSS. In order to force CSS reload go to Admin-Skins, change to any skin and then change back to the default skin. --Leo--

Re: [fossil-users] Derived code, not to be pushed public

2012-02-16 Thread Brian Smith
For what it's worth, I was working on limited branch syncing awhile back. I never got around to merging it back into the master fossil repo, but, I think at least your use case is functional.. http://code.linuxfood.net/pub/repo/fossil-limsync I really ought to finish that up and push it into

Re: [fossil-users] web page icon propagation

2012-02-16 Thread Thomas Stover
On Thursday, February 16, 2012 12:18pm, Weber, Martin S martin.we...@nist.gov said: It's easy actually. The full command is configuration, to which all of Awesome. fossil configuration pull skin did it. Looking at the bytes transferred, the icon itself must have already come over in

Re: [fossil-users] Last changed date on wiki pages

2012-02-16 Thread Thomas Stover
On Thursday, February 16, 2012 12:13pm, Stephan Beal sgb...@googlemail.com said: Doh, i almost forgot a recently-added feature... try: http://.../json/wiki/get/PAGENAME?format=none Or: fossil wiki get PAGENAME -format none that will return a given page's metadata without its content:

Re: [fossil-users] Last changed date on wiki pages

2012-02-16 Thread Stephan Beal
On Thu, Feb 16, 2012 at 8:46 PM, Thomas Stover c...@thomasstover.com wrote: That would be great. For me it worked with the command line, but not through the browser. Works for me? http://fossil.wanderinghorse.net/repos/whio/index.cgi/json/wiki/get/whio_dev?format=none Or, alternately:

Re: [fossil-users] Derived code, not to be pushed public

2012-02-16 Thread Leo Razoumov
On Thu, Feb 16, 2012 at 14:15, Brian Smith br...@linuxfood.net wrote: For what it's worth, I was working on limited branch syncing awhile back. I never got around to merging it back into the master fossil repo, but, I think at least your use case is functional..

[fossil-users] compile with --enable-json

2012-02-16 Thread Johan Samyn
Hi, I just read a thread from this list where someone mentions compiling with the --enable-json flag. I'm on Win7, and use 'make -f win\Makefile.mingw' to compile fossil. I tried with adding that flag, but the option is rejected. I did not find such flag in that Makefile.mingw that I could

Re: [fossil-users] compile with --enable-json

2012-02-16 Thread Stephan Beal
On Thu, Feb 16, 2012 at 9:37 PM, Johan Samyn johan.sa...@gmail.com wrote: Hi, I just read a thread from this list where someone mentions compiling with the --enable-json flag. I'm on Win7, and use 'make -f win\Makefile.mingw' to compile fossil. I tried with adding that flag, but the option

Re: [fossil-users] compile with --enable-json

2012-02-16 Thread Johan Samyn
On 16-02-2012 21:53, Stephan Beal wrote: On Thu, Feb 16, 2012 at 9:37 PM, Johan Samyn johan.sa...@gmail.com mailto:johan.sa...@gmail.com wrote: Hi, I just read a thread from this list where someone mentions compiling with the --enable-json flag. I'm on Win7, and use 'make -f

Re: [fossil-users] compile with --enable-json

2012-02-16 Thread Stephan Beal
On Thu, Feb 16, 2012 at 11:19 PM, Johan Samyn johan.sa...@gmail.com wrote: Thanks Stephan. Should adding 'FOSSIL_ENABLE_JSON = 1' to my Makefile.mingw work too (I'm a makefile noob ...) ? It doesn't look like that's a known makefile option (it might be worth adding, though): stephan@tiny

Re: [fossil-users] With jimtcl available can we have hooks that trigger tcl scripts stored in the db?

2012-02-16 Thread Steve Bennett
On 17/02/2012, at 2:15 AM, Nolan Darilek wrote: Cool, I'd like to at least have the discussion about that, though. What I'd like to see, if possible, is read-only access to the repository--access to the SELECT statement, for instance, and a way to iterate over the results and output

[fossil-users] Building fossil on Solaris

2012-02-16 Thread Jan Danielsson
Hello, I've built fossil on Solaris previously using the old Makefile (requiring only very minor changes), but Makefile.classic seems to have degenerated a little, so I thought I'd try to use configure et al), but I end up with this: $ mkdir build $ cd build $ ../configure Error:

Re: [fossil-users] Building fossil on Solaris

2012-02-16 Thread Steve Bennett
On 17/02/2012, at 10:57 AM, Jan Danielsson wrote: Hello, I've built fossil on Solaris previously using the old Makefile (requiring only very minor changes), but Makefile.classic seems to have degenerated a little, so I thought I'd try to use configure et al), but I end up with this:

Re: [fossil-users] Building fossil on Solaris

2012-02-16 Thread Steve Bennett
On 17/02/2012, at 11:08 AM, Steve Bennett wrote: On 17/02/2012, at 10:57 AM, Jan Danielsson wrote: Hello, I've built fossil on Solaris previously using the old Makefile (requiring only very minor changes), but Makefile.classic seems to have degenerated a little, so I thought I'd try to

Re: [fossil-users] Building fossil on Solaris

2012-02-16 Thread Jan Danielsson
On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? Ah, yes. Good ol' Solaris /bin/sh. That was it. I can't believe I missed that; I have been bitten by that particular limitation of Solaris' /bin/sh a few times before.

Re: [fossil-users] Building fossil on Solaris

2012-02-16 Thread Steve Bennett
On 17/02/2012, at 11:53 AM, Jan Danielsson wrote: On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? Ah, yes. Good ol' Solaris /bin/sh. That was it. I can't believe I missed that; I have been bitten by that particular

Re: [fossil-users] Building fossil on Solaris

2012-02-16 Thread Richard Hipp
On Thu, Feb 16, 2012 at 8:53 PM, Jan Danielsson jan.m.daniels...@gmail.comwrote: On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? We have this fix checked-in and running on a Solaris Sparc blade here:

Re: [fossil-users] Building fossil on Solaris

2012-02-16 Thread Steve Bennett
On 17/02/2012, at 1:51 PM, Richard Hipp wrote: On Thu, Feb 16, 2012 at 8:53 PM, Jan Danielsson jan.m.daniels...@gmail.com wrote: On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? We have this fix checked-in and running