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

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

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Thu, 22 Oct 2009 11:37:31 +1000

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

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.