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

Oh, shoot: Issue 2591 should not have been closed

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Fri, 25 Jun 2010 08:08:14 -0400

Good morning:

This is Nico Kadel-Garcia, the person who submitted the svnadmin
hotcopy/symlink issue number 2591 in 2006. I see that it's been very
recently marked "resolved". This is not fixed in the recent 1.6.12
release, I'm sad to say.

This bug has been a pain in my backside for 4 years. Can we seriously
encourage its inclusion in 1.6.13, at least?

I've also included a somewhat more robust test script below, to verify
that the symlinks are duplicated and they point to the same place.

========================================

#!/bin/sh
#
# test-hotcopy-hardlink.sh - verify svnadmin hotcopy preservation of symlinks

REPO1=/tmp/repo1
REPO2=/tmp/repo2

rm -rf $REPO1 $REPO2 || exit 1
svnadmin create $REPO1
/bin/mv $REPO1/conf/passwd $REPO1/conf/passwd.template
ln -s $REPO1/conf/passwd.template $REPO1/conf/passwd
svnadmin hotcopy $REPO1 $REPO2
readlink $REPO1/conf/passwd
if [ ! -h $REPO2/conf/passwd ]; then
    echo "Error: svnadmin hotcopy fails to duplicate symlinks in repository"
    exit 1
elif [ "`readlink $REPO1/conf/passwd`" != "`readlink
$REPO2/conf/passwd`" ]; then
    echo "Error: svnadmin hotcopy gets symlinks wrong in repository"
    exit 1
fi
Received on 2010-06-25 14:08:55 CEST

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.