[fossil-users] unlocks the usage of: fossil diff --to foo (without --from)

2016-08-02 Thread Kain Abel
Hi, it's IMHO a comfort feature in 'do what I say' style and it will allow $ fossil diff --to tip That is logical the same as: $ fossil diff --from tip --invert I think it will be useful to compare your local changes (of current checkout) against a more recent checkin. With regards, Kain In the

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Stephan Beal
On Tue, Aug 2, 2016 at 10:43 PM, Warren Young wrote: > For example, VC++2013 lacked snprintf(), but VC++ has had _snprintf() > since at least 2003. Much harder to work around are missing format > specifiers, which were much improved by VC++2013 relative to prior versions. > fyi, if you find you

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Warren Young
On Aug 2, 2016, at 2:31 PM, Warren Young wrote: > > On Aug 2, 2016, at 9:06 AM, Ron W wrote: >> >> This makes me wonder what the benefit of staying with the C89 specification >> instead of the C99 specification. Are there really still compilers in use >> that don't implement C99? > > Visual

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Warren Young
On Aug 2, 2016, at 9:06 AM, Ron W wrote: > > This makes me wonder what the benefit of staying with the C89 specification > instead of the C99 specification. Are there really still compilers in use > that don't implement C99? Visual C++ didn’t get full C99 support until 2013. Viewed one way, t

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread Richard Hipp
On 8/2/16, John Found wrote: > > But how to make web server run fossil with command line arguments? > Some wrapper is still needed, or I am missing something? > I'm trying to come with documentation to better explain how that works. My *first draft* is currently up at https://www.fossil-scm.org/

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread John Found
On Tue, 2 Aug 2016 12:54:58 -0400 Richard Hipp wrote: > On 8/2/16, John Found wrote: > > > So, is it possible to use fossil in CGI mode without wrapping it with bash > > CGI script? > > > > Simply run "fossil cgi FILE" where FILE is the name of a configuration > file. FILE should look like th

Re: [fossil-users] basic usage question - empty directories

2016-08-02 Thread Donny Ward
I'm surprised no one has mentioned the approach of placing empty files in the directory. If I had an empty folder (e.g. bin) I would: touch bin/PlaceExecutablesHere fossil add bin/PlaceExecutablesHere and the empty file would keep that folder in the repository. ___

Re: [fossil-users] basic usage question - empty directories

2016-08-02 Thread Adam Jensen
On 08/02/2016 02:17 PM, Joe Mistachkin wrote: > > Adam Jensen wrote: >> >> So neither the TH1 or the embedded Tcl engine have typical shell-like >> access the OS? >> > > If the Tcl integration features of Fossil are enabled, the Tcl interpreter > will have full access to the Tcl command set, incl

Re: [fossil-users] basic usage question - empty directories

2016-08-02 Thread Joe Mistachkin
Adam Jensen wrote: > > So neither the TH1 or the embedded Tcl engine have typical shell-like > access the OS? > If the Tcl integration features of Fossil are enabled, the Tcl interpreter will have full access to the Tcl command set, including any packages that happen to be installed. By default,

Re: [fossil-users] basic usage question - empty directories

2016-08-02 Thread Adam Jensen
On 08/02/2016 10:57 AM, Ron W wrote: > On Tue, Aug 2, 2016 at 12:26 AM, Adam Jensen > wrote: > > > Subversion has "Repository Hooks" (a program triggered by some > repository event); Fossil might have had a similar capability ... > worth asking. > > > With

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread Richard Hipp
On 8/2/16, Richard Hipp wrote: > > Simply run "fossil cgi FILE" where FILE is the name of a configuration > file. FILE should look like this: > > repository: /home/of/your/repository.fossil > > Other lines are possible, but the above is sufficient to get you > started. Probably this deserve

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread Richard Hipp
On 8/2/16, John Found wrote: > So, is it possible to use fossil in CGI mode without wrapping it with bash > CGI script? > Simply run "fossil cgi FILE" where FILE is the name of a configuration file. FILE should look like this: repository: /home/of/your/repository.fossil Other lines are p

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread John Found
On Tue, 2 Aug 2016 14:43:11 +0300 John Found wrote: > Indeed, I found very similar tool "fcgiwrap": > https://github.com/gnosek/fcgiwrap > Will try to use it to wrap fossil in CGI mode, as long as the SCGI mode of > fossil > is very similar wrapper, only built-in. One layer less is always good

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Scott Robison
On Aug 2, 2016 9:12 AM, "Richard Hipp" wrote: > > On 8/2/16, Ron W wrote: > > > > Are there really still compilers in use > > that don't implement C99? > > > > I still build Fossil on a circa-2002 iBook. (See section 4 of > http://fossil-scm.org/fossil/doc/trunk/www/build.wiki). I do not know >

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Johan Kuuse
On Tue, Aug 2, 2016 at 5:06 PM, Richard Hipp wrote: > On 8/2/16, Johan Kuuse wrote: > > > > I would suggest adding the -Wextra flag > > anyway, to trap a lot of other existing warnings, and more important, > > future warnings. > > > > I care more about bugs than warnigns. Has -Wextra ever foun

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Richard Hipp
On 8/2/16, Ron W wrote: > > Are there really still compilers in use > that don't implement C99? > I still build Fossil on a circa-2002 iBook. (See section 4 of http://fossil-scm.org/fossil/doc/trunk/www/build.wiki). I do not know if it implements C99 or not, but if I had to guess I would say "n

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Ron W
On Tue, Aug 2, 2016 at 8:00 AM, Stephan Beal wrote: > > As i rememeber it, sqlite3 won't compile with strict C89 mode because of > its use of (long long), which is C99 (but is apparently implemented in all > C compilers when not running in strict C89 mode). > This makes me wonder what the benefit

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Richard Hipp
On 8/2/16, Johan Kuuse wrote: > > I would suggest adding the -Wextra flag > anyway, to trap a lot of other existing warnings, and more important, > future warnings. > I care more about bugs than warnigns. Has -Wextra ever found a bug in Fossil? -- D. Richard Hipp d...@sqlite.org _

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Johan Kuuse
On Tue, Aug 2, 2016 at 2:00 PM, Stephan Beal wrote: > > > On Tue, Aug 2, 2016 at 1:46 PM, Johan Kuuse wrote: > >> Thanks, now it works for both clang and gcc, with the added flags to >> Makefile: >> >> TCCFLAGS =-DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include *-std=c89 >> -Wall* -g -O2 -DHAV

