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

Re: removing a directory and externals

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 08 Dec 2014 19:59:44 +0100

On 08.12.2014 13:57, Niemann, Hartmut wrote:
> Hi!
>
>
>
> I tried to remove a directory ‘xx’ which contains an “external”
> sub-workingcopy ‘the\external’.
>
> (in the WC in the explorer, using the context menu)
>
> I get an alert box
>
>
>
> Force removal
>
> >>D:\abolutepath\to\xx\the\external<< ist nicht unter
> Versionskontrolle

I assume that 'xx\the' are unversioned folders and the external is set
below those?
That's not officially supported by svn!
If you really need an external that's below the folder where you set the
property, you have to at least add the folders below to svn too.

While this worked in svn 1.6 and even partly in svn 1.7, there are now
(in svn 1.8 and on trunk) several situations where this won't work
anymore as you would expect.

So to get rid of this error (that's just one situation that doesn't work
as you expect, there are more now), please add 'xx' and 'the' to svn as
well. You can still set the property on 'to' if you like, but I
recommend to set the property on the folder where the external is.

> The folder xx
>
> contains unversioned and/or modified files(s). Do you
> want to remove it anyway?
>
>
>
> When tsvn checks a directory for deletion, it seems not to handle
> externals as it should, does it?

tsvn doesn't check itself: it calls 'svn rm' as you asked it to do, and
if that call returns an error (either SVN_ERR_UNVERSIONED_RESOURCE or
SVN_ERR_CLIENT_MODIFIED) the dialog is shown, asking you if you really
want to do this and if you say yes, TSVN sets the 'force' flag for the
'svn rm' call.

> I would expect that it checks the external, finds it clean (i. e. no
> unversioned/modified files) and removes it.

Haven't tried that, but I'm not sure if svn checks externals for
modifications.
Remember that you can not delete an external with 'svn rm' but you have
to remove the property instead.

> Could the check, whether a directory contains differences to BASE, be
> changed to recurse into externals?

You'd have to ask on the svn mailing list for that.

> (Side note: is the fact that the message is bilingual something that can
> be fixed easily?)

There are two strings here: one from TSVN (that's the one that's fully
translated) and the one the svn lib returns. Unfortunately the
translation for the svn libs are way out of date and incomplete.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest interface to (Sub)version control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3092408
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-12-08 19:59:56 CET

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.