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

Re: Updating a folder containing external files results in deleting the files

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Fri, 18 May 2012 10:14:30 +0400

2012/5/16 Daniel Morgan <m-daniel_at_apn.alpine.co.jp>:
> I am having an issue when updating a folder containing external files.
>
> TEST
> +---PRJ_A
> |    +---branches
> |    +---tags
> |    \---trunk
> |         \---FD1
> |              \---FD2
> |                   \---FD3
> |                        test.txt
> \---PRJ_B
>     +---branches
>     +---tags
>     \---trunk
>          \---FD1
>               \---FD2
>                    \---FD3
>                         test.txt
>
> svn:externals is set on PRJ_B\trunk\FD1 as:
> ^/PRJ_A/trunk/FD1/FD2/FD3/test.txt FD2/FD3/test.txt
>
> When performing an update on the PRJ_B/trunk/FD1/FD2/FD3 folder in a working copy, the test.txt file gets deleted.
> The same happens performing an update on PRJ_B/trunk/FD1/FD2.
>
> The issue does not happen performing an update on PRJ_B/trunk/FD1 or PRJ_B/trunk.
> test.txt gets updated normally as expected.
>
> I'm guessing there's an issue when updating a child folder when a parent folder contains an svn:externals property.
>
> Any help would be appreciated.
> I am using TortoiseSVN 1.7.6 on Windows XP SP3.
> The issue does not occur with the 1.6.x series.
>

I saw similar issues discussed on users_at_subversion several times
during last months, and it is not a bug. It is a feature that worked
by mistake. By "the feature" I mean including additional directories
into the filename of an external.

I cannot say authoritatively about folder externals using this feature
(you'd better look at users(at)subversion.apache.org list and maybe
recent updates to the book), but in your case of file externals it is
little wonder that it does not work.

File externals are known to be an odd beast since their birth. They
internally are implemented as a switched file. In your case "FD2/FD3"
does not belong to a working copy so it cannot contain switched files.
I do not know how it ever worked in svn 1.6.

Best regards,
Konstantin Kolinko

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2961532

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-18 08:14:37 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

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