Re: [fossil-users] Fossil and Emacs

2017-10-05 Thread Venkat Iyer
Hi Paul,

Thank you for taking the initiative and the updates.   I have created a
github mirror at

https://github.com/venks1/emacs-fossil


Regards

-Venkat




On Sun, Oct 1, 2017 at 9:16 PM, Venkat Iyer <ven...@comit.com> wrote:

> Jacob,
>
> Thanks for the thanks!
>
> A lot of folks in my team have used emacs with fossil  (we're still on
> 24.5 though), and other than annotate, pretty
> much everything has worked beautifully.Since we work with large
> multi-continent repositories, our effectiveness
> using fossil inside emacs has been much better than all the previous
> scms.   pcvs (with cvstrac) and svn (with
> no web i/f) were the other ones we used before.   We haven't used GIT
> because of the ease of fossil
> installation (across continents) coupled with the built-in issue tracking.
>
> If you know of specific features in magit that are lacking in vc-fossil,
> do let us know (or file tickets on chiselapp),
> and we'll try to add it in.
>
> Regards
>
> -Venkat
>
>
> On Sun, Oct 1, 2017 at 7:19 PM, Jacob MacDonald <jaccar...@gmail.com>
> wrote:
>
>> Exciting times for Emacs and Fossil users: Thanks for your work! I dream
>> of a day where editor and VCS can interact as well as Emacs does with Git
>> via Magit.
>>
>> On Sun, Oct 1, 2017 at 2:18 PM Paul Onions <ponion...@gmail.com> wrote:
>>
>>> Hi Venkat,
>>>
>>> That was a quick response!  Good to know the project is still active.
>>> I've tested the login and it works, thanks.
>>>
>>> I'm hoping to be able contribute more to the project as I find my way
>>> around Fossil.  I have written some Emacs Lisp in other projects, and
>>> it's something I tend to dip in and out of as time and interest permits,
>>> though I would certainly not say I'm an expert!
>>>
>>> Looking forward to helping out,
>>> Paul
>>>
>>> On 01/10/17 18:01, Venkat Iyer wrote:
>>> > Hi Paul,
>>> >
>>> > I have merged your changes as a bundle into my emacs-fossil chiselapp
>>> > (is that word popular enough
>>> > to be just used as a noun?).    I have given you access rights and
>>> > I'll send your password to you
>>> > privately. If you need any help/support, please feel free to ask.
>>> >   You already sound like you know
>>> > way more than me though.
>>> >
>>> > Thanks
>>> >
>>> > -Venkat
>>> >
>>> >
>>> > On Sun, Oct 1, 2017 at 9:28 AM, Venkat Iyer <ven...@comit.com
>>> > <mailto:ven...@comit.com>> wrote:
>>> >
>>> > Hi,
>>> >
>>> > Paul/Andy.   Thanks for the update.  I own the chiselapp
>>> > repository and I wrote the first version. Thanks for the update.
>>> >  Please send me a private email with the user ID you prefer and
>>> > I'll give you check in rights.
>>> >
>>> > I haven't yet switched to emacs 25 (will do that over the holidays
>>> > this year) and was going to update the package
>>> > then.
>>> >
>>> > Also on the chat as "venks"
>>> >
>>> > I will also github this..
>>> >
>>> > Thanks
>>> >
>>> > -Venkat
>>> >
>>> >
>>> > On Sun, Oct 1, 2017 at 7:28 AM, Andy Goth <andrew.m.g...@gmail.com
>>> > <mailto:andrew.m.g...@gmail.com>> wrote:
>>> >
>>> > On 10/01/17 07:07, Paul Onions wrote:
>>> >
>>> > https://chiselapp.com/user/venks/repository/emacs-fossil
>>> > <https://chiselapp.com/user/venks/repository/emacs-fossil>
>>> > > So now I'm wondering, is this project actively
>>> > maintained anymore?
>>> >
>>> >
>>> > Try contacting avanv...@pragmatic-c.com
>>> > <mailto:avanv...@pragmatic-c.com>. That's the only email
>>> > address I could find amongst any of the repositories owned by
>>> > the same user as emacs-fossil.
>>> >
>>> > --
>>> > Andy Goth | 
>>> >
>>> > ___
>>> > fossil-users mailing list
>>> > fossil-users@lists.fossil-scm.org
>>> > <mailto:fossil-users@lists.fossil-scm.org>
>>> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/f
>>> ossil-users
>>> > <http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/
>>> fossil-users>
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > ___
>>> > fossil-users mailing list
>>> > fossil-users@lists.fossil-scm.org
>>> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>> ___
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
___
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] Fossil and Emacs

