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

Update needed after delete

From: McCarter Scott AUTOCHEM <Scott.McCarter_at_mt.com>
Date: 2004-04-27 15:57:09 CEST

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
Received on Tue Apr 27 15:58:06 2004

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.