Generating event_log for code_swarm (was: How to exactly mirror "svn log -v" ?)
Baptiste Lepilleur
blep at users.sourceforge.net
Sun Jul 13 10:51:20 CDT 2008
For those that do not know, code_swarm is a tool to visualize the history of
a project as a movie (http://vis.cs.ucdavis.edu/~ogawa/codeswarm/).
Arne, I haven't figured how to use --template to customize how each file
should be displayed (I think it may be possible with formatter, but I
haven't found any doc on this). Looking at the code, I managed to find a
solution using a custom style (did not see this in the doc, but I managed to
understand how it worked from the changelog example).
Just drop the attached file map-cmdline.code_swarm in your Templates
directory beside map-cmdline.changelog.
You can now output log in a easy to parse format by specifying code_swarm
in --style:
---
hg.exe log --style code_swarm
martinoc
1214419303 -3600
hgext/convert/cvs.py
pmezard
1215414969 -7200
hgext/mq.py
tests/test-mq-qrefresh
tests/test-mq-qrefresh.out
---
I have modified code_swarm log converter to handle this format (see
attachment). Just use -m or --mercurial-log on the command-line:
E:\prg\py\ThirdParties\Code_Swarm\codeswarm-read-only\convert_logs>python
convert_logs.py -m mercurial-hg.log
I have run this through mercurial-stable history and the movie seems to be
coherent. It is interesting though to see how at some time changes seems to
be focused on a few files or the large amount of tests being committed.
Let me know how this goes for you,
Baptiste.
----- Original Message -----
From: "Arne Babenhauserheide" <arne_bab at web.de>
To: <mercurial at selenic.com>
Sent: Friday, July 11, 2008 2:21 PM
Subject: How to exactly mirror "svn log -v" ?
---
Baptiste Lepilleur <blep at users.sourceforge.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: map-cmdline.code_swarm
Type: application/octet-stream
Size: 275 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20080713/3855af52/attachment.obj
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: convert_logs.py
Url: http://selenic.com/pipermail/mercurial/attachments/20080713/3855af52/attachment.txt
More information about the Mercurial
mailing list