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

Re: Corret deletion of subdirectories of working copies?

From: Lukas Ruf <ruf_at_rawip.org>
Date: 2004-04-16 11:07:36 CEST

Erik,

please accept that I am re-introducing this thread into the subversion
mailing list.

> Erik Huelsmann <e.huelsmann@gmx.net> [2004-04-16 10:34]:
>
> >
> > Erik,
> >
> > > Erik Huelsmann <e.huelsmann@gmx.net> [2004-04-16 09:05]:
> > >
> > > > > Erik Huelsmann <e.huelsmann@gmx.net> [2004-04-16 08:18]:
> > > > >
> > [...]
> > > > > The same way you delete files locally:
> > > > >
> > > > > svn rm <directory>
> > > > >
> > > > >
> > > >
> > > > thanks a lot! I was not aware of svn rm <directory> deleting
> > > > only the local working copy. I always thought it would delete
> > > > the repository entry. Thanks!
> > >
> > > heh. but it does do that eventually (i.e. on the next commit).
> > >
> >
> > does your last statement mean, that the files in the repository
> > will be deleted the next commit?
>
> More accurate would be to say that those files will then be deleted
> from the HEAD revision in your repository. Older revisions will
> still have the files and you can still revive them.
>
> Maybe you need to describe your use-case, so that we can help you
> find a solution to what you are trying to do?
>

My problem:

    I have some repository that is about 2GB in size. For some
'strange' reasons I need to have one working copy where I have all the
files checked out. Usually, I have just my working branch.

One day, I mistakenly did a checkout of the full repository -- which
took a very long time -- on a new working machine instead of checking
out only the working branch.

The full repository layout is something like:

    2.4/trunk
    2.4/trunk_tags
    2.4/branches
    2.4/upstream
    2.4/upstream_tags

I only needed 'branches' and 'trunk' on the new box. So, I decided to
'rm -rf' the unneeded directories. But since then when I try to
commit in the 2.4 directory, svn complains with:

    uccellina:2.4!56> svn commit -m "saving"
    svn: Commit failed (details follow):
    svn: Working copy '/path/to/the/local/workingcopy/2.4/upstream' not locked

One way would be to overcome this problem would be remove the whole
mistaken checkout and checkout only the subdirectories I need, but
my question is: Can't I simply remove the directories locally without
checking out again?

Thanks -- and pardon my tedious questioning...

wbr,
Lukas

-- 
Lukas Ruf           | Wanna know anything about raw |
<http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
eMail Style Guide: <http://www.rawip.org/style.html>|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 16 11:08:04 2004

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.