[fossil-users] compiler warnings

2014-04-23 Thread Ron Aaron
Cross-compiling for Windows using mingw32 gcc 4.8.2 ( -O3 -Wall ) I get: ./src/sqlite3.c: In function 'balance': ./src/sqlite3.c:57557:22: warning: array subscript is above array bounds [-Warray-bounds] pOld = apCopy[++j]; and ./src/th.c: In function 'Th_ListAppend': ./src/th.c:194:5:

Re: [fossil-users] strcpy() vs strlcpy()?

2014-04-23 Thread Eduardo Morras
On 22 Apr 2014 21:35:39 -0600 Andy Bradford amb-fos...@bradfords.org wrote: Hello, As of [2aaae64a59] compiling Fossil on OpenBSD results in a warning: bld/name.o(.text+0x11a): In function `test_ambiguous_cmd': ./src/name.c:742: warning: strcpy() is almost always misused, please use

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Andy Bradford
Thus said Matt Welland on Tue, 22 Apr 2014 22:22:16 -0700: This has happened enough that I'm sure it was a real issue but it has been long enough since anyone reported it to me that I'd assumed it was fixed. Unfortunately, nobody has been able to reproduce so it's kind of hard to fix. The

Re: [fossil-users] strcpy() vs strlcpy()?

2014-04-23 Thread Andy Bradford
Thus said Eduardo Morras on Wed, 23 Apr 2014 08:49:52 +0200: Don't know, but strlcpy() exists only in *BSD libc, but no in GNU/Linux glibc or Windows. Sure enough, guess I should RTFM a bit more. I looks like this isn't exactly an option then, and the strlcpy() that are used in

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Samuel Debionne
Out of curiosity: is there a proxy between them? A caching proxy server might explain this behaviour (in which case i think there's a workaround). No proxy involved. The three machines are sitting on my desk. As a side note, the server is a raspberry PI and it does a great job at hosting

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 9:18 AM, Samuel Debionne samuel.debio...@ujf-grenoble.fr wrote: The only clue for you I have is that a rebuild on the server did the trick. I'm no sure what fossil rebuild does though... Rebuild basically reconstructs the db from its underlying metadata. A very brief

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 9:18 AM, Samuel Debionne samuel.debio...@ujf-grenoble.fr wrote: No proxy involved. The three machines are sitting on my desk. As a side note, the server is a raspberry PI and it does a great job at hosting fossil repo ! ... The three machines are clock sync with NTP.

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:00 PM, Chad Perrin c...@apotheon.net wrote: Is there some way to check out the wiki and make edits as one would for standard repository files, to be committed like standard repository files, rather than always having to use a browser to edit the wiki? I Kinda of:

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:04 PM, Stephan Beal sgb...@googlemail.com wrote: 'commit' to save the changes. Unfortunate there's not a direct way to preview changes without saving unless you want to use the JSON API (which provides preview feature for wiki text passed to it). If that feature

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Andreas Kupries
On Wed, Apr 23, 2014 at 8:38 AM, Stephan Beal sgb...@googlemail.com wrote: On Wed, Apr 23, 2014 at 9:18 AM, Samuel Debionne samuel.debio...@ujf-grenoble.fr wrote: The only clue for you I have is that a rebuild on the server did the trick. I'm no sure what fossil rebuild does though...

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:12 PM, Andreas Kupries andre...@activestate.comwrote: I am wondering if the rebuild will also redo the cluster artifacts. i have no idea - i'm not at all familiar with the sync-related code (because it's way down on the list of libfossil's TODOs ;). If these are

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Andreas Kupries
On Wed, Apr 23, 2014 at 9:15 AM, Stephan Beal sgb...@googlemail.com wrote: On Wed, Apr 23, 2014 at 6:12 PM, Andreas Kupries andre...@activestate.com wrote: I am wondering if the rebuild will also redo the cluster artifacts. i have no idea - i'm not at all familiar with the sync-related code

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 06:04:18PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:00 PM, Chad Perrin c...@apotheon.net wrote: Is there some way to check out the wiki and make edits as one would for standard repository files, to be committed like standard repository files, rather

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Michai Ramakers
On 23 April 2014 18:28, Andreas Kupries andre...@activestate.com wrote: Another would be to see what the --verily is doing differently from regular sync. For ex. does it bypass the cluster optimizations ? I.e. any code bypassed by --verily would be suspect I have no clue on sync logic at

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Joerg Sonnenberger
On Wed, Apr 23, 2014 at 09:12:28AM -0700, Andreas Kupries wrote: I am wondering if the rebuild will also redo the cluster artifacts. No, but it does rebuild the phantom table, a.k.a. the missing artifacts. Joerg ___ fossil-users mailing list

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:29 PM, Chad Perrin c...@apotheon.net wrote: . . . so basically I need to list wiki pages to figure out what I want, export a page, edit that, then commit it to overwrite what's already there, one file at a time, rather than having a checked out directory of wiki

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 06:06:17PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:04 PM, Stephan Beal sgb...@googlemail.com wrote: 'commit' to save the changes. Unfortunate there's not a direct way to preview changes without saving unless you want to use the JSON API (which provides

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 06:36:38PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:29 PM, Chad Perrin c...@apotheon.net wrote: . . . so basically I need to list wiki pages to figure out what I want, export a page, edit that, then commit it to overwrite what's already there, one file

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:50 PM, Chad Perrin c...@apotheon.net wrote: Okay, yeah, that'll be handy -- but not suitable for my need/desire to make the wiki editable from the console (obviously), as I definitely need to make wiki pages available for editing from the web interface as well. Does

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Richard Hipp
On Wed, Apr 23, 2014 at 12:50 PM, Chad Perrin c...@apotheon.net wrote: Oh, never mind, the embedded docs won't do me any good, because I use FreeBSD, not GNU/Emacs. ??? What does your OS and editor choice have to do with anything? -- D. Richard Hipp d...@sqlite.org

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:52 PM, Richard Hipp d...@sqlite.org wrote: On Wed, Apr 23, 2014 at 12:50 PM, Chad Perrin c...@apotheon.net wrote: Oh, never mind, the embedded docs won't do me any good, because I use FreeBSD, not GNU/Emacs. ??? What does your OS and editor choice have to do

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Matt Welland
Here is a bash script that I use to edit wiki pages: Just use it like this: editwiki wikipagename === #!/bin/bash wikiname=$1 FOSSILBIN=/usr/local/bin/fossil if [ x$wikiname == x ];then echo Usage: viwiki wikipagename exit fi $FOSSILBIN sync wikitmpfile=`mktemp

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 6:53 PM, Matt Welland estifo...@gmail.com wrote: EDITOR=gvim -f Missing quotes? [stephan@host:~/cvs/fossil/fossil/src]$ EDITOR=gvim -f ec-f: command not found But this works: [stephan@host:~/cvs/fossil/fossil/src]$ EDITOR=emacs

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Matt Welland
On Wed, Apr 23, 2014 at 9:55 AM, Stephan Beal sgb...@googlemail.com wrote: On Wed, Apr 23, 2014 at 6:53 PM, Matt Welland estifo...@gmail.com wrote: EDITOR=gvim -f Missing quotes? [stephan@host:~/cvs/fossil/fossil/src]$ EDITOR=gvim -f ec-f: command not found But this works:

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Martin Gagnon
On Wed, Apr 23, 2014 at 06:53:04PM +0200, Stephan Beal wrote: On Wed, Apr 23, 2014 at 6:50 PM, Chad Perrin c...@apotheon.net wrote: Okay, yeah, that'll be handy -- but not suitable for my need/desire to make the wiki editable from the console (obviously), as I definitely need to

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 7:10 PM, Martin Gagnon eme...@gmail.com wrote: And when you edit with your local editor, you can visualize your change before commit using fossil ui and pointing your browser to http://localhost:8080/doc/ckout/../path/to/file.md Nice tip - i never thought of that (or

