You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Francois Beausoleil <fb...@users.sourceforge.net> on 2003/04/24 02:46:53 UTC

svn -r PREV:5617 URL does not work ?

Hi !

Here's what I ran:
D:\>svn --version
svn, version 0.20.1 (r5467)

D:\>svn diff -r PREV:5617 http://svn.collab.net/repos/svn
svn: A path under revision control is needed for this operation
svn: svn_client__get_revision_number: need a version-controlled path to
fetch local revision info.

Should this be happening ?  Is SVN complaining that it can't find a WC
from which to find the previous revision ?

I had no WC checked out.  I believed that SVN would just assume the
previous revision where the path had been modified.  When I ran:
D:\>svn diff -r 5616:5617 http://svn.collab.net/repos/svn

I received the diff, as expected.

I also tried to execute the first command while inside a WC, and it did
not work, reporting the same error.  If I run the same command, but
without the URL, it executes flawlessly.

This was all run on WinXP, pre-SP 1.

Thanks !
Francois
--
  Francois Beausoleil
  Developer of Java Gui Builder
  http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn -r PREV:5617 URL does not work ?

Posted by Ben Collins-Sussman <su...@collab.net>.
"Francois Beausoleil" <fb...@users.sourceforge.net> writes:

> D:\>svn diff -r PREV:5617 http://svn.collab.net/repos/svn
> svn: A path under revision control is needed for this operation
> svn: svn_client__get_revision_number: need a version-controlled path to
> fetch local revision info.
> 
> Should this be happening ?  Is SVN complaining that it can't find a WC
> from which to find the previous revision ?

Essentially, yes, that's the problem.  PREV does in fact mean "the
last revision in which the object changed", but it gets that
information by examining the entry of a wc object.  In other words, at
the moment, PREV, BASE, and COMMITTED must all be used on wc objects.

Maybe we could file an enhancement... certainly we could do an extra
network round trip to discover the last-changed-revision of a URL.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org