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

Re: delete dir shows deleted files

From: Brad Kittenbrink <brad_at_windwardmark.net>
Date: 2006-08-18 18:31:20 CEST

Martin Furter wrote:
> Hello
> Today I moved some files around and deleted the dir which contained
> the files. Deleting the directory showed the deleted files inside
> again as deleted. I'd have expected them to not show up again.
> Is this a bug ?
> Martin

I am not a subversion developer, but I don't think so. Deleting
directories shows all files in the directory as deleted. It is
independent of whether or not you deleted them before. I think this is
intentional to provide extra safety to prevent you from not noticing
when you're deleting things. For example, compare this modified version
of your script:



# initialize:
# create repos and wc, then add the following tree:
# a/
# a/file1.txt
# a/file2.txt
# b/
svnadmin create repos
svn co file://$PWD/repos wc
cd wc
svn mkdir a
svn mkdir b
echo "hello" > a/file1.txt
svn add a/file1.txt
echo "hello" > a/file2.txt
svn add a/file2.txt
echo "hello" > a/file3.txt
svn add a/file3.txt
svn ci -m "initialize"

# do a delete and a move
echo ""
echo "delete and move"
echo ""
svn rm a/file1.txt
svn mv a/file2.txt b

# show status
echo ""
echo "status before delete dir"
echo ""
svn st

# now delete the dir a
echo ""
echo "delete dir"
echo ""
svn rm a

# show status
echo ""
echo "status after delete dir"
echo ""
svn st

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 18 18:33:18 2006

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.