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

Svn:externals do not set properly despite affirmative confirmation [Linux]

From: Ted Sheibar <thinkpipes_at_gmail.com>
Date: Wed, 21 Oct 2009 18:06:52 -0700

Hello,

--- PROBLEM
After creating a tag from a branch, I want to set the svn:externals property
on that tagged branch to have the contents of a file (I call the file
"ext.def").

--- SYNOPSIS
Overwriting the existing svn:externals property does not work despite
receiving the message "property 'svn:externals' set on repository revision
83966"

--- STEPS
1) Loops through each repository (there are 12) and detect (with svn pg) if
the repo has the svn:externals property set
2) If so, set svn:externals with the values from file ext.def

--- SCRIPT DETAILS

...tags get set here...

BASE="svn+ssh://server/repos"
REPS=`svn list $BASE`

for i in ${REPS}; do
        PROPS=(`svn pg "svn:externals" $BASE/$i/tag`)
        if [ $PROPS -gt 0 ]; then
                svn ps --force --revprop -r HEAD svn:externals -F ext.def
$BASE/$i/tag
        if
done

--- OUTPUT
property 'svn:externals' set on repository revision 83981
property 'svn:externals' set on repository revision 83981
...
property 'svn:externals' set on repository revision 83981

However, when I view svn:externals on one of the repos that has supposed
been changed, the externals still have their original value, NOT the new
values from ext.def

--- USER INFO
Operating system -- Linux 64-bit: 2.6.18-128.el5xen x86_64 GNU/Linux
Svn release;: 1.6.5 (server is 1.4.3)
No compilation/configuration options - used pre-packaged binary.
Using FSFS
Only 1 hook in use: Pre-revprop-change -- contains the following:

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

if [ "$ACTION" == "M" -a "$PROPNAME" == "svn:log" ]; then exit 0; fi

if [ "$ACTION" == "A" -o "$ACTION" == "M" ]; then
        if [ "$PROPNAME" == "svn:externals" ]; then
                if [ "$USER" == "me" ]; then
                        exit 0;
                else
                        echo "User $USER is not authorized to add
svn:externals."
                        exit 1;
                fi
        fi
fi

echo "$USER: Please contact your SVN Administrator ($REV, $PROPNAME,
$ACTION)" >&2

exit 1

Please let me know if this is expected behavior, as it looks like a bug.

Thanks

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2410028

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-22 03:08:06 CEST

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