[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: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2003-08-23 19:15:12 CEST

Philip Martin <philip@codematters.co.uk> writes:
> 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.

I do believe that this is part of the very first "Greg Hudson
Problem".

We elected not to put it in the book, but perhaps we should revisit
this? Thoughts?

Anyway, it's here in the repository:

 subversion/doc/book/misc-docs/directory_versioning.xml

and if you build the misc-docs, you can read it nicely formatted.

make doc-misc-docs-html
make doc-misc-docs-pdf
make doc-misc-docs-ps

-Fitz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 23 19:16:06 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.