Re: svn-load under windows
From: Liviu <lab2k1_at_gmail.com>
Date: Tue, 10 Jun 2008 02:22:52 -0500
From: "Liviu" Sent: Fri, June 06, 2008 2:08 PM
A few notes below which someone may find helpful if trying to run svn-load
1. Life is easier if svn-load is given a .py extension.
2. Svn-load doesn't cleanup the working copy (absent --wc).
shutil.rmtree(workingparent)
with
shutil.rmtree(workingparent, onerror = shutil_rmtree_retry)
where
S_IRWXX = stat.S_IREAD | stat.S_IRGRP | stat.S_IROTH \
def shutil_rmtree_retry(fn, path, excinfo):
Same issue exists in test.py, same fix works there.
The rest of the notes below refer to test.py alone...
3. Symlink tests fail under OSs which don't support such.
try:
4. The local file:/// protocol requires 3 slashes in windows.
5. Unix paths like '/usr/bin/svnadmin' need to be adjusted. One possibility
subprocess.call(["svnadmin.exe", "create", repo])
for native .exe's, or else for .py's
subprocess.call(["svn-load.py", self.url, self.idir, ldir,
6. Cleanup leaves directories behind, due to a handle leak from
h, self.movemap = tempfile.mkstemp()
7. The move-map syntax is OS dependent, for windows the given example should
f.write("^src\\\\(?P<filename>.+\.(gif|jpg|png))$ "
The above are not meant (nor submitted) as a formal patch, sorry, don't have
Enjoy,
---------------------------------------------------------------------
|
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.