Re: [fossil-users] fixing db locked error

2015-02-05 Thread Matt Welland
If an sqlite3 db gets locked on NFS the fix is to copy the file to a tmp dir and copy dump it: mkdir tmp cp foo.fossil* tmp rm foo.fossil* sqlite3 tmp/foo.fossil .dump | sqlite3 foo.fossil This deals gracefully with cases where there is a .journal file, locks and other problems. Just my $0.02

[fossil-users] www/mkindex.tcl

2015-02-05 Thread Sergei Gavrikov
Hi FYI: 'Command-line help' link on permutedindex.html page broken, it points on /doc/help (there is missed ../ in www/mkindex.tcl script). Thanks for Fossil, Sergei ___ fossil-users mailing list fossil-users@lists.fossil-scm.org

Re: [fossil-users] TH1 exec

2015-02-05 Thread Abilio Marques
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

Re: [fossil-users] www/mkindex.tcl

2015-02-05 Thread Arseniy Terekhin
In addition `fossil extra` and `fossil ls` links at http://fossil-scm.org/index.html/wcontent are kind of broken too. On Thu, Feb 5, 2015 at 4:51 PM, Sergei Gavrikov sergei.gavri...@gmail.com wrote: Hi FYI: 'Command-line help' link on permutedindex.html page broken, it points on /doc/help

Re: [fossil-users] TH1 exec

2015-02-05 Thread Abilio Marques
Yeah, missed the attach... On Thu, Feb 5, 2015 at 11:39 AM, Abilio Marques abili...@gmail.com wrote: 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

Re: [fossil-users] TH1 exec

2015-02-05 Thread Stephan Beal
On Thu, Feb 5, 2015 at 5:12 PM, Abilio Marques abili...@gmail.com wrote: Yeah, missed the attach... src/popen.c does a lot of the same stuff except... it fails fatally on error instead of returning TH_ERROR. Pedantically speaking, i prefer using error codes (like your patch), but fossil has a

Re: [fossil-users] TH1 exec

2015-02-05 Thread Ron W
On Thu, Feb 5, 2015 at 11:09 AM, Abilio Marques abili...@gmail.com wrote: Here the current code (missing the capture of the stdout). I send it as a patch to the current trunk version (0d1d7f6481). Ideas? I suggest altering the parameter processing to be: if ( argc == 3 ){ if

Re: [fossil-users] TH1 exec

2015-02-05 Thread Abilio Marques
Ohhh, I missed the attach in the first mail anyway, here it is: http://abiliojr.homenet.org:20001/public/exec.diff On Thu, Feb 5, 2015 at 11:41 AM, Stephan Beal sgb...@googlemail.com wrote: On Thu, Feb 5, 2015 at 5:09 PM, Abilio Marques abili...@gmail.com wrote: Here the current code

Re: [fossil-users] TH1 exec

2015-02-05 Thread Stephan Beal
On Thu, Feb 5, 2015 at 5:09 PM, Abilio Marques abili...@gmail.com wrote: Here the current code (missing the capture of the stdout). I send it as a patch to the current trunk version (0d1d7f6481). The list strips (IIRC) attachments - try pasting it into your mail or posting a link to it. --

[fossil-users] fixing db locked error

2015-02-05 Thread bch
On a remote machine, I was running fossil co branch, when the checkout stopped to ask if I wanted to overwrite a file, and simultaneously, my ssh session had hung. I killed that ssh session, re-logged into the remote. There is no stray ssh/login session I can see, nor old instance of fossil

Re: [fossil-users] fixing db locked error

2015-02-05 Thread bch
Its even better -- the Remote Machine is a cluster of machines sharing disk. I solved the immediate problem -- however this raises a question: Is there a --ignore-advisory-locks switch to fossil, or can we (The List) have a discussion about this ? -bch On 2/5/15, Richard Hipp d...@sqlite.org

Re: [fossil-users] fixing db locked error

2015-02-05 Thread Richard Hipp
On 2/5/15, bch brad.har...@gmail.com wrote: On a remote machine, I was running fossil co branch, when the checkout stopped to ask if I wanted to overwrite a file, and simultaneously, my ssh session had hung. I killed that ssh session, re-logged into the remote. There is no stray ssh/login

Re: [fossil-users] fixing db locked error

2015-02-05 Thread Richard Hipp
On 2/5/15, bch brad.har...@gmail.com wrote: Its even better -- the Remote Machine is a cluster of machines sharing disk. I solved the immediate problem -- however this raises a question: Is there a --ignore-advisory-locks switch to fossil, or can we (The List) have a discussion about this ?

Re: [fossil-users] fixing db locked error

2015-02-05 Thread bch
Understood -- I hope I never see an need to run this -- I'd look long, and hard before I did. In case anybody is perceiving my interest in subverting POSIX locking as implied embracing of subverting POSIX locking: I'm am not condoning this. -bch On 2/5/15, Richard Hipp d...@sqlite.org wrote:

Re: [fossil-users] fixing db locked error

2015-02-05 Thread Ron W
On Thu, Feb 5, 2015 at 3:25 PM, bch brad.har...@gmail.com wrote: Understood -- I hope I never see an need to run this -- I'd look long, and hard before I did. In case anybody is perceiving my interest in subverting POSIX locking as implied embracing of subverting POSIX locking: I'm am not