You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Tom Karzes <tk...@pixelworks.com> on 2007/03/22 00:24:23 UTC

repository access question

I have a question about accessing old directory revisions through
a URL path that has changed and no longer exists in the latest
revision.  For example, suppose I have a directory in the repository:

    http://a/b/c/d/

Now suppose at some point I rename "c" to "c2":

    svn move http://a/b/c http://a/b/c2

Now I want to check out the old http://a/b/c/d/, but I want to use
the old URL (for example, I'm rolling back to an earlier revision
and I don't know how/where things have been moved).  Suppose
revision 123 predates this change, so I want to do:

    svn co -r 123 http://a/b/c/d my_d

The problem is that Subversion looks at the *present* version of
"b", sees no "c" under it, and complains that it doesn't exist in the
latest revision.  Well that may be true, but that's not what I'm trying
to ask.  I want it to apply the -r option to the entire URL, not just
the leaf.

Does anyone know if there's a way to do this?  At the moment,
the only way I know of is to check out all of http://a/b with -r 123,
which will include the old "c" and all of its contents, but this is
way way more than I want, and I also can't put "d" where I want
it - I have to first check out "b", then copy "d".

Note that instead of renaming "c", I might also have deleted it.

Any help would be appreciated.

Tom Karzes
tkarzes@pixelworks.com

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

Re: repository access question

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 21, 2007, at 19:39, Mark Clements wrote:

> "Tom Karzes" wrote:
> [SNIP]
>>     svn co -r 123 http://a/b/c/d my_d
>>
>> The problem is that Subversion looks at the *present* version of
>> "b", sees no "c" under it, and complains that it doesn't exist in the
>> latest revision.  Well that may be true, but that's not what I'm  
>> trying
>> to ask.  I want it to apply the -r option to the entire URL, not just
>> the leaf.
>>
>> Does anyone know if there's a way to do this?
>
> Using peg revisions, or at least that's my understanding of them  
> (never
> having used them myself...)
>
> http://svnbook.red-bean.com/en/1.1/ch07s03.html

Right. In this case, you want:

svn co http://a/b/c/d@123 my_d


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


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

Re: repository access question

Posted by Mark Clements <gm...@kennel17.co.uk>.
"Tom Karzes" <tk...@pixelworks.com> wrote in message
news:4601CCB7.7040809@pixelworks.com...
[SNIP]
>     svn co -r 123 http://a/b/c/d my_d
>
> The problem is that Subversion looks at the *present* version of
> "b", sees no "c" under it, and complains that it doesn't exist in the
> latest revision.  Well that may be true, but that's not what I'm trying
> to ask.  I want it to apply the -r option to the entire URL, not just
> the leaf.
>
> Does anyone know if there's a way to do this?

Using peg revisions, or at least that's my understanding of them (never
having used them myself...)

http://svnbook.red-bean.com/en/1.1/ch07s03.html


- Mark Clements



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