status of SVN to Mercurial conversion tools
Jens Alfke
jens at mooseyard.com
Mon Aug 27 12:22:50 CDT 2007
On 27 Aug '07, at 9:26 AM, Marcin Kasperski wrote:
>> Moreover hgsvn has the side affect of producing a svn working copy,
>> that I do not need.
>
> find . -name .svn | xargs rm -rf
Important safety tip: That's not going to work properly if any paths
in the tree contain space characters, quotes, etc. (I happen to work
on a project that has at least one directory name with a space in it.)
This command could conceivably delete the wrong files — it was a
mistake very much like this that infamously caused one version of the
iTunes installer to delete a few people's entire disk partitions.
The safe way to do this is
find . -name .svn -print0 | xargs -0 rm -rf
or
find . -name .svn -exec rm -rf '{}' ';'
--Jens
More information about the Mercurial
mailing list