tags:

views:

138

answers:

4

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?
+3  A: 

use svnlook

Andrew Keith
svnlook tree seems to do the trick, with the -N argument for when you only want to see one level
Casebash
+4  A: 

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
z5h
I guess it depends on the meaning of "browse". If you simply want to look at the directories and file names, svn ls will suffice. Try the command I posted above.
z5h
I agree - svn ls works fine for me - there is no need to check out the workspace to do that. I am not sure though if any other functionality is required when you say "browse" a repository.
Critical Skill
Can you do svn ls on a repository? I tried and it didn't work
Casebash
Yes. Subversion can connect over several protocols file:// http:// https:// svn://. But you may have a version that does not have support for all protocols compiled in, or a required library cannot be found. For example, libneon is required for http/https and it requires openssl for https. So If you're missing those you'll have a problem with those protocols.Did you try the exact command I posted above against the Apache repository? If that failed (it works for me) you should probably tell us the error message you're getting.
z5h
+2  A: 

Depening on what platform you're one you can also use:

I find using a terminal is 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.

Bob Breznak
Useful. I will consider checking those out if I need to do more browsing in the future
Casebash
+2  A: 

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 ;)

Yoav Shapira
Sorry, I accidentally downvoted you while using this site on my iPhone. Stackoverflow doesn't let you change your vote (stupid "feature" I think) unless the author modifies their comment. Modify it (add a space or something) and I'll vote it back up.
z5h
Edited -- thanks ;)
Yoav Shapira