3

Lets say I have a link to svn://another/repo/tags/1.0 and the author has updated the repo to svn://another/repo/tags/1.1 how would I change my svn:externals property to point to the new repo?

I'm looking for an svn switch style, so that the new repo updates over the top.

Would a better answer be to have a branch called "live_branch" or similar, and just update this to the latest version each time?

Thanks

> svn propget svn:externals .
1.0 svn://another/repo/tags/1.0
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
  • this talks about updating relative externals: http://stackoverflow.com/questions/439666/svnswitch-doesnt-work-with-relative-svnexternal – oers Dec 22 '11 at 09:38
  • I saw that, but it doesn't help me. My externals are absolute and external. :) – Thomas Clayson Dec 22 '11 at 09:52
  • BTW: What kind of programming language are you using in this case ? Perl, PHP, Ruby, C++, Java ? – khmarbaise Dec 22 '11 at 10:01
  • The question isn't programming language related. However, the repo is for a Wordpress installation and so therefore PHP. – Thomas Clayson Dec 22 '11 at 10:04
  • I know but based on the programming language there existing different solutions for this kind of problem (PHP pear, Java Maven/Gradle etc.) etc. – khmarbaise Dec 22 '11 at 18:19

1 Answers1

6

The switch command will only change your working copy to use a different URL (trunk/branches/tags) than before...but will not automatically change the svn:externals information...

In your case that means you have to manually update the svn:externals value (change from tags/1.0 to tags/1.1) and test you software with the new state the library you are using)...after testing is finished you can checkin the new svn:externals value.

I would recommend to to something different that the tags value in your external as you mentioned as example.

I would suggest to use a thing:

lib svn://another/repos/tags/1.0

So the lib will not change after changing to another tag (e.g. 1.1) instead...

khmarbaise
  • 92,914
  • 28
  • 189
  • 235