Hi, all, for the Unix-like OS users out there (who know how to write shell scripts), this might be a tiny bit interesting (possibly too special-case, but maybe conceptually useful as a basis for one's own script)...
Here's a bash script which uses the various f-* tools (from libfossil): http://fossil.wanderinghorse.net/repos/libfossil/index.cgi/wiki?name=f-tools to check out the last N versions of a repo, runs some repo-specific bits to collect and stash some metrics for each version. The intention being to allow me to (relatively) quickly get an overview of changes in valgrind metrics for that code (a scripting engine, being basically a glorified memory manager, can greatly benefit from valgrind's advice). (Specifically, i'm trying to track down what appears to be a disturbing growth of malloc counts, but might just be a counting bug in my metrics generator or even a bug in valgrind (as two other tools disagree with vg here).) Anyway... The script: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/finfo?name=vgLastFewVersions.sh (sidebar: it was 'added' and 'commited' by libfossil, not fossil :-) Of course it could be refactored into a generic (repo-independent) script which then calls a repo-specific script to do "whatever" for each checked out version, but so far that's overkill for me. If one of you _does_ do that, please post it so i can steal it :). Happy Hacking! -- ----- 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