Lets say you want to move a bunch of files out of one svn repo to another repo.
You need to remove the .svn directories from the directory hierarchy.
From a thread on another site:
Lets say ‘.svn’ directory is under a directory containing a space. For example:
# mkdir -p “a b/.svn”
Running your command will try to delete two entities called “./a” and “b/.svn”, and as you pass “-f” to “rm”, this will silently fail. To fix this use:
# find ./ -name ".svn" -print0 | Xargs -0 rm -Rf
This instructs “find” to seperate the output using a null byte (which will never occur in a filename) and also instructs xargs to expect the input to be in that format.
Thanks to the other site which got lost in the browser shuffle.
No comments:
Post a Comment