[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: NPE in Resource History log browsing

From: Mark Phippard <MarkP_at_softlanding.com>
Date: 2005-08-17 15:52:13 CEST

Tobias Sager <moixa@gmx.ch> wrote on 08/17/2005 09:46:02 AM:

> Oh, cool! It works now. The problem was a wrong repository root url.
>
> I had defined:
> <snip>
> Repository url: http://nothere/svn/repos
> Repository root url: http://nothere/svn
> <snip>
>
> When I switch the repository root url to http://nothere/svn/repos it
> works. Of course this is correct (and always has been).
>
> What's the difference between the root url and the normal repository url
> then?

If you defined your root URL as your URL, then nothing. Take the
Subclipse repository as an example. The root URL is:

http://subclipse.tigris.org/svn/subclipse

When defining the connection in Subclipse, that is the URL I would
typically enter. However, many people like to enter the URL to a specific
project in the repository. If you have a big repository, like the Apache
repository, this can really save performance. So if I only wanted to work
on Subclipse, I might enter the URL as:

http://subclipse.tigris.org/svn/subclipse/trunk/subclipse

In which case, the root URL is still the previous value.

We use the root URL in this log function because it will always give us
the changed paths for a revision. For example, this command will always
work:

svn log -rXXX http://subclipse.tigris.org/svn/subclipse

But this command will fail if the path specified by the URL did not exist
at revision XXX.

svn log -rXXX
http://subclipse.tigris.org/svn/subclipse/branches/subclipse-3/core

We also use the root URL for a few other things such as calculating the
url_short decorator.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Wed Aug 17 23:52:13 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.