[svk-users] Item already exists in filesystem error

Seth Robertson in-svk at baka.org
Mon Sep 15 19:20:26 EDT 2008


While testing to see if svk was going to be suitable for me (answer,
no, due to overlapping mirror problem/lack of svn external support),
I ran into a few problems which I thought I would share.

----------------------------------------------------------------------
startide seth> svk --version
This is svk, version v2.0.2 (using Subversion bindings 1.5.1)
startide seth> svn --version
svn, version 1.5.1 (r32289)
----------------------------------------------------------------------

Generate failure: "Item already exists in filesystem: File already exists"
----------------------------------------------------------------------
#!/bin/sh
set -e
echo "Consider cleaning everything out with a: rm -rf ~/.svk"
mkdir svkdemo
cd svkdemo
mkdir -p package1/etc common1
echo P1L1 > package1/etc/First
echo C1L2 > common1/Second
(echo "#!/bin/sh"; echo 'cat */*') > package1/doit; chmod 755 package1/doit
for f in *; do echo $f; (cd $f; svn import -m $f svn://localhost/repos/$f); done
for f in *; do echo $f; rm -rf $f; svn co svn://localhost/repos/$f; done
mkdir SVNtree; mv [a-z]* SVNtree
svk depotmap --init
svk mirror svn://localhost/repos/package1 //trunk/package1
svk mirror svn://localhost/repos/common1 //trunk/package1/common1
svk sync --all
svk co //trunk/package1
cd package1
svk update
svk sync --all
----------------------------------------------------------------------

I get the output "Item already exists in filesystem: File already
exists: filesystem '/home/seth/.svk/local/db', transaction '4-4', path
'/trunk/package1/doit'" at the final "svk sync --all" which is bad.

This script was actually an attempt to reproduce another problem.  The
first problem I had was a checksum mismatch similar to
http://lists.bestpractical.com/pipermail/svk-devel/2007-August/001038.html.

The way I created the environment which had that error was very
similar to the steps above, but I was unable to find a way to simply
reproduce the checksum problem.

					-Seth Robertson


More information about the svk-users mailing list