tags:

views:

2875

answers:

4

Are you aware of any tool that creates diagrams showing the branch/merge activity in a SVN repository?

We've all seen these diagrams in various tutorials. Some good, some not so good. Can they be created automatically (or maybe with a little prodding -- you might have to tell it what if your branching philosophy is dev-test-prod, branch-per-release, etc.)

I'm looking at the TortoiseSVN Revision Graph right now, but it has more detail than I want and the wrong layout. I'm looking for something more like the images in this article.


Orion, thanks for the response. I guess since branching and merging are more a convention for managing files in a repository than a "built in feature of SVN, it would be pretty tough. I'll stick with the poorly-drawn diagram at the top of the whiteboard in our team's office.

+1  A: 

prior to SVN 1.5 (which has been out all of a month or so), it didn't track merges at all, so the bits where branches 'reconnect' to the trunk are impossible for it to do anyway

Orion Edwards
+1  A: 

Well, you can use git and git-svn. First, clone your SVN repository into a Git repository, like this:

git svn init "http://host/repo/location/trunk"

Then, use the command:

gitk --all

From there, you'll see a nice graph of the revision history. Of course, this assumes you have git and git-svn set up correctly and are comfortable on the command line.

One of the benefits of tracking source through Git is that the merging history is tracked through content modification, not chronological order or branch name. Therefore, it doesn't matter if your SVN repository has no merging history.

If the gitk revision graph isn't sufficient, you may be able to pull the repo history from Git directly and make your own graph.

m104
+4  A: 

Have a look at this : http://subclipse.tigris.org/graph.html

This is a separate item in the Subclipse (Subversion plugin for Eclipse) project as it has more requirements that the standard Subclipse install.
Steven Hepting
Also, it works best with single files rather than full directories or repositories.
Steven Hepting
+8  A: 

Check this out: http://svnmapper.tigris.org/

Rolle
This is a Windows application and seems to be the closest to what you are looking for.
Steven Hepting