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

Re: [Subclipse-users] Compare with Branch/Tag ignores revision

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-02-13 15:13:37 CET

Dave Stubbs <dave.subclipse.list@googlemail.com> wrote on 02/13/2006
06:50:43 AM:

> I tried to do a Compare With -> Branch/Tag... but got an error.
> The dialog pops up and I type in the location of the file to compare
with;
> it's been deleted in the repository head so you can't browse to it. I
type in
> a revision where the file does exist and click OK. Then an error box
pops up.
>
> The SVN console has this:
> Bad URL passed to RA layer
> svn: URL 'http://flexible/svn/repo1/trunk/directory/file.java'
non-existent in
> revision '308'
>
> Filesystem has no item
> svn: URL 'http://flexible/svn/repo1/trunk/directory' non-existent in
that revision
>
> 308 is the head revision. The revision I chose was 298. The entire
directory
> above was deleted in revision 306.
> I've confirmed that the URL is correct: I cut and pasted it after doing
a
> successful dry-run merge on the file.
>
> I take it this shouldn't happen?

Subversion supports what you want to do by passing it something called a
"Peg revision". In your case, the peg revision would be 298, since the
file still existed at that revision. This feature was added post 1.0, so
not all of the JavaHL API's have it exposed to us, although I think there
might be diff API's now where it is. Anyway, if you do not pass an
explicit peg revision, then Subversion defaults to HEAD. The second
problem, is that if the API does support peg revisions, all we can do is
infer it from what you enter, since we would not want to add fields for it
to the UI.

One thing you can try that might work, but probably will not, is to
specify the URL like this:

http://flexible/svn/repo1/trunk/directory/file.java@298

That is the command-line syntax for specifying a peg revision. I do not
think the library API supports that syntax, which is why I do not think it
will work.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Mon Feb 13 15:14:18 2006

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.