问题
I have an SVN repository that has multiple projects inside of it, each one of those with a tags/branches/trunk structure under them like this:
Project 1
- trunk
- tags
- branches
Project 2
- trunk
- tags
- branches
This goes on for ~40 projects. What I would like to do is clean up any abandoned branches that may exist, however I do not know of a method to visualize the entire repository tree. I would really like to not have to browse through each of the branches manually if I can avoid it. Are there any stand-alone tools to accomplish this?
EDIT:I realize that TortoiseSVN, Cornerstone and similar tools do allow visual repository browsing. However, what I'm really looking for is a way to see the entire structure at once. Kind of like if you could run TortoiseSVN's revision graph against the repository itself and see all the projects fully expanded.
回答1:
svn ls -R [svn://|http://|file://]url/to/repository
回答2:
You might also look into Gource -- a pointlessly sexy OpenGL visualization for Subversion. It's particularly good for visualizing how a repo changes over time and how different contributors affect different pieces of the project.
回答3:
If you are willing to put some money into that tool and have a nice visual one, you can fisheye. Otherwise check sventon; it does the basics.
fisheye http://www.atlassian.com/software/fisheye/features/repository.jsp sventon http://sventon.org/
回答4:
The Trac product (open-source) also offers a graphical view of repositories. (among many other features)
Trac Open Source Project
Trac Source browser
回答5:
It depends on what OS you're running.
I primarily use Mac OS X, so my SVN client of choice is Cornerstone. This app does an excellent job of visualizing the structure and comments of the repository. The GUI is very slick, intuitive, and easy to use.
If you're on Windows, I don't know much about which client is the best, but I hear most people use TortoiseSVN.
回答6:
I use GUI clients to to manage my SVN repositories, but another tool that I have found really useful is WebSVN. It's a PHP based app for viewing your repository. It has a slick interface and has syntax highlighting for your source code. You can give it the parent path of your repositories so you can see which repositories are there and quickly browse through them to see what's what. It can't actually run commands on the repositories, for obvious reasons, but once you know what you want to do you can just use the command-line.
回答7:
In addition to Andrew's WebSVN suggestion, I would also recommend ViewVC. I explain to people that WebSVN is more of a bean counter's tool while ViewVC is better suited to developers seeking more detailed information in a more efficient manner. That's rather tongue-in-cheek, of course, but you'll see what I mean if you compare the two products. I have deployed both in my organization.
来源:https://stackoverflow.com/questions/1008576/is-there-a-way-to-visualize-an-entire-svn-repository