You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by McCarter Scott AUTOCHEM <Sc...@mt.com> on 2004/04/27 13:57:09 UTC
Update needed after delete
An extra update seems to be needed to delete a directory after deleting the
contents.
A simple recipe for this is as follows:
First, set up the experiment:
SVN mkdir foo
cd foo
<create> bar.txt
SVN add bar.txt
cd ..
SVN commit
Next, get rid of the file in the directory:
cd foo
SVN delete bar.txt
cd ..
SVN commit
Now try to get rid of the now empty foo directory
SVN delete foo
SVN commit
The commit will fail, saying that the directory foo is not up to date.
Doing a SVN update doesn't show any changes, but after that the commit will
work.
I originally found this problem when reorganizing my source tree with SVN
move commands and the trying to prune out empty directories.
In my opinion the commit should leave the directory foo in a state where it
doesn't need to be updated.
I'm using version 1.0.2 on Windows XP.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Update needed after delete
Posted by Ben Collins-Sussman <su...@collab.net>.
On Tue, 2004-04-27 at 08:57, McCarter Scott AUTOCHEM wrote:
> The commit will fail, saying that the directory foo is not up to date.
> Doing a SVN update doesn't show any changes, but after that the commit will
> work.
You cannot delete a directory unless its working revision == HEAD.
This is one of the 2 documented limitations of mixed-revision working
copies.
It's documented in the book here:
http://svnbook.red-bean.com/svnbook/ch02s03.html#svn-ch-2-sect-3.4
And it's also in our FAQ:
http://subversion.tigris.org/project_faq.html#wc-out-of-date
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org