2017-10-01 Thread Venkat Iyer
Jacob,

Thanks for the thanks!

A lot of folks in my team have used emacs with fossil  (we're still on 24.5
though), and other than annotate, pretty
much everything has worked beautifully.Since we work with large
multi-continent repositories, our effectiveness
using fossil inside emacs has been much better than all the previous scms.
 pcvs (with cvstrac) and svn (with
no web i/f) were the other ones we used before.   We haven't used GIT
because of the ease of fossil
installation (across continents) coupled with the built-in issue tracking.

If you know of specific features in magit that are lacking in vc-fossil, do
let us know (or file tickets on chiselapp),
and we'll try to add it in.

Regards

-Venkat


On Sun, Oct 1, 2017 at 7:19 PM, Jacob MacDonald <jaccar...@gmail.com> wrote:

> Exciting times for Emacs and Fossil users: Thanks for your work! I dream
> of a day where editor and VCS can interact as well as Emacs does with Git
> via Magit.
>
> On Sun, Oct 1, 2017 at 2:18 PM Paul Onions <ponion...@gmail.com> wrote:
>
>> Hi Venkat,
>>
>> That was a quick response!  Good to know the project is still active.
>> I've tested the login and it works, thanks.
>>
>> I'm hoping to be able contribute more to the project as I find my way
>> around Fossil.  I have written some Emacs Lisp in other projects, and
>> it's something I tend to dip in and out of as time and interest permits,
>> though I would certainly not say I'm an expert!
>>
>> Looking forward to helping out,
>> Paul
>>
>> On 01/10/17 18:01, Venkat Iyer wrote:
>> > Hi Paul,
>> >
>> > I have merged your changes as a bundle into my emacs-fossil chiselapp
>> > (is that word popular enough
>> > to be just used as a noun?).I have given you access rights and
>> > I'll send your password to you
>> > privately. If you need any help/support, please feel free to ask.
>> >   You already sound like you know
>> > way more than me though.
>> >
>> > Thanks
>> >
>> > -Venkat
>> >
>> >
>> > On Sun, Oct 1, 2017 at 9:28 AM, Venkat Iyer <ven...@comit.com
>> > <mailto:ven...@comit.com>> wrote:
>> >
>> > Hi,
>> >
>> > Paul/Andy.   Thanks for the update.  I own the chiselapp
>> > repository and I wrote the first version. Thanks for the update.
>> >  Please send me a private email with the user ID you prefer and
>> > I'll give you check in rights.
>> >
>> > I haven't yet switched to emacs 25 (will do that over the holidays
>> > this year) and was going to update the package
>> > then.
>> >
>> > Also on the chat as "venks"
>> >
>> > I will also github this..
>> >
>> > Thanks
>> >
>> > -Venkat
>> >
>> >
>> > On Sun, Oct 1, 2017 at 7:28 AM, Andy Goth <andrew.m.g...@gmail.com
>> > <mailto:andrew.m.g...@gmail.com>> wrote:
>> >
>> > On 10/01/17 07:07, Paul Onions wrote:
>> >
>> > https://chiselapp.com/user/venks/repository/emacs-fossil
>> > <https://chiselapp.com/user/venks/repository/emacs-fossil>
>> > > So now I'm wondering, is this project actively
>> > maintained anymore?
>> >
>> >
>> > Try contacting avanv...@pragmatic-c.com
>> > <mailto:avanv...@pragmatic-c.com>. That's the only email
>> > address I could find amongst any of the repositories owned by
>> > the same user as emacs-fossil.
>> >
>> > --
>> > Andy Goth | 
>> >
>> > ___
>> > fossil-users mailing list
>> > fossil-users@lists.fossil-scm.org
>> > <mailto:fossil-users@lists.fossil-scm.org>
>> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/
>> fossil-users
>> > <http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/
>> fossil-users>
>> >
>> >
>> >
>> >
>> >
>> > ___
>> > fossil-users mailing list
>> > fossil-users@lists.fossil-scm.org
>> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
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] Fossil and Emacs

2017-10-01 Thread Venkat Iyer
Hi Paul,

I have merged your changes as a bundle into my emacs-fossil chiselapp (is
that word popular enough
to be just used as a noun?).I have given you access rights and I'll
send your password to you
privately. If you need any help/support, please feel free to ask.
You already sound like you know
way more than me though.

Thanks

-Venkat


On Sun, Oct 1, 2017 at 9:28 AM, Venkat Iyer <ven...@comit.com> wrote:

