[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Version tree

From: Marcus Comstedt <marcus_at_mc.pp.se>
Date: 2002-07-25 02:54:38 CEST

"Henrik Svensson" <innotron@telia.com> writes:

> Something like that. I would like to be able to make a graphical
> representation of the file versions like
> http://svn.collab.net/repos/svn/trunk/notes/guis/pics/ClearCase-lsvtree-1.gi
> f . WinCVS also have a possibility to show a graph. I guess that i can do
> some parsing of the log but that seems to be a bit primitive.

Just looking at that picture and guessing what it means, it looks to
me like you need to know three things to build it:

* For the round "version" nodes: Which revisions in which the file
  has changed (easy).

* For the square "branch" nodes: Which revisions of the file that
  have been copied/moved to other pathnames (and which those pathnames
  are). This seems to be more difficult. There is a "copyfrom_path"
  and a "copyfrom_rev" attribute in the log that gives the necessary
  info, although it points the wrong way. That can be fixed by
  requesting the entire log and reversing the links yourself of
  course. What's worse is that these attributes only seems to be
  added for moves, not for copies. Is that correct?

* For the red "merge" arcs: Which revisions of the file that have
  been merged into another path, and what path and revision it has
  been merged with. Does svn merge record any relationship between
  the two merged files at all?

  // Marcus

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 25 03:01:11 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.