[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: Tue, 24 Mar 2009 15:42:59 -0700

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 and perform an update or 2) delete a file within the external path and perform an update to restore it.

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

----------------- Example -------------------
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
886 Cannery Row
Monterey CA 93940
(831) 647-6866
sjackson_at_mbayaq.org
www.montereybayaquarium.org
 
Celebrating 25 Years of Ocean Conservation.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1406722

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-25 00:34:00 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.