> Hi,
>
> Paul/Andy.   Thanks for the update.  I own the chiselapp repository and I
> wrote the first version.  Thanks for the update.   Please send me a private
> email with the user ID you prefer and I'll give you check in rights.
>
> I haven't yet switched to emacs 25 (will do that over the holidays this
> year) and was going to update the package
> then.
>
> Also on the chat as "venks"
>
> I will also github this..
>
> Thanks
>
> -Venkat
>
>
> On Sun, Oct 1, 2017 at 7:28 AM, Andy Goth <andrew.m.g...@gmail.com> wrote:
>
>> On 10/01/17 07:07, Paul Onions wrote:
>>
>>> https://chiselapp.com/user/venks/repository/emacs-fossil
>>> > So now I'm wondering, is this project actively maintained anymore?
>>>
>>
>> Try contacting avanv...@pragmatic-c.com.  That's the only email address
>> I could find amongst any of the repositories owned by the same user as
>> emacs-fossil.
>>
>> --
>> Andy Goth | 
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>
>
___
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] Fossil and Emacs

2017-10-01 Thread Venkat Iyer
Hi,

Paul/Andy.   Thanks for the update.  I own the chiselapp repository and I
wrote the first version.  Thanks for the update.   Please send me a private
email with the user ID you prefer and I'll give you check in rights.

I haven't yet switched to emacs 25 (will do that over the holidays this
year) and was going to update the package
then.

Also on the chat as "venks"

I will also github this..

Thanks

-Venkat


On Sun, Oct 1, 2017 at 7:28 AM, Andy Goth  wrote:

> On 10/01/17 07:07, Paul Onions wrote:
>
>> https://chiselapp.com/user/venks/repository/emacs-fossil
>> > So now I'm wondering, is this project actively maintained anymore?
>>
>
> Try contacting avanv...@pragmatic-c.com.  That's the only email address I
> could find amongst any of the repositories owned by the same user as
> emacs-fossil.
>
> --
> Andy Goth | 
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
___
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] Help messages in add.c

2017-07-14 Thread Venkat Iyer
Consider me old fashioned,  but the current behavior seems more in line with
traditional unix (read sysv) commands.   Usage is when when the user made
an error or explicitly asked for help. The question would then be:

Is "fossil cat" followed by

a) zero or more paths
b) one or more paths

I script fossil more (or use it through emacs vc) than use it command line.

I currently assume a).But it wouldn't kill me if b) became the
default.  My
scripts will have to not exec fossil for no filenames.

-Venkat





On Fri, Jul 14, 2017 at 12:56 AM, Johan Kuuse  wrote:

> On Thu, Jul 13, 2017 at 6:31 PM, jungle Boogie 
> wrote:
> > On 6 June 2017 at 06:50, Johan Kuuse  wrote:
> >> Hi,
> >>
> >> The following commands, executed without any arguments, are mute:
> >>
> >> f add
> >> f rm
> >> f delete
> >> f forget
> >>
> >> IMHO, they should show a help message instead.
> >>
> >
> > Is it desired to not do anything with the command isn't followed by a
> > filename/argument?
> >
>
> I cannot I think of any situation where it should be desired not
> showing the help message.
> It's just a matter about being coherent, either you show a help
> message, or you don't.
> An example:
>
> The file src/add.c contains both the commands 'add' and 'mv' (among
> others).
>
> fossil add
> (no output)
>
> fossil mv
> Usage: fossil mv OLDNAME NEWNAME
>
>
> Just discovered that the following commands behave the same (no help
> message):
> f cat
> f sha1
> f sha3
>
> The two last commands may read from stdin, but even so, they require
> at least 1 argument, '-'.
>
>
>
> Index: src/add.c
> ==
> --- src/add.c
> +++ src/add.c
> @@ -298,10 +298,13 @@
>if( find_option("dotfiles",0,0)!=0 ) scanFlags |= SCAN_ALL;
>
>/* We should be done with options.. */
>verify_all_options();
>
> +  if( g.argc<3 ){
> +usage("FILE...");
> +  }
>db_must_be_within_tree();
>if( zCleanFlag==0 ){
>  zCleanFlag = db_get("clean-glob", 0);
>}
>if( zIgnoreFlag==0 ){
>
>
>
>
> BR,
> Johan
>
>
> >> Best Regards,
> >> Johan
> > ___
> > fossil-users mailing list
> > fossil-users@lists.fossil-scm.org
> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
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] Broke repository using command line.

2016-10-22 Thread Venkat Iyer
Thanks for the reply Andy.   I tried to keep you anonymous ). I had to
fix
it last night.  I ended up doing this:

