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

Re: [Bug] propset svn:externals with the new 1.6 syntax does not honor the revision first.

From: Daniel Torreblanca <regulatethis_at_gmail.com>
Date: Fri, 6 Nov 2009 00:46:56 -0500

On Thu, Nov 5, 2009 at 10:52 PM, Janus Ng <janusng_at_asiavision.com.hk> wrote:
>
> Dear Developers,
>
> We have encountered a problem on using external repo with the new syntax introduced on version 1.5.
>
> For a target path no longer exists on the head revision, the svn:external fails with the new syntax. e.g.
>
> > svn rename foo bar
> A   bar
> D   foo
> >svn commit -m "renamed foo to bar"
> Adding   bar
>
> Committed revision 100.
> >cd ../baz
> #### new syntax ####
> >svn propset svn:externals -r 90 ^/path/to/foo foo
> >svn update
> A ~/svnrepo/baz/foo
> svn: external failed (details below):
> svn: URL '/svn/shared/!svn/bc/100/path/to/foo' path not found
> #### old syntax ####
> >svn propset svn:externals foo -r 90 ^/path/to/foo
> >svn update
> A ~/svn/repo/baz/foo - at revision: 90
> Updated to revision 100.
>
> The bug exists since svn 1.5 and it is still there in version 1.6.6.

I'm not _entirely_ sure on this but I think that Subversion uses a
default peg revision of HEAD for externals, and that file doesn't
exist at HEAD. Try using peg revision syntax to define your external:
^/path/to/foo foo_at_90

Daniel
20C2 D248 F235 4419 83D5 C3F4 4F9A F331 CF6A F679
http://www.bonetree.net/pgp.asc

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2414997
Received on 2009-11-06 06:47:11 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.