[fossil-users] How to reverse a committed changeset in Fossil?

2012-07-13 Thread Konstantin Khomoutov
Is there a way to reverse a committed changeset in Fossil? I mean, I have a timeline ...-A-B-C and would like to reverse a change introduced by B. This logically amounts to generating a patch B introduced then trying to reverse-apply it onto C (what would `patch -R ...` do). In Git, I would do

Re: [fossil-users] How to reverse a committed changeset in Fossil?

2012-07-13 Thread Richard Hipp
On Fri, Jul 13, 2012 at 6:25 AM, Konstantin Khomoutov flatw...@users.sourceforge.net wrote: Is there a way to reverse a committed changeset in Fossil? I mean, I have a timeline ...-A-B-C and would like to reverse a change introduced by B. This logically amounts to generating a patch B

[fossil-users] HowTo: fetch embedded docs via the JSON API

2012-07-13 Thread Stephan Beal
Hi, all, while hacking on a new /json/doc command for fossil i found that we don't need one... f json dir www -ci tip resp. /json/dir/www?checkin=tip will get the current list of docs: [stephan@host:~/cvs/fossil/fossil]$ f json dir www -ci tip -I 2 | sed -n 6,30p payload:{ name:www,

Re: [fossil-users] How to reverse a committed changeset in Fossil?

2012-07-13 Thread Konstantin Khomoutov
On Fri, 13 Jul 2012 06:26:21 -0700 Richard Hipp d...@sqlite.org wrote: Is there a way to reverse a committed changeset in Fossil? I mean, I have a timeline ...-A-B-C and would like to reverse a change introduced by B. This logically amounts to generating a patch B introduced then

[fossil-users] stupid fossil CLI tricks #3239

2012-07-13 Thread Stephan Beal
Hi, all! For the Unix users out there, here's one way to climb a lineage of parents for a given file artifact: [stephan@host:~/cvs/fossil/fossil/src]$ fArtifactParent() { fossil json artifact $1 | grep -w parent | cut -d: -f2 | tr -d '[,]' ; } [stephan@host:~/cvs/fossil/fossil/src]$

[fossil-users] Fwd: [fossil-dev] extending th1's hascap to include ENABLE_xxx flags?

2012-07-13 Thread Stephan Beal
From: Richard Hipp d...@sqlite.org I like hasfeature the best. (moved to the user list) Just checked in: [stephan@host:~/cvs/fossil/fossil/src]$ cat foo.th1 th1 if {[hasfeature json]} { html json } if {[hasfeature tcl]} { html tcl } if {[hasfeature ssl]} { html ssl } /th1 tested under

[fossil-users] new th1 feature: hasfeature function

2012-07-13 Thread Stephan Beal
Hiho, My last mail seems to have been half-swallowed by gmail, which folded the forwarded response by default and may very well have seemed to be empty to you other gmail users, so... New feature: the TH1 hasfeature function can be used to determine if SSL, TCL, and/or JSON are enabled for the

Re: [fossil-users] new th1 feature: hasfeature function

2012-07-13 Thread Joe Mistachkin
Stephan Beal wrote: New feature: the TH1 hasfeature function can be used to determine if SSL, TCL, and/or JSON are enabled for the current repository: Thanks for this. I've been thinking about something like this. -- Joe Mistachkin ___

Re: [fossil-users] new th1 feature: hasfeature function

2012-07-13 Thread Stephan Beal
On Fri, Jul 13, 2012 at 9:36 PM, Joe Mistachkin sql...@mistachkin.comwrote: New feature: the TH1 hasfeature function can be used to determine if SSL, TCL, and/or JSON are enabled for the current repository: Slight correction: current fossil BINARY, not REPOSITORY. From what i understand TCL

[fossil-users] Custom pages: where do they belong?

2012-07-13 Thread Stephan Beal
Hi, all, Back to the topic of custom pages... tonight i've been adding some functions to th1 to make it useful for creating custom pages (namely SELECT-only access to the db), and i'm about ready to start plugging that in to the first draft of custom pages support. The question on my mind is:

Re: [fossil-users] Custom pages: where do they belong?

2012-07-13 Thread Richard Hipp
On Fri, Jul 13, 2012 at 10:27 PM, Stephan Beal sgb...@googlemail.comwrote: Hi, all, Back to the topic of custom pages... tonight i've been adding some functions to th1 to make it useful for creating custom pages (namely SELECT-only access to the db), and i'm about ready to start plugging

Re: [fossil-users] Custom pages: where do they belong?

2012-07-13 Thread Stephan Beal
On Sat, Jul 14, 2012 at 4:29 AM, Richard Hipp d...@sqlite.org wrote: I think (2) since that way we don't have to worry about causing accidental collisions with preexisting custom pages when we add new built-in pages in the future. That's my conclusion as well. If we want them to be safely

Re: [fossil-users] Custom pages: where do they belong?

2012-07-13 Thread Richard Hipp
On Fri, Jul 13, 2012 at 10:42 PM, Stephan Beal sgb...@googlemail.comwrote: On Sat, Jul 14, 2012 at 4:29 AM, Richard Hipp d...@sqlite.org wrote: I think (2) since that way we don't have to worry about causing accidental collisions with preexisting custom pages when we add new built-in pages

Re: [fossil-users] Custom pages: where do they belong?

2012-07-13 Thread Richard Hipp
On Sat, Jul 14, 2012 at 1:10 AM, Richard Hipp d...@sqlite.org wrote: On Fri, Jul 13, 2012 at 10:42 PM, Stephan Beal sgb...@googlemail.comwrote: On Sat, Jul 14, 2012 at 4:29 AM, Richard Hipp d...@sqlite.org wrote: I think (2) since that way we don't have to worry about causing accidental