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

Pruned dir trees in the working copy: How to fix?

From: Kalin KOZHUHAROV <kalin_at_thinrope.net>
Date: 2006-01-18 01:45:40 CET

Hi all,

Recently I have run quite a few times into a problem when a whole tree is
pruned from the working directory:


`-- dir1
    |-- dir2
    | |-- file0
    | |-- file1
    | |-- file2
    | |-- file3
    | `-- file4
    |-- file0
    `-- file1

Now if some process does `rm -rf treeA/dir1/dir2 && mkdir treeA/dir1/dir2`,
the appropriate .svn directory is gone but a dir with the same name is
present. When I try to update everything is locked and I cannot do anything
except checkout to a new place and manually copy only the files to each
respective directory, being cautious not to skip newly created dirs and to
`svn delete` ones that are not present.

Imagine a pruned tree of 5 levels and hundred files? Not fun.
I am on the verge of trying to bake a custom script for this, as the logoc
seems clear to me, but decided to ask first:

Is there any "good way" out of this situation, sort of rewriting the thing
that simply purges the tree?

Will WebDAV help here? (i.e. if such a tree was WebDAV mount; never played
with that, no idea what it is)

The last time I run into this problem, I was trying to update some Firefox
extensions and my profile is kept under subversion, so yes it is a real
world example.


|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 18 02:33:39 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.