I haven't spent any time with the JSON API, but, a very quick thought:

It's possible for a check-in to have more than one parent. I assume you model 
that.
Would it be worth while to change "parentUuid" to "parents" for the sake of 
consistency
with the "tags" attribute?

-B 


On Wednesday, February 29, 2012 at 11:54 AM, Stephan Beal wrote: 
> On Wed, Feb 29, 2012 at 7:59 PM, Leo Razoumov <slonik...@gmail.com 
> (mailto:slonik...@gmail.com)> wrote:
> > How can I do it in a script? Referencing a parent is a fundamental DAG 
> > operation and it is missing from fossil 1.x. I hope fossil 2.0 will
> > have something to address it.
> 
> stephan@tiny:~/cvs/fossil/fossil$ f json timeline ci -n 1 -I 2
> {
>   "fossil":"affb0019c9068467a6fe7cfbc76d0ca233721be3",
>   "timestamp":1330545195,
>   "command":"timeline/ci",
>   "procTimeMs":8,
>   "payload":{
>     "limit":1,
>     "timeline":[{
>         "type":"checkin",
>         "uuid":"ef561ed0a56a45a23ebf4f1cef6abbed8c98d38d",
>         "isLeaf":true,
>         "user":"stephan",
>         "comment":"fixed mis-matched ifdef for MSVC push/pop macros in cson 
> code.",
>         "mtime":1330269600,
>         "parentUuid":"affb0019c9068467a6fe7cfbc76d0ca233721be3",
>         "tags":["trunk"]
>       }]
>   }
> }
> 
> 
> 
> Note the parentUuid property.
> 
> :-?
> 
> -- 
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
> http://gplus.to/sgbeal
> 
> _______________________________________________
> 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
> 
> 


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

Reply via email to