You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Simon Large <si...@googlemail.com> on 2009/03/04 00:36:38 UTC

File externals cannot be removed

Hi folks,

Just testing the new file externals as documented in the 1.6 release
notes and I don't seem to be able to delete a file external once it is
set. This is with the TortoiseSVN nightly build commandline client,
which is built against the head of the SVN 1.6.x branch.

Windows recipe I'm afraid, but you get the idea.

set SVN="C:\Program Files\TortoiseSVN\bin\svn"
c:
cd \temp
rd /s /q repos
rd /s /q wc
svnadmin create repos
md wc
cd wc
"C:\Program Files\TortoiseSVN\bin\svn" co file:///c:/temp/repos .
:: Sorry about the fixed paths. Back to normal now.
echo hello > alpha.txt
%SVN% add alpha.txt
%SVN% ci -m "" .
%SVN% propset svn:externals "^/alpha.txt beta.txt" .
%SVN% up
%SVN% propdel svn:externals .
%SVN% up
del beta.txt
%SVN% up
cd ..

Now I have no svn:external property set, but the file external is
still there and cannot be deleted. Manual deletion fails because svn
up restores it. svn rm doesn't work for externals.

Committing after adding the svn:externals doesn't help, nor does
committing after deleting it. The only fix seems to be a fresh
checkout. Am I missing something obvious?

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net

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

Re: File externals cannot be removed

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Simon Large wrote on Wed, 4 Mar 2009 at 22:18 -0000:
> Doh! Missed the obvious one.
> 
> The subject "can't remove uncommittted added file external" is
> inaccurate; as Marc Haesen points out the removal is not possible even
> after commit.

Fixed.

> So a file external can never be removed from a working
> copy without making a fresh checkout. Not a 1.6.0 blocker, but it is
> fairly nasty behaviour.
> 

I don't like it either (I'd be happier if it was fixed).

Daniel

> Simon
> 
> 2009/3/4 Daniel Shahaf <d....@daniel.shahaf.name>:
> > Is it issue #3351?
> >
> > Simon Large wrote on Wed, 4 Mar 2009 at 00:36 -0000:
> >> Hi folks,
> >>
> >> Just testing the new file externals as documented in the 1.6 release
> >> notes and I don't seem to be able to delete a file external once it is
> >> set. This is with the TortoiseSVN nightly build commandline client,
> >> which is built against the head of the SVN 1.6.x branch.
> 
> <snip recipe>
> 
> >> Now I have no svn:external property set, but the file external is
> >> still there and cannot be deleted. Manual deletion fails because svn
> >> up restores it. svn rm doesn't work for externals.
> >>
> >> Committing after adding the svn:externals doesn't help, nor does
> >> committing after deleting it. The only fix seems to be a fresh
> >> checkout. Am I missing something obvious?
> 
> 
>

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

Re: File externals cannot be removed

Posted by Simon Large <si...@googlemail.com>.
2009/3/4 Daniel Shahaf <d....@daniel.shahaf.name>:

Doh! Missed the obvious one.

The subject "can't remove uncommittted added file external" is
inaccurate; as Marc Haesen points out the removal is not possible even
after commit. So a file external can never be removed from a working
copy without making a fresh checkout. Not a 1.6.0 blocker, but it is
fairly nasty behaviour.

Simon

> Is it issue #3351?
>
> Simon Large wrote on Wed, 4 Mar 2009 at 00:36 -0000:
>> Hi folks,
>>
>> Just testing the new file externals as documented in the 1.6 release
>> notes and I don't seem to be able to delete a file external once it is
>> set. This is with the TortoiseSVN nightly build commandline client,
>> which is built against the head of the SVN 1.6.x branch.

<snip recipe>

>> Now I have no svn:external property set, but the file external is
>> still there and cannot be deleted. Manual deletion fails because svn
>> up restores it. svn rm doesn't work for externals.
>>
>> Committing after adding the svn:externals doesn't help, nor does
>> committing after deleting it. The only fix seems to be a fresh
>> checkout. Am I missing something obvious?


-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net

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

Re: File externals cannot be removed

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Is it issue #3351?

Simon Large wrote on Wed, 4 Mar 2009 at 00:36 -0000:
> Hi folks,
> 
> Just testing the new file externals as documented in the 1.6 release
> notes and I don't seem to be able to delete a file external once it is
> set. This is with the TortoiseSVN nightly build commandline client,
> which is built against the head of the SVN 1.6.x branch.
> 
> Windows recipe I'm afraid, but you get the idea.
> 
> set SVN="C:\Program Files\TortoiseSVN\bin\svn"
> c:
> cd \temp
> rd /s /q repos
> rd /s /q wc
> svnadmin create repos
> md wc
> cd wc
> "C:\Program Files\TortoiseSVN\bin\svn" co file:///c:/temp/repos .
> :: Sorry about the fixed paths. Back to normal now.
> echo hello > alpha.txt
> %SVN% add alpha.txt
> %SVN% ci -m "" .
> %SVN% propset svn:externals "^/alpha.txt beta.txt" .
> %SVN% up
> %SVN% propdel svn:externals .
> %SVN% up
> del beta.txt
> %SVN% up
> cd ..
> 
> Now I have no svn:external property set, but the file external is
> still there and cannot be deleted. Manual deletion fails because svn
> up restores it. svn rm doesn't work for externals.
> 
> Committing after adding the svn:externals doesn't help, nor does
> committing after deleting it. The only fix seems to be a fresh
> checkout. Am I missing something obvious?
> 
> Simon
> 
>

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