开发者

Browsing an SVN Repository

开发者 https://www.devze.com 2022-12-08 13:15 出处:网络
I\'m trying to browse an SVN repository without having to check it out: Is it possible to do this l开发者_如何转开发ocally (on Unix)?

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


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


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...


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

  • Windows - Tortoise SVN (http://tortoisesvn.tigris.org/): TortoiseSVN Repository Browser
  • OS X - Versions (http://versionsapp.com/)
  • Linux - Rabbit VCS (http://rabbitvcs.org/)

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消