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

Re: cat works with fully qualified URLs but not with relative paths

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-07-22 21:19:48 CEST

Fraser Campbell <fraser@wehave.net> writes:

> On Tuesday 22 July 2003 14:06, Ben Collins-Sussman wrote:
>
> > If you schedule a file for deletion, then commit that deletion, the
> > file no longer exists in your working copy. So you can't run svn
> > commands that ask questions about it.... it's gone.
> >
> > Instead of querying the no-longer-existent wc path, you have to query
> > the repository instead, using a URL. And you already figured out how
> > to do that.
>
> But I specified the file at a revision where it did exist.
>
> Let's say I'm at revision 14 and I do a "svn cat --revision 13 testfile", why
> should it work differently depending on whether or not the file exists in
> revision 14?

In terms of implementation, 'svn cat', and many other commands, *only*
work on URLs.

However, in an attempt to be user-friendly, we changed the UI to allow
wc-paths as well. Under the hood, we just look up the wc-path's URL
from the .svn/entries file.

So 'svn cat nonexistent-path' currently fails, because there's no wc
object, and thus no URL metadata.

Karl makes a good suggestion: try to append the wc-path to parent's
URL. It would make things nicer.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 22 21:22:22 2003

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

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