1. a fossil decostruct,
2. grepped through the files for +icomment,
3. deleted the file with that in it
4. fossil reconstruct
5. fossil sqlite3 hackery to restore project id
6. fossil sync into an existing mirror (to push the few hours of updates,
maybe optional)
7. fossil config pull all (to get users ticket changes etc).
8. Told everyone (who checked directly out of master db) to
8.1. fossil close -f,
8.2. fossil open  x.fossil  -keep
8.3. fossil status -sha1sum
8.4. fossil update

Then I got to ok-enough-to-go-to-sleep state.

Seems to be holding up so far.

Thanks for taking the time to reply on the chat and finding a workaround
here.   I missed cc'ing the group in my laste email.


On Sat, Oct 22, 2016 at 12:31 PM, Andy Bradford <amb-fos...@bradfords.org>
wrote:

> Thus said Venkat Iyer on Fri, 21 Oct 2016 21:39:11 -0700:
>
> > The  icomment stuff  must have  recently changed.  "User Comments"  is
> > different than  "comments". I used  to do  +comments and that  used to
> > append to the end of the ticket before. But if I do that now, it shows
> > up  *before*  the  user  comments  entered  from  the  web,  which  is
> > confusing.
>
> I don't know as  much about the ticketing system so I  don't know how it
> used  to work,  but  perhaps someone  who  uses it  can  comment on  the
> difference between comment/icomment and what they mean.
>
> > So based on  someone's advice on the  tcl chat I did  icomments. But I
> > mistakenly added a + though apparently I shouldn't have.
>
> I was  the one who  suggested using  icomment because that  ``worked for
> me'' but perhaps it was the wrong  thing to begin with. Maybe the bug is
> that +comment  doesn't do what it  used to do and  icomment shouldn't be
> used, or its use is different than expected.
>
> Apologies for misleading you and getting your repo in a bad state. :-)
>
> Thanks,
>
> Andy
> --
> TAI64 timestamp: 4000580bbeab
>
>
>
___
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] Broke repository using command line.

2016-10-21 Thread Venkat Iyer
Hi Warren,

Thanks for the reply.   No TH1 scripts, no hooks.   The only customization
is adding "assigned_to" in the ticket through the GUI.

The icomment stuff must have recently changed.   "User Comments" is
different than "comments".   I used to do +comments and that used to append
to the end of the ticket before.But if I do that now, it shows up
*before* the user comments entered from the web, which is confusing.

So based on someone's advice on the tcl chat I did icomments.   But I
mistakenly added a + though apparently I shouldn't have.

[ivenkat@a4x128-05 regs]$ fossil sql '.schema ticketchng'
CREATE TABLE ticketchng(
  -- Do not change any column that begins with tkt_
  tkt_id INTEGER REFERENCES ticket,
  tkt_rid INTEGER REFERENCES blob,
  tkt_mtime DATE,
  -- Add as many fields as required below this line
  login TEXT,
  username TEXT,
  mimetype TEXT,
  icomment TEXT
);
CREATE INDEX ticketchng_idx1 ON ticketchng(tkt_id, tkt_mtime);

Thanks

-Venkat



On Fri, Oct 21, 2016 at 9:30 PM, Warren Young <w...@etr-usa.com> wrote:

> On Oct 21, 2016, at 10:22 PM, Venkat Iyer <ven...@comit.com> wrote:
> >
> > Due to some ill-conceived advice and over-enthusiastic scripting
>
> Do you have some TH1 scripts (hooks, etc) installed?  If so, can you share
> them?
>
> > fossil ticket set e9d34a2552 +icomment "ivenkat added on 2016-10-21.18:50:20
> PDT:
> > script checked in to [1a8ae0e34f]"
> >
> > This failed with
> >
> > SQLITE_ERROR: table ticketchng has no column named +icomment
>
> Isn’t that supposed to append your string to the icomment field, not look
> for a +icomment column?
>
> What do you get from
>
>
> $ fossil sql '.schema ticketchng'
>
> > I fixed my command.   But this broke all syncs.
>
> If your other DBs were up to date except for this recent change, you could
> just copy one of those clones over and use that as the new master.  You’ll
> have to set up some things that fossil clone doesn’t copy over (e.g. user
> passwords) but it might be less trouble than fixing the broken repo.
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Broke repository using command line.

2016-10-21 Thread Venkat Iyer
Greetings,

Due to some ill-conceived advice and over-enthusiastic scripting,  I
managed to execute a command like this:

fossil ticket set e9d34a2552 +icomment "ivenkat added on
2016-10-21.18:50:20 PDT:
script checked in to [1a8ae0e34f]"

This failed with