Re: [fossil-users] basic usage question - empty directories

2016-08-02 Thread Ron W
On Tue, Aug 2, 2016 at 12:26 AM, Adam Jensen wrote: > > Subversion has "Repository Hooks" (a program triggered by some > repository event); Fossil might have had a similar capability ... > worth asking. With all the right things enabled during build, Fossil can run TH1/TCL scripts on certain ev

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Stephan Beal
On Tue, Aug 2, 2016 at 1:46 PM, Johan Kuuse wrote: > Thanks, now it works for both clang and gcc, with the added flags to > Makefile: > > TCCFLAGS =-DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include *-std=c89 > -Wall* -g -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H > > Is there any special re

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Johan Kuuse
Thanks, now it works for both clang and gcc, with the added flags to Makefile: TCCFLAGS =-DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include *-std=c89 -Wall* -g -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H Is there any special reason for *not* using the -Wextra and -Werror flags, like this? TCC

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread John Found
On Tue, 2 Aug 2016 07:34:07 -0400 Adam Jensen wrote: > On 08/02/2016 05:00 AM, Richard Hipp wrote: > > On 8/2/16, John Found wrote: > >> I have to move my web site on a server that supports only FastCGI > >> interface. > >> Is there an easy way to host fossil repositories on it? > > > > Fossil

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread Adam Jensen
On 08/02/2016 05:00 AM, Richard Hipp wrote: > On 8/2/16, John Found wrote: >> I have to move my web site on a server that supports only FastCGI interface. >> Is there an easy way to host fossil repositories on it? > > Fossil only support CGI and SCGI. What web server are you running > that has o

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread Richard Hipp
On 8/2/16, Stephan Beal wrote: > > As i recall (but it's been 6 or 8 years), FastCGI works by starting a > single app instance and piping CGI data through it multiple times (for > multiple requests). If that's the case... Fossil relies on the app shutting > down to free memory, and would be incomp

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread Stephan Beal
On Tue, Aug 2, 2016 at 11:12 AM, John Found wrote: > On Tue, 2 Aug 2016 05:00:42 -0400 > Richard Hipp wrote: > > > On 8/2/16, John Found wrote: > > > I have to move my web site on a server that supports only FastCGI > interface. > > > Is there an easy way to host fossil repositories on it? > >

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread John Found
On Tue, 2 Aug 2016 05:00:42 -0400 Richard Hipp wrote: > On 8/2/16, John Found wrote: > > I have to move my web site on a server that supports only FastCGI interface. > > Is there an easy way to host fossil repositories on it? > > Fossil only support CGI and SCGI. What web server are you runnin

Re: [fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread Richard Hipp
On 8/2/16, John Found wrote: > I have to move my web site on a server that supports only FastCGI interface. > Is there an easy way to host fossil repositories on it? Fossil only support CGI and SCGI. What web server are you running that has only FastCGI support. When I was looking into alternat

[fossil-users] How to host fossil repositories on web server that supports only FastCGI interface?

2016-08-02 Thread John Found
I have to move my web site on a server that supports only FastCGI interface. Is there an easy way to host fossil repositories on it? -- http://fresh.flatassembler.net http://asm32.info John Found ___ fossil-users mailing list fossil-users@lists.fossil-

Re: [fossil-users] Compiler warnings

2016-08-02 Thread Richard Hipp
Please try again with the latest code from trunk. On 8/2/16, Johan Kuuse wrote: > Hi, > > In trunk (f475b943eb), I get a compiler warning when I use clang with the > default Makefile: > > > cc -I. -I./src -Ibld -DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include-g > -O2 -DHAVE_AUTOCONFIG_H -D_HAVE

[fossil-users] Compiler warnings

2016-08-02 Thread Johan Kuuse
Hi, In trunk (f475b943eb), I get a compiler warning when I use clang with the default Makefile: cc -I. -I./src -Ibld -DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include-g -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H -O2 -pipe -o bld/fshell.o -c bld/fshell_.c ./src/fshell.c:109:7: warning: im