Re: [fossil-users] Skip Preview step when editing a ticket?

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 3:38 AM, Joe Knapka jkna...@kneuro.net wrote: I find the requirement that I Preview ticket edits before I can Submit them to be entirely annoying and of no value whatsoever. I nevur mispell onything, and my repositories are entirely for my personal use anyway. Is there

Re: [fossil-users] Skip Preview step when editing a ticket?

2014-04-23 Thread Andreas Kupries
On Wed, Apr 23, 2014 at 10:26 AM, Stephan Beal sgb...@googlemail.com wrote: On Wed, Apr 23, 2014 at 3:38 AM, Joe Knapka jkna...@kneuro.net wrote: I find the requirement that I Preview ticket edits before I can Submit them to be entirely annoying and of no value whatsoever. I nevur mispell

[fossil-users] Name for inverse of annotate or blame

2014-04-23 Thread Richard Hipp
The annotate and blame features are very useful for figuring out when some piece of code was added to the current head. But sometimes I want to figure out when some piece of code was deleted from an historical version of code. A concrete example: Earlier today I needed to know which check-in

Re: [fossil-users] Name for inverse of annotate or blame

2014-04-23 Thread Stephan Beal
On Wed, Apr 23, 2014 at 8:19 PM, Richard Hipp d...@sqlite.org wrote: The implementation of this is probably straight-forward. Just run the annotate algorithm forwards in time rather than backwards. My question: What do I call it? QUESTION: What do I call the hyperlink that shows

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Chad Perrin
On Wed, Apr 23, 2014 at 12:52:36PM -0400, Richard Hipp wrote: On Wed, Apr 23, 2014 at 12:50 PM, Chad Perrin c...@apotheon.net wrote: Oh, never mind, the embedded docs won't do me any good, because I use FreeBSD, not GNU/Emacs. ??? What does your OS and editor choice have to do with