SQLITE_ERROR: table ticketchng has no column named +icomment
fossil: table ticketchng has no column named +icomment
INSERT INTO
ticketchng(tkt_id,tkt_mtime,"+icomment",tkt_rid)VALUES(272,:mtime,..

No problem. I fixed my command.   But this broke all syncs.   A rebuild
of the db comes back with the same error:

ivenkat@a4x128-05 sdc]$ fossil rebuild
  98.0% complete...
SQLITE_ERROR: table ticketchng has no column named +icomment
fossil: table ticketchng has no column named +icomment
INSERT INTO ticketchng(tkt_id,tkt_mtime,"+icomment",tkt_rid)VALUES(...

Another DB that was sync'ing with this also fails to sync:

fossil sync
Sync with http://  
Round-trips: 1   Artifacts sent: 0  received: 2
SQLITE_ERROR: table ticketchng has no column named +icomment
fossil: table ticketchng has no column named +icomment
INSERT INTO
ticketchng(tkt_id,tkt_mtime,"+icomment",tkt_rid)VALUES(239,:mtime,'{

This is fossil version 1.35 [d8db91] 2016-01-17 22:12:21 UTC

My checkins on other sites have now halted  :O.

I tried to find where that +icomment was coming from without much success.
Any advice appreciated.   Fossil sqlite3 hackery is fine.

Thanks

 -Venkat
___
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] .svg files in .wiki, could one of embed, object or iframe be safely added to the allowed html in .wiki files?

2011-08-29 Thread Venkat Iyer

Matt,

Of late browsers allow SVGs in img tags.  And Fossil has known svg as
a mime type for quite some time.  (2010-11-07 18:42:46).  I use svgs
in fossil embedded docs all the time, though I haven't tried it in a
wiki page.

 - Venkat


-Original Message- From: Matt Welland estifo...@gmail.com
Sent: Monday, August 29, 2011 21:40:44 Subject: Re: [fossil-users]
.svg files in .wiki, could one of embed, object or iframe be safely
added to the allowed html in .wiki files?

On further researching the three possible tags (embed, object and
iframe) it appears that only iframe was specifically intended to be
secure and I'm guessing that it isn't considered safe enough for a
wiki with public access?

To be able to add svg illustrations to fossil wiki docs these are the
remaining options:

1. Use the full html option which means losing wiki bullets, lists and
paragraphing.  2. Export the svg graphics to png files which is a PITA
3. Add a build or runtime configurable option to fossil that allows
certain risky tags.

Any other suggestions?

On Mon, Aug 29, 2011 at 4:03 PM, Matt Welland estifo...@gmail.com
wrote:

The following when loaded directly by firefox showed the
LaTeX_logo.svg but when accessed as
http://localhost:8081/doc/ckout/www/AnotherExample.wiki none of
the embed, object or iframe tags were recognized.

% cat AnotherExample.wiki
h2AnotherExample/h2
embed src=./LaTeX_logo.svg type=image/svg+xml /
object data=./LaTeX_logo.svg type=image/svg+xml/object
iframe src=./LaTeX_logo.svg/iframe
h2This is to test that HTML is working/h2
  
Could one of these be safely added to the allowed html?

Matt
-=-



--
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
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] fossil add somefile.rs = Error

2011-03-28 Thread Venkat Iyer

put the filename in quotes.

-Original Message-
From: Lluís Batlle i Rossell virik...@gmail.com
Sent: Monday, March 28, 2011 22:36:10
Subject: Re: [fossil-users] fossil add somefile.rs = Error

On Mon, Mar 28, 2011 at 04:33:04PM -0400, sky5w...@gmail.com wrote:
 Hi,
 I get the following error attempting to add a file with the
 Ampersand() in the file extension.
 Fossil wrote:
 's' is not recognized as an internal or external command, operable
 program or batch file.

Isn't it your shell, telling that? '' stands for launch the left
process in background and run that of the right.
___ fossil-users mailing
list fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
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] [PATCH] Fix building with MSVC 6.0

2011-02-28 Thread Venkat Iyer

Konstantin,

Thanks.  I still build a lot of things with MSVC 6.0 (originally
because it was the last version which didn't need runtime dlls to be
installed, though I don't know if that's still true).

 - Venkat


-Original Message-
From: Konstantin Khomoutov flatw...@users.sourceforge.net
Sent: Monday, February 28, 2011 21:51:06
Subject: [fossil-users] [PATCH] Fix building with MSVC 6.0

Please consider two patches which fix building the trunk's HEAD with
MSVC 6.0.

The first patch is more of a hack -- it works around the absence of
the long long integer size modifier in that ancient compiler. I'm
not sure the patch should go in as is because, for instance sqlite3.*
source files do also have their own defines to handle 64-bit integers,
and it might worth thinking about introducing some common set of
#ifdeffery to make the solution more generic. Anyway, it works for me
in its current form.

