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

Re: Create a new working copy by cloning a subtree of an existing working copy?

From: Kuno Meyer <kuno.meyer_at_gmx.ch>
Date: Thu, 22 Dec 2011 21:41:39 +0000 (UTC)

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
Received on 2011-12-22 22:42:29 CET

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.