On Thu, Oct 22, 2009 at 11:06 AM, Ted Sheibar <thinkpipes_at_gmail.com> wrote:
> 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
>
>
'svn:externals' is not a revision property, so the use of the --revprop and
-r switches here is incorrect. I don't think that "svn propset" can be used
with versioned properties via URLs, either (although I could be wrong here),
so you'll probably need to checkout a working copy to do this.
I think the bug here is that "svn propset" displays the "property set"
message, when I would be expecting an error.
<snipped />
Cheers,
Daniel B.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2410033
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-22 03:38:49 CEST