The second patch (for win\Makefile.msc) simply enables building and
linking of shell.c -- seems like this makefile just gone out of sync
with the other Makefiles.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Trunk tip broken?

2010-10-30 Thread Venkat Iyer

Is it me or something is hosed on the trunk?

% uname -a
Linux chenab.comit.com 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:16:33 EDT 2005 
x86_64 x86_64 x86_64 GNU/Linux
% fossil version
This is fossil version [d03718ad5f] 2010-10-28 14:41:05 UTC

% fossil info
project-name: Fossil
project-code: CE59BB9F186226D80E49D1FA2DB29F935CCA0333
server-code:  c7d082adccd3388f9f4a79b06f077ffa947d5b4a
checkout: f89d953a061c5bb039d652e74f0125da7a6d2d43 2010-10-30 19:05:11 UTC
parent:   8c723318d27cc521d09aebed2a755ba4861d3f01 2010-10-29 19:06:04 UTC
child:943dbc556da998102cb8d57cc1a0efe488a4c8bd 2010-10-30 20:02:38 UTC
tags: trunk

% make
make: *** No rule to make target `src/../manifest.uuid', needed by `VERSION.h'. 
 Stop.


- Venkat
___
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] windows testing debugging help needed

2010-08-26 Thread Venkat Iyer

 From: Richard Hipp d...@sqlite.org
 
 Also, if somebody knows of a command-line ssh.exe that we can use
 (that does not require a full cygwin install) please let me know.

Would plink (that comes with putty) work?

http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter7.html#plink

 - Venkat
___
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] Fossil now uses the Simplified BSD License

2010-05-16 Thread Venkat Iyer

Thank you very much.

 - Venkat

-Original Message-
From: D. Richard Hipp d...@hwaci.com
Sent: Sunday, May 16, 2010 15:30:09
Subject: [fossil-users] Fossil now uses the Simplified BSD License

The trunk of the Fossil source tree now uses the Simplified (2-clause)  
BSD License.  Code contributions from people for whom I do not have a  
copyright release on file have been removed from the trunk and push  
privileges for those people have been revoked.

The original GPL code line continues in a branch named gpl.

D. Richard Hipp
d...@hwaci.com

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
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] Integration into Emacs Version Control

2010-05-05 Thread Venkat Iyer

 From: Gour g...@gour-nitai.com

 I'm still in the evaluating phase for Fossil, but being an Emacs
 user, I'm curious why you're integrating into VC and not DVC?
 (http://www.xsteve.at/prg/emacs_dvc/dvc.html)

Two answers.

1. I had to make it as painless as possible for my users (who
   unfortunately are more used to traditional VCS). I'm currently
   tracking fossil head with minor changes to 2 files, so it's been a
   relatively successful project for me.

2. I had never heard of dvc.  I'm sure I can make it work with fossil.
   But if the user experience is much different, then I'm not helping
   my users.

I really didn't have a choice.  I wanted fossil, my users absolutely
needed it to work with emacs vc.

Would you recommend DVC over VC?  Why?

- Venkat

___
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] Can't Pull from fossil-scm.org Anymore?

2010-01-23 Thread Venkat Iyer

Is there a workaround for this with the old client?  I have
modifications to my local fossil that I need for emacs integration and
this makes it slightly harder.  Still not a big deal.

 - Venkat


-Original Message-
From: Zed A. Shaw zeds...@zedshaw.com
Sent: Saturday, January 23, 2010 10:04:42
Subject: Re: [fossil-users] Can't Pull from fossil-scm.org Anymore?

On Sat, Jan 23, 2010 at 10:01:58AM -0800, Zed A. Shaw wrote:
 Hey,
 
 Just tried pulling the latest code from fossil-scm.org via fossil and I
 get:

Alright, found the previous email about this in the archives.  Someone
should put a nice big announce out saying we need to get the latest
binary if we want to continue tracking via fossil.

-- 
Zed A. Shaw
http://zedshaw.com/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
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] Can't Pull from fossil-scm.org Anymore?

2010-01-23 Thread Venkat Iyer

Yeah - that's what I had done, took me about half hour of hacking to
get back to the state where it was before (even using fossil-diff and
path -p0) - a lot of files have changed.  That was my slightly
harder.  Again, as I said, not a big deal for me, but might be for
others.

 - Venkat


-Original Message-
From: Zed A. Shaw zeds...@zedshaw.com
Sent: Saturday, January 23, 2010 10:25:14
Subject: Re: [fossil-users] Can't Pull from fossil-scm.org Anymore?

