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

Unexpected property when replacing file in wc (svn 1.4.3)

From: Bernd Rinn <rbernd_at_gmail.com>
Date: 2007-03-26 20:42:16 CEST

 Hi,

when replacing a file in the working copy and then adding a new
property (all within the same transaction), a property set on the
original (now replaced) file is still set on the new file. This seems
to be a bug or at least quite odd behavior.

If, on the other hand, the file is replaced without setting a property
on the new file, the property of the original file will be gone (which
is what I would expect in all cases).

My version of subersion is: svn, version 1.4.3 (r23084)

Recipe to reproduce this behavior:

----
#! /bin/sh
DIR=`pwd`/ttt
if [ -e $DIR ]; then
 echo "$DIR exists"
 exit 1
fi
mkdir $DIR
cd ttt
svnadmin create repos
REPOS_DIR=$DIR/repos
svn co file://$REPOS_DIR wc
echo "test" > wc/file
svn add --no-auto-props wc/file
svn ps "prop1" "true" wc/file
svn ci -m "" wc
svn up wc
svn rm wc/file
echo "test" > wc/file
svn add --no-auto-props wc/file
# Uncomment the following line to make prop1 go away
#svn ci -m "" wc
svn ps "prop2" "true" wc/file
svn ci -m "" wc
svn pl wc/file
# Output is:
#Properties on 'wc/file':
#  prop1
#  prop2
# Would expect:
#Properties on 'wc/file':
#  prop2
cd ..
rm -fR $DIR
----
PS: I have sent this email already yesterday but since  it didn't show
up  in the mailing list archive, I assume  it got lost and thus resend
it.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 27 00:18:27 2007

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