Browsing an SVN Repository

Svn

Svn Problem Overview


I'm trying to browse an SVN repository without having to check it out:

  • Is it possible to do this locally (on Unix)?
  • Is this possible with ssh access?

Svn Solutions


Solution 1 - Svn

svn ls works. e.g.

svn ls http://my.svnserver.com/trunk/foo

Try this on the command line:

svn ls http://svn.apache.org/repos/asf/spamassassin/trunk

Solution 2 - Svn

Use svnlook > a command-line utility for examining different aspects of a Subversion repository. It does not make any changes to the repository—it's just used for “peeking”. svnlook is typically used by the repository hooks, but a repository administrator might find it useful for diagnostic purposes. > Since svnlook works via direct repository access (and thus can only be used on the machine that holds the repository), it refers to the repository with a path, not a URL. > If no revision or transaction is specified, svnlook defaults to the youngest (most recent) revision of the repository...

Solution 3 - Svn

Depending on what platform you're on you can also use:

I find a terminal great for power use, but when you want to just see something or dig though directories, a visual version is a little bit more rewarding.

Solution 4 - Svn

Depending on the type of access you have, one of these options might be good:

svn look (as noted above) and svn info (also in the svn book: google for it) are two good command-line options. They work on the local machine if you're logged in, but they also work remotely over the network.

If the svn repository is running with a public web server, you may be able to simply browse to it using your browser, e.g. your.svn.server.com/your/svn/path.

Many svn administrators also install ViewVC (http://www.viewvc.org/). You can try browsing to your.svn.server.com/viewvc to see if you get anything.

Editing to let commenters change their mind ;)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCasebashView Question on Stackoverflow
Solution 1 - SvnMark BolusmjakView Answer on Stackoverflow
Solution 2 - SvnAndrew KeithView Answer on Stackoverflow
Solution 3 - SvnBobBrezView Answer on Stackoverflow
Solution 4 - SvnYoav ShapiraView Answer on Stackoverflow