Greeting,

I'm adapting the use of json for my scripts.

$fossil status
repository:   /pirate/fossil/proj/pirate/.fossil/jhgongx.fossil
local-root:   /pirate/fossil/proj/pirate/
checkout:     94a9c2b59861b0e1ab8ed98616935764e4b37c9a 2013-01-03 18:25:20
UTC
parent:       567313cbee476d006c2bea92bb8459e1d1bc5ecf 2012-09-21 17:53:09
UTC
tags:         trunk, 13ww01a
comment:      more testing (user: pirate)
ADDED      add1
ADDED      add2
EDITED     pirate.txt

with json output I do the following...

$fossil json stat
{
        "fossil":"be6756e26b9c150e9126418cc57a0fbb66079773",
        "timestamp":1360775271,
        "command":"stat",
        "procTimeMs":12,
        "payload":{
                "repositorySize":194560,
                "ageDays":201,
                "ageYears":0.550319,
                "projectCode":"d3b09ff9a105e1d1b33361b645e1e5cf12b46f18",
                "compiler":"gcc-4.1.2 20070115 (SUSE Linux)",
                "sqlite":{
                        "version":"2013-01-17 17:20:49 [38852f158a]
(3.7.16)",
                        "pageCount":190,
                        "pageSize":1024,
                        "freeList":0,
                        "encoding":"UTF-8",
                        "journalMode":"delete"
                }
        }
}


I don't get the ADDED, and EDITED files. Also EXTRAS doesn't appear to be
implemented. i.e. fossil extras

I use this as a check to determine if a commit needs to be done. can we get
ADDED, EDITED, and EXTRAS added to json output ? or is there an alternate
way to determine if we need to perform a fossil commit ?

thanks,
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to