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

Re: Cannot commit from parent after some children deleted

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-27 20:58:08 CET

On Nov 26, 2006, at 20:33, Chris Stankevitz wrote:

> 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?
> Q2: If not, why?

It's possible:

svn commit -m "Changes to x/ y/ z/" x y z

> 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. I worked around this
> by updating before committing.

If that is your goal, then do not "rm -rf a/ b/ c/"; as you see, this
confuses Subversion because you've removed administrative directories
it thinks it has control over. Instead, switch them to an empty
directory in the repository, which can be created for just this purpose.

svn mkdir file:///foo/empty -m "Making empty directory for use with
switching"
svn co file:///foo/trunk trunk
cd trunk
svn switch file:///foo/empty a
svn switch file:///foo/empty b
svn switch file:///foo/empty c

Then you should have no problem.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 27 21:00:34 2006

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