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

Re: Switching to a specific revision

From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Wed, 13 Jan 2021 11:48:46 -0500

On Wed, Jan 13, 2021 at 10:59 AM Anton Shepelev <anton.txt_at_gmail.com> wrote:
> I want to `switch' to a location that existsed in a previous
> revision, but has since been moved. I invoke:
>
> svn switch -r 1431 ^^/Client/B1/Addons/AddCost/ --ignore-ancestry
>
> and receive:
>
> svn: E160013: '/svn/Sources/!svn/rvr/6932/Client/B1/Addons/AddCost' path not found
>
> This path is indeed not present in r6932, but it exists in
> r1431. Why does SVN try to access the later revision in
> spite of being told to use 1431?

Because '-r' tells SVN to look for that path in the HEAD revision and
then follow it back to the specified revision.

Try using a peg revision instead:

svn switch ^^/Client/B1/Addons/AddCost/@1431 --ignore-ancestry

See: http://svnbook.red-bean.com/en/1.7/svn.advanced.pegrevs.html

("Version Control With Subversion," chapter 3 "Advanced Topics,"
section "Peg and Operative Revisions")

Cheers,
Nathan
Received on 2021-01-13 17:49:10 CET

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.