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

WC-NG corruption (w/ recipe script) ?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Fri, 05 Mar 2010 12:21:39 -0500

Running this script with a recent trunk results in what appears to be a
working copy corruption:

   ...
   subversion/libsvn_subr/sqlite.c:203: (apr_err=200030)
   svn: constraint failed
   subversion/libsvn_subr/sqlite.c:505: (apr_err=200030)
   svn: columns wc_id, local_relpath are not unique

-------------------[ delete-replace-fudgery-recipe.sh ]-------------------
#!/bin/sh
SVNADMIN=svnadmin
SVN=svn

rm -rf drf-repos drf-wc
$SVNADMIN create drf-repos
$SVN co file://`pwd`/drf-repos drf-wc
mkdir -p drf-wc/dir/subdir1
mkdir -p drf-wc/dir/subdir2
touch drf-wc/dir/file1
touch drf-wc/dir/file2
touch drf-wc/dir/subdir1/subfile1
touch drf-wc/dir/subdir1/subfile2
$SVN add drf-wc/dir
$SVN ci -m "Commit stuff." drf-wc
$SVN rm drf-wc/dir/subdir1 --keep-local
rm -rf drf-wc/dir/subdir1
touch drf-wc/dir/subdir1
$SVN add drf-wc/dir/subdir1
rm drf-wc/dir/subdir1
$SVN up drf-wc
$SVN rm drf-wc/dir/subdir1 --keep-local
echo "Uh-ohs!"

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2010-03-05 18:22:16 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.