How to set a revision number for svn external?
Asked Answered
J

2

7

So I have this file Mobile.framework and if I do a svn propedit i get

svn propedit svn:externals

It brings up

Mobile.embeddedframework  svn+ssh://../Mobile.embeddedframework

This is pointed to the head.

I want to edit this and set it to -r1209. Whats the correct way to set it to a revision?

Jarrad answered 2/10, 2012 at 21:55 Comment(0)
M
13

Have a look at the SVN manual:

Mobile.framework svn+ssh://../Mobile.embeddedframework@100 - note the @100.

(or)

svn propedit svn:externals .

can help you edit it.

Magdeburg answered 2/10, 2012 at 22:1 Comment(1)
svn: Setting property on non-local target 'svn+ssh://../Mobile.framework' needs a base revisionJarrad
E
2
svn propset svn:externals \
Mobile.framework  svn+ssh://../Mobile.embeddedframework@1024

1024 is arbitrary :) replace it with the revision number you want to use

EDIT Then for 100 you use

svn propset svn:externals \
Mobile.framework  svn+ssh://../Mobile.embeddedframework@100

EDIT AGAIN* Oh yes, I forgot the target

svn propset . svn:externals \
Mobile.framework  svn+ssh://../Mobile.embeddedframework@100

Note, that there is a dot in the command.

Eighteenth answered 2/10, 2012 at 22:0 Comment(4)
svn: Setting property on non-local target 'svn+ssh://../Mobile.framework' needs a base revisionJarrad
Okay, I set that and commited the change. Now if I svn up,.. svn: warning: URL 'svn+ssh://../Mobile.embeddedframework@1209' at revision 1211Jarrad
Then you can delete all the contents of the Movile.framework folder and update again or execute the following command in the folder with the external definition: svn update -r1209 Mobile.frameworkEighteenth
"Because the svn:externals property has a multiline value, we strongly recommend that you use svn propedit instead of svn propset." - This is from the manual and relevant as soon as you have more than one external per directory. I recommend getting used to it and use it all times for svn:externals.Magdeburg

© 2022 - 2024 — McMap. All rights reserved.