You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Steven Jackson <sj...@mbayaq.org> on 2009/04/01 18:39:33 UTC

SVN switch does not update relative path externals

----- 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@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@mbayaq.org
www.montereybayaquarium.org
 
Celebrating 25 Years of Ocean Conservation.

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


Re: SVN switch does not update relative path externals

Posted by "C. Michael Pilato" <cm...@collab.net>.
C. Michael Pilato wrote:
> Steven Jackson wrote:
>> ----- 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.
> 
> I can confirm this is a bug.  I'll take care of filing an issue for it.

Issue 3390 - http://subversion.tigris.org/issues/show_bug.cgi?id=3390

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

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

Re: SVN switch does not update relative path externals

Posted by "C. Michael Pilato" <cm...@collab.net>.
Steven Jackson wrote:
> ----- 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.

I can confirm this is a bug.  I'll take care of filing an issue for it.

> Steven Jackson
> Web Quality Assurance Engineer
> Monterey Bay Aquarium

Mm... love the Monterey Bay Aquarium...

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

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