Mark Phippard <markphip <at> gmail.com> writes:

> > With SVN 1.7, is there a way to create a new working copy by cloning a
> > subtree of an existing working copy?
> >
> 
> See:  
> http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/detach.py

Thanks. My tests show that the prominently placed comment "This script is
unfinished and not ready to be used on live data. Trust us." is indeed true.

My feedback:

1) There are Windows filesystem issues: os.path.* converts most paths to
backslashes, whereas wc.db expects forward slashes. In addition, things fail
badly (and much too late) if casing is incorrect.

2) The elimination of unneeded pristines didn't seem to work for me, I always
ended up with a full clone of the /.svn/pristine folder. However, it might be
that 'migrate_pristines()' is similarly prone to the Windows filesystem issues
(in path comparisions and string matching) like 'migrate_sqlite()', where I had
do some hackish changes.

As conclusion, I fear that 'detach.py' is not in a state ready for us to be used
in production environment, and that I have to fall back to some other caching
mechanism.

Regards,
Kuno

Reply via email to