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

Re: svn rm empty-dir fails

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-08-23 02:29:20 CEST

Rene Rebe <rene.rebe@gmx.net> writes:

> svn mv A/test B/
> svn commit -m "the move breaking some mod-time?"

This commit creates a new revision of A in the repository, and makes A
out-of-date in your working copy.

> svn rm A
> svn commit -m "fails"
> Deleting A
> svn: Item is out-of-date.
> svn: Commit failed (details follow):
> svn: Item '/A' is out of date.
> svn: Your commit message was left in a temporary file:
> svn: '/tmp/scratch/svn-commit.tmp'

Lo and behold! Your working copy A is out-of-date. Run 'svn up' and
try again.

The rules are

- One may commit an add in an out-of-date directory provided the item
  added does not conflict with an item in the HEAD version of the
  directory.

- One may commit a delete of an item from an out-of-date directory
  provided the item being deleted is up-to-date.

- Neither of the above cause the working copy directory to get
  updated. To do otherwise would require commits to be able to add,
  and delete, items in the working copy.

- One cannot commit a delete of an out-of-date directory. To do so
  would allow one to delete items one did not know existed.

- One cannot commit a property modification to an out-of-date
  directory. To do so would allow one to overwrite properties one has
  not seen.

Is this in the book? It should be.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 23 02:30:11 2003

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.