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

AW: Cannot commit from parent after some children deleted

From: Felix Gilcher <gilcher_at_exozet.com>
Date: 2006-11-27 10:23:18 CET

Hi,

Chris Stankevitz <mailto:cstankevitz@toyon.com> schrieb am Montag, 27. November 2006 03:33:

> Hi,
>
> I have two questions about the following:
>
> 1. svn co file:///foo/trunk trunk
> 2. cd trunk
> 3. rm -rf a/ b/ c/
> 4. Make changes to x/ y/ z/
> 5. svn commit -m "Changes to x/ y/ z/"
>
> Q1: Is the above possible?

Not the way you did it.

> Q2: If not, why?

Because you need to inform subversion that the directories are deleted. Subversion keeps some required information in a hidden directory in each directory of your working copy. If you use your operating systems delete command, you remove this information as well, leaving your working copy in a broken state (the "svn: Working copy is missing or not locked" is a telltale sign that you did something like that). Every move, copy or delete in a working copy must therefore be done with the proper subversion commands (svn move, svn copy, ... - see svn help).

>
> Thank you for your help,
>
> Chris
>
> PS: I get "svn: Working copy is missing or not locked" when I try the
> above. Step 3 conserved space on my local hard drive. I do
> not intend
> to remove abc from the repository.

There is a way to get what you want: create an empty folder in your repository. Then use "svn switch trunk/a path/to/repo/empty_folder". This change will remove all files in a while still keeping the working copy in a valid state.

> I worked around this by updating
> before committing.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

regards

felix

-- 
Felix Gilcher
Head of IT Development
Exozet Berlin GmbH
Rotherstraße 20
10245 Berlin
eMail: gilcher@exozet.com
URL: www.exozet.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 27 10:26:28 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.