[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fossil-users
Subject:    Re: [fossil-users] C API
From:       sky5walk () gmail ! com
Date:       2012-01-07 22:20:03
Message-ID: CAFkD5vvmM-807qv_fT4Vv+SVzb67mTZXtTNjf5j63xK5=Xu5nw () mail ! gmail ! com
[Download RAW message or body]

Yes, I have been reading about the JSON work, but I prefer not to go that r=
oute.
Personally, I want to automate only the steps I use for my projects.
Check in/Check out, Merge, Compare, Commit, Inspect Leaves, etc.
I have no desire to make a grandiose do everything GUI and I tire of
using/remembering many cmd.exe scripts and their terse nature.
That said, I would appreciate some sort of delimited textual output
from fossil.exe if no C dll exists or is contemplated.
This is not me knocking a very fine product, only wishing. :)
Maybe a '-csv' option to drop the "verbose" formatting and instead
dump the command issued and the fields separated by comma or some such
character.

Verbose:
C:\>fossil ver
This is fossil version 1.20 [a75e2d2504] 2011-10-21 12:52:53 UTC
CSV:
C:\>fossil ver -csv
ver, 1.20 [a75e2d2504] 2011-10-21 12:52:53 UTC

Verbose:
C:\>fossil status
repository:   C:/myproj.fossil
local-root:   C:/
server-code:  7f322b7aa5513a42642ec74631467e8687a0ac7d
checkout:     ed680928c83de909f0bc15a674e6a312f5a04590 2012-01-07 04:57:13 =
UTC
parent:       95e0035c1ba8fb9fdf89834e3919536ce835f209 2012-01-07 04:45:45 =
UTC
merged-from:  b782ac0362b70293651565898d8f17807a3a5f3b 2011-12-20 21:51:35 =
UTC
tags:         trunk
comment:      Merged leaf b782. (user: me)
EDITED     myproj_1.txt

CSV:
C:\>fossil status -csv
status, repository:   C:/myproj.fossil, local-root:   C:/,
server-code:  7f322b7aa5513a42642ec74631467e8687a0ac7d, checkout:
ed680928c83de909f0bc15a674e6a312f5a04590 2012-01-07 04:57:13 UTC,
parent:       95e0035c1ba8fb9fdf89834e3919536ce835f209 2012-01-07
04:45:45 UTC, merged-from:  b782ac0362b70293651565898d8f17807a3a5f3b
2011-12-20 21:51:35 UTC, tags:         trunk, comment:      Merged
leaf b782. (user: me), EDITED:     myproj_1.txt

Verbose:
C:\>fossil changes
EDITED     myproj_1.txt

CSV:
C:\>fossil changes -csv
changes, EDITED:     myproj_1.txt

Like why does 'EDITED' not have a trailing ':' ?
Can the documentation explain the expected outputs?

Thanks for fossil!

On Sat, Jan 7, 2012 at 3:45 PM, Richard Hipp <drh@sqlite.org> wrote:
> What were you hoping to do with a C- or Ruby-API, assuming one existed?
>
>
> On Fri, Jan 6, 2012 at 6:20 PM, Chad Perrin <code@apotheon.net> wrote:
>>
>> On Fri, Jan 06, 2012 at 11:52:51PM +0100, Stephan Beal wrote:
>> > On Fri, Jan 6, 2012 at 11:50 PM, Chad Perrin <code@apotheon.net> wrote=
:
>> >
>> > > Is there a C API for Fossil? =A0I haven't found one yet. . . .
>> >
>> >
>> > There's no library-level API, no - it's a monolithic application. What
>> > is
>> > it you're trying/wanting to do, and maybe we can suggest an approach?
>>
>> I'm looking into writing a Ruby API, which I figured I'd base on a C API
>> if such a beast existed.
>>
>> --
>> Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
>> _______________________________________________
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
>
>
> --
> D. Richard Hipp
> drh@sqlite.org
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic