single file externals cannot be deleted in working copy (trunk version)
From: Marc Haesen <Marc.Haesen_at_oneaccess-net.com>
Date: Mon, 9 Feb 2009 10:01:07 +0100
Hi,
When single file externals have been added and committed in a working
Below is a script that can be used to reproduce the problem. The script
I am using revision 35718 of trunk on windows. I am running it in the
Script:
svnadmin create repos
svn co file:///repos wc1
cd wc1
mkdir dir1
echo test > dir1\file1
svn add dir1
svn mkdir dir2
svn -m "1" commit
svn up
cd dir2
echo ../dir1/file1 file1 > externals.txt
svn propset -F externals.txt svn:externals .
cd ..
svn commit -m"2"
svn up
svn propdel svn:externals dir2
svn commit -m"3"
svn up
del dir2\file1
svn up
svn rm dir2\file1
svn st
Output:
svnadmin create repos
svn co file:///repos wc1
Checked out revision 0.
cdd wc1
mkdir dir1
echo test > dir1\file1
svn add dir1
A dir1
A dir1\file1
svn mkdir dir2
A dir2
svn -m "1" commit
Adding dir1
Adding dir1\file1
Adding dir2
Transmitting file data .
Committed revision 1.
svn up
At revision 1.
cdd dir2
echo ../dir1/file1 file1 > externals.txt
svn propset -F externals.txt svn:externals .
property 'svn:externals' set on '.'
cdd ..
svn commit -m"2"
Sending dir2
Committed revision 2.
svn up
Fetching external item into 'dir2\file1'
E dir2\file1
Updated external to revision 2.
Updated to revision 2.
svn propdel svn:externals dir2
property 'svn:externals' deleted from 'dir2'.
svn commit -m"3"
Sending dir2
Committed revision 3.
svn up
At revision 3.
del /q dir2\file1
svn up
Restored 'dir2\file1'
At revision 3.
svn rm dir2\file1
svn: Cannot remove the file external at 'dir2\file1'; please propedit or
svn st
? dir2\externals.txt
X dir2\file1
Regards,
Marc
------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.