On Sat, Jan 23, 2010 at 10:18:25AM -0800, Venkat Iyer wrote:
 
 Is there a workaround for this with the old client?  I have
 modifications to my local fossil that I need for emacs integration and
 this makes it slightly harder.  Still not a big deal.

What you should do is go grab the binary for your platform from
fossil-scm.org.  Use the binary to get a new clone from fossil-scm.org
and do a rebuild.  Then you *should* be able to either take your changes
from your old fossil repo and merge them in, or just apply a diff from
your old repo.

-- 
Zed A. Shaw
http://zedshaw.com/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
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] --dry-run (WAS Commit failing... retyping commit message)

2009-12-09 Thread Venkat Iyer

That makes three of us who've made this request.  I asked for a fossil
-n (for -nochange, like cvs), which did everything an update did,
except for changing any files on disk.  I had two related options that
were useful:

 -v (or -verbose) to print even files that have not changed UNCHANGED 
filename

 -l (or -local)   to not do a remote pull before the run.

I'm not married to the options or their sense (e.g. -r for -remote instead).

This is required for sensible integration into emacs-23, and I have
patches for this (+ a minor change to finfo.c).

 - Venkat

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Finding out whether a file needs an update in C

2009-10-30 Thread Venkat Iyer

Not sure whether last night's post made it - it isn't there on the
archives.  I need help with one thing.  How can I figure out if a file
needs an update (meaning it has been updated in the repository, but
the version in the current dir is old).

  db_blob(uuid,SELECT uuid FROM blob, mlink, vfile WHERE 
  blob.rid = mlink.mid AND mlink.fid = vfile.rid AND 
  vfile.pathname=%B,fname);

  db_blob(latest, SELECT ci.uuid FROM mlink, blob b, event, blob ci
   WHERE mlink.fnid=(SELECT fnid FROM filename WHERE name=%B)
 AND b.rid=mlink.fid  AND event.objid=mlink.mid
 AND event.objid=ci.rid ORDER BY event.mtime DESC,
  fname);

  isLatest = strcmp(blob_str(latest),blob_str(uuid)) == 0;

That works most of the time, but is wrong. e.g. on the latest fossil
tree, www/delta1.gif shows up as isLatest == 0.  I don't understand
the schema well enough.  Anybody have ideas?


Thanks

 - Venkat

Here's the first version (2009-10-29).  I hope this mailing list
allows attachments.  I haven't quite figured out the meanings of the
tables in the schema, so have mostly done a cut and paste.

The zip has 2 file in it:

1. info.c.diffs (these are diffs into src/info.c), there's a new
   subcommand finfo.   See the comment at the beginning of the function.
   Apply the patch, and build fossil.

2. vc-fossil.el, follow instructions on the top of the file to install.

I've tested it on a small project, and the basic vc-actions are fine.
There are a few things that I'd like help with.

3. The latest detection in the -s branch is hosed.  I don't
   understand enough of the schema to make it work always.  It seems
   to work most of the time now.  Search for db_blob(latest,
   in the patch.

4. I'm not at all sure that I'm handing branches right.  

I hope that this will provide a starting point for this effort.  I
will continue to improve it as I can.  It will definitely help me
promote fossil internally, as we use emacs heavily.




___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Integration into Emacs Version Control

2009-10-28 Thread Venkat Iyer

I'm trying to integrate fossil into emacs vc
(http://www.gnu.org/software/emacs/manual/html_node/emacs/Version-Control.html).

For the *minimum* required functionality (see vc.el), I'd like to do
enhance the following fossil commands.  

1. FOSSIL STATUS

 Takes an optional first argument.

 - if called with a directory name, prints either:
- within an open checkout
- not within an open checkout.

 - if called with a filename, prints one of these strings:
- unknown, up-to-date, edited, needs-patch, needs-merge
- and a revision number (- for unknown).

2. FOSSIL CHECKOUT

 Add a -p flag.  This prints out the version of a file to
 stdout.   No files on disk are changed.

3. FOSSIL FINFO

See other posts for my intended changes.

-- Commands that will be used as existing 

% fossil ci
% fossil add
% fossil revert
% fossil diff

-

Anybody done this?  Any suggestions/objections? Another option is to
add separate commands to add this functionality.


 - Venkat







___
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] Integration into Emacs Version Control

2009-10-28 Thread Venkat Iyer

Stephan,

Thanks.  That's a good idea.  I'll just put everything into finfo for
now.  That'll hopefuly need me to change only one file.

1. fossil finfo -s|--status filename   ;# with 0 for unknown rev
2. fossil finfo -p|--print  filename ?revision?   ;# get rev to stdout.
3. fossil finfo -l|--long   filename ;# for detailed history
4. fossil filename   ;# current short history

 - Venkat

-Original Message-
From: Stephan Beal sgb...@googlemail.com
Sent: Wednesday, October 28, 2009 23:36:35
Subject: Re: [fossil-users] Integration into Emacs Version Control

On Wed, Oct 28, 2009 at 10:49 PM, Venkat Iyer ven...@comit.com wrote:


 I'm trying to integrate fossil into emacs vc
 (
 http://www.gnu.org/software/emacs/manual/html_node/emacs/Version-Control.html
 ).


:-D

   - and a revision number (- for unknown).

i would recommend using 0, which will never be a valid hash code and
doesn't require unusual special-case checks in the emacs mode parsing code
(or shell scripts for that matter).

2. FOSSIL CHECKOUT

  Add a -p flag.  This prints out the version of a file to
  stdout.   No files on disk are changed.


i don't think checkout is the right place for that, because it works on
the whole repo, not a specific file. i think finfo would be a better place:


 3. FOSSIL FINFO




 Anybody done this?  Any suggestions/objections? Another option is to
 add separate commands to add this functionality.


i looked at your code earlier. IMO, finfo sounds like the place for
the (1) and (2) functionality, though i agree that status might be
more intuitive.  When i say sounds like the place for it, i mean
mainly to avoid changing the existing functionality of status too
much (though i agree it'd probably be easier for people to find).

:)


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] History for a particular file

