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

SVN switch does not update relative path externals

From: Steven Jackson <sjackson_at_mbayaq.org>
Date: Wed, 1 Apr 2009 11:39:33 -0700

----- Description -----
I'm having an issue with externals using relative paths. When I perform a switch, to switch the working copy to a branch, relative path externals still point to the old location. The only way to get the external to switch over to the new url is to 1) commit a change in the source location that the external points to and perform an update or 2) delete a file within the external path and perform an update to restore it.

----- Environment -----
# Your operating system
        Windows XP 32bit SP3
# The release and/or revision of Subversion
        1.5.6-SlikSvn-tag-1.5.6_at_36174-WIN32 and CollabNet 1.5.6
# The compiler and configuration options you built Subversion with
        Downloaded windows binaries
# Any private modifications you made to your Subversion
        none
# The version of Berkeley DB you're running Subversion with, if any
        using fsfs

----- Steps to reproduce -----
In this example, trunk contains both dir1 and dir2 + 1 file. dir1 then has svn:externals of "../dir2 dir2"

Repo_root/
   |- dir1
      |-dir2 <-- mapped via svn:externals : ../dir2 dir2
   |- dir2
      |- text.txt

C:\Development\repo_root>svn info
Path: .
URL: svn://Server/repo_root/trunk
Repository Root: svn://Server/repo_root
Repository UUID: 863d5140-6503-5249-94e9-c5988e0504c6
Revision: 3
Node Kind: directory
Schedule: normal
Last Changed Author: author
Last Changed Rev: 3
Last Changed Date: 2009-03-24 15:08:34 -0700 (Tue, 24 Mar 2009)

C:\Development\repo_root>cd dir1

C:\Development\repo_root\dir1>svn status
X dir2

Performing status on external item at 'dir2'

C:\Development\repo_root\dir1>cd dir2

C:\Development\repo_root\dir1\dir2>svn info
Path: .
URL: svn://Server/repo_root/trunk/dir2
Repository Root: svn://Server/repo_root
Repository UUID: 863d5140-6503-5249-94e9-c5988e0504c6
Revision: 3
Node Kind: directory
Schedule: normal
Last Changed Author: author
Last Changed Rev: 2
Last Changed Date: 2009-03-24 15:05:23 -0700 (Tue, 24 Mar 2009)

C:\Development\repo_root\dir1\dir2>cd ../..

C:\Development\repo_root>svn copy svn://Server/repo_root/trunk svn://Server/
repo_root/branches/branch1

Committed revision 4.

C:\Development\repo_root>svn switch svn://Server/repo_root/branches/branch1 .
At revision 4.

C:\Development\repo_root>svn info
Path: .
URL: svn://Server/repo_root/branches/branch1
Repository Root: svn://Server/repo_root
Repository UUID: 863d5140-6503-5249-94e9-c5988e0504c6
Revision: 4
Node Kind: directory
Schedule: normal
Last Changed Author: author
Last Changed Rev: 4
Last Changed Date: 2009-03-24 15:22:53 -0700 (Tue, 24 Mar 2009)

C:\Development\repo_root>cd dir1

C:\Development\repo_root\dir1>svn info
Path: .
URL: svn://Server/repo_root/branches/branch1/dir1
Repository Root: svn://Server/repo_root
Repository UUID: 863d5140-6503-5249-94e9-c5988e0504c6
Revision: 4
Node Kind: directory
Schedule: normal
Last Changed Author: author
Last Changed Rev: 3
Last Changed Date: 2009-03-24 15:08:34 -0700 (Tue, 24 Mar 2009)

C:\Development\repo_root\dir1>cd dir2

C:\Development\repo_root\dir1\dir2>svn info
Path: .
URL: svn://Server/repo_root/trunk/dir2
Repository Root: svn://Server/repo_root
Repository UUID: 863d5140-6503-5249-94e9-c5988e0504c6
Revision: 3
Node Kind: directory
Schedule: normal
Last Changed Author: author
Last Changed Rev: 2
Last Changed Date: 2009-03-24 15:05:23 -0700 (Tue, 24 Mar 2009)

Thank you,

Steven Jackson
Web Quality Assurance Engineer
Monterey Bay Aquarium
sjackson_at_mbayaq.org
www.montereybayaquarium.org
 
Celebrating 25 Years of Ocean Conservation.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1509696
Received on 2009-04-01 20:55:36 CEST

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

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