On Sat, Aug 30, 2014 at 8:41 AM, Stephan Beal <sgb...@googlemail.com> wrote:

> Out of curiosity's sake, i went ahead and used the various existing pieces
> to create a standalone mini-timeilne application (to see if any needed
> parts are missing). It's entire implementation:
>

And here it is with file listing support (the query for that is more than
half the script):

http://fossil.wanderinghorse.net/repos/libfossil/index.cgi/finfo?name=s2/timeline.s2

[stephan@host:~/cvs/fossil/libfossil/s2]$ ./timeline.s2 -- -files
checkin  5760ed07f8 @ 2014-08-30 07:49:11 by stephan
more work on the fsl/db/repo-related modules, added basic timeline app impl
in s2.
File         UUID             Size Name
modified     cf89296325        948 s2/require.d/fsl/db/repo.s2
added        e98a662a0f        557 s2/require.d/fsl/db/repoOrCheckout.s2
added        36d477a597       2624 s2/timeline.s2
...

the app is based off of a require.js-like model, and the storage for the
scripts (e.g. filesystem vs db vs compiled into the C code) is abstracted
away from the user. This makes it possible to use the various pieces of
that in both CLI or CGI apps (or anything in between, for that matter,
though there are not many words in between CG and CL ;).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
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