On Thu, 2003-09-18 at 10:28, Ben Collins-Sussman wrote:
> This graph would be nearly impossible to produce in Subversion. The
> WinCVS graph, IIRC, shows every version of a file, and a list of every
> tag or branch that each version is part of. It's basically a visual
> representation of the RCS file format.
Attached are a couple of python scripts that I wrote a while back
but never ended up using for anything.
These scripts browse a repository that is in the standard layout
(actually, they barf if these dirs don't exist):
/tags
/branches
/trunk
They build up the copy history of each branch/tag and spit out
some "heirachical" data. The XML script spits out an xml document
that looks somewhat like:
<branch name="trunk">
<start>2001-01-01</start>
<tag name="0.1.0" rev="84"/>
<tag name="0.2.0" rev="93"/>
<tag name="0.3.0" rev="104"/>
<tag name="0.4.0" rev="125"/>
<branch name="0.4_maint"
<tag name="0.4.1" rev="129"/>
</branch>
<tag name="0.5.0"/>
</branch>
It's not ideal, and it's missing some information (such as
branch source, i.e., I wanted it to do:
<tag name="0.1.0" rev="84">
<branch name="0.1_maint" startrev="87" endrev="99">
<tag name="0.1.1" rev="93"/>
<tag name="0.1.2" rev="98"/>
</branch>
</tag>
but I never had enough time.
The "branchtograph.py" script is a copy of the above, but instead,
it spits out GraphViz "dot" files that can be passed to "dot" to
produce a graphical representation of the branches.
I stopped working on it quite some time ago, I don't think the
python API that it worked against exists any more, but it
only took a couple of hours, so probably wouldn't be too hard
for someone who knew the API well to reproduce.
daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 18 02:57:30 2003