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

View: New views
5 Messages — Rating Filter:   Alert me  

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

by Janus Ng-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

--

Regards,

Janus Ng
System Analyst
Technical Department
Asia Vision Technology Ltd.
Tel: (852) 2319 2648 ext: 283   Fax: (852) 2319 2665


Asia Vision Technology Logo Breach of confidentiality & accidental breach of confidentiality: This email and any files transmitted with it are Confidential and intended solely for the use of the individual or entity to whom they are addressed. This message contains confidential you are not the named addressee you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited;


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

by Daniel Torreblanca :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 5, 2009 at 10:52 PM, Janus Ng <janusng@...> 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@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

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

by Daniel Torreblanca :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 6, 2009 at 12:46 AM, Daniel Torreblanca
<regulatethis@...> wrote:
> 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@90

That was supposed to be:
^/path/to/foo@90 foo

:)

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

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

by Janus Ng-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Mr. Torreblanca,

I have tried the alternative syntax as you have suggested. Unfortunately, it does not work. :(
^/path/to/foo foo@90
It is kinda strange that the old syntax works flawlessly while the new syntax doesn't. This bug holds us from merging to the new syntax.

Regards,

Janus Ng
System Analyst
Technical Department
Asia Vision Technology Ltd.
Tel: (852) 2319 2648 ext: 283   Fax: (852) 2319 2665


Asia Vision Technology Logo Breach of confidentiality & accidental breach of confidentiality: This email and any files transmitted with it are Confidential and intended solely for the use of the individual or entity to whom they are addressed. This message contains confidential you are not the named addressee you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited;


Daniel Torreblanca wrote:
On Thu, Nov 5, 2009 at 10:52 PM, Janus Ng janusng@... 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@90

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


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

by Lorenz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Janus Ng wrote:
>I have tried the alternative syntax as you have suggested.
>Unfortunately, it does not work. :(
>
>    ^/path/to/foo foo@90
>

you didn't see the correction Daniel posted 3 Minutes after the eMail
you replyed too?

That should have been:

        ^/path/to/foo@90 foo

see

 http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html

for further details
--

Lorenz

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