2009-10-20 Thread Venkat Iyer

In src/info.c, just before the finfo_page, add this code
below.  Then 

fossil finfo filename  

Gives you the change history for a file.  This is my first attempt at
doing anything inside fossil.  Suggestions welcome.

 - Venks

/*
** COMMAND: finfo FILENAME
** 
** Print the complete change history for a single file.
*/

void finfo_cmd(void){
  Stmt q;
  int vid;
  Blob dest;
  const char *zFilename;

  db_must_be_within_tree();
  vid = db_lget_int(checkout, 0);
  if( vid==0 ){
fossil_panic(no checkout to finfo files in);
  }
  if (g.argc3) {
  usage(FILENAME);
  }
  file_tree_name(g.argv[2], dest, 1);
  zFilename = blob_str(dest);
  db_prepare(q,
SELECT substr(b.uuid,1,10), datetime(event.mtime,'localtime'),
   coalesce(event.ecomment, event.comment),
   coalesce(event.euser, event.user),
   mlink.pid, mlink.fid, mlink.mid, mlink.fnid, ci.uuid
  FROM mlink, blob b, event, blob ci
 WHERE mlink.fnid=(SELECT fnid FROM filename WHERE name=%Q)
   AND b.rid=mlink.fid
   AND event.objid=mlink.mid
   AND event.objid=ci.rid
 ORDER BY event.mtime DESC,
zFilename
  );

  printf(History of %s\n, zFilename);
  while( db_step(q)==SQLITE_ROW ){
const char *zUuid = db_column_text(q, 0);
const char *zDate = db_column_text(q, 1);
const char *zCom = db_column_text(q, 2);
const char *zUser = db_column_text(q, 3);
printf(Ver %.10s by %.10s on %.10s: %s\n, zUuid, zUser, zDate, zCom );
  }
  db_finalize(q);
  blob_reset(dest);
}


___
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] History for a particular file

2009-10-20 Thread Venkat Iyer

Thanks.  Naively:

  while( db_step(q)==SQLITE_ROW ){
Blob line;
const char *zUuid = db_column_text(q, 0);
const char *zDate = db_column_text(q, 1);
const char *zCom = db_column_text(q, 2);
const char *zUser = db_column_text(q, 3);
blob_zero(line);
blob_appendf(line, %.10s by %.10s on %.10s: %s\n, zUuid, zUser, zDate, 
zCom);
comment_print(blob_str(line), 4, 72);
blob_reset(line);
  }

 - Venkat

On Oct 20, 2009, at 7:46 PM, Venkat Iyer wrote:
  while( db_step(q)==SQLITE_ROW ){
const char *zUuid = db_column_text(q, 0);
const char *zDate = db_column_text(q, 1);
const char *zCom = db_column_text(q, 2);
const char *zUser = db_column_text(q, 3);
printf(Ver %.10s by %.10s on %.10s: %s\n, zUuid, zUser, zDate,  
 zCom );
  }


Consider using the comment_print() function located in comformat.c in  
order to wrap the lines of output to no more than 79 characters per  
line.

D. Richard Hipp
d...@hwaci.com



___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users



___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users