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

Re: no error message if committing child of a deleted node

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 29 Jul 2011 11:52:29 +0200

On Fri, Jul 29, 2011 at 08:14:58AM +0200, Markus Schaber wrote:
> Hi, Stefan,
>
> Von: Stefan Sperling [mailto:stsp_at_elego.de]
>
> > When trying to commit a child of a deleted node, svn commit says nothing
> > and just exists with status zero.
> >
> > This surprised me, because it complains loudly about committing children
> > of copies (see http://svn.haxx.se/dev/archive-2011-07/0773.shtml).
> > Shouldn't we raise some sort of error for the delete case, too?
>
> For me, this is not as surprising. Chidren of deleted nodes are also
> deleted. And it perfectly makes sense for the server to get the
> deletion of the child without getting the deletion of the parent.
>
> But getting the addition of a copied child without getting its
> (not-yet existing) parent is a completely different thing.

Yes to all that, but why shouldn't Subversion at least point out
that "Cannot commit bar/foo because it is a child of the deleted
directory bar; you must commit bar instead"?
The structure of the local change is clearly incompatible with what
the user attempts to commit in this case.
Received on 2011-07-29 11:53:22 CEST

This is an archived mail posted to the Subversion Dev mailing list.