Re: [fossil-users] wiki edits outside HTML UI

2014-04-23 Thread Stephan Beal
1) lol! 2) wikis are stored completely differently. It would possibly be less work to add online edit to embedded docs (currently has the problem of needing a checkout, but that is one of the things libfossil aims to make possible). (sent from a mobile device - please excuse brevity, typos, and

Re: [fossil-users] Skip Preview step when editing a ticket?

2014-04-23 Thread Joe Knapka
Beautiful! Thank you, Andreas. Stephan, I'm not worried about bots, my repos all live on non-publicly-accessible servers. If that should change, I'll consider enabling the preview. Also, extra cool that Fossil uses Tcl as its scripting language - I didn't know that until today. - Joe On Wed,

Re: [fossil-users] Skip Preview step when editing a ticket?

2014-04-23 Thread Andreas Kupries
On Wed, Apr 23, 2014 at 2:52 PM, Joe Knapka jkna...@kneuro.net wrote: Beautiful! Thank you, Andreas. You are welcome. Also, extra cool that Fossil uses Tcl as its scripting language - I didn't know that until today. Well, actually the language is called TH1, for Test Harness 1, I believe. It

Re: [fossil-users] Name for inverse of annotate or blame

2014-04-23 Thread Andy Bradford
Thus said Richard Hipp on Wed, 23 Apr 2014 14:19:44 -0400: QUESTION: What do I call the hyperlink that shows annotate/blame only forwards in time instead of backwards in time. Could it be considered commit trail? Andy -- TAI64 timestamp: 40005358400e

Re: [fossil-users] Name for inverse of annotate or blame

2014-04-23 Thread Christopher Vance
If you show both begin and end, perhaps range or lifeline? On Thu, Apr 24, 2014 at 8:34 AM, Andy Bradford amb-fos...@bradfords.orgwrote: Thus said Richard Hipp on Wed, 23 Apr 2014 14:19:44 -0400: QUESTION: What do I call the hyperlink that shows annotate/blame only forwards in time

Re: [fossil-users] Copy User Category Configuration

2014-04-23 Thread Ron Wilson
On Tue, Apr 22, 2014 at 6:57 AM, Paulus Tuerah pau...@yahoo.com wrote: Hi, I have many repositories, and I want all the repositories to have same user category capabilities. So I set the users categories capabilities in one repository, and then export it to file, then import it to other

Re: [fossil-users] Fossil update goes not get lastest checkin

2014-04-23 Thread Andy Bradford
Thus said Michai Ramakers on Wed, 23 Apr 2014 18:34:32 +0200: I have no clue on sync logic at all, but perhaps this helps: in all cases I remember here (3 or so), when sync of commit on host A was not seen during sync on host B, doing a dummy-commit on host A, then pulling again on