Skip to main content

java.net migration: easy migration of local svn copy?

5 replies [Last post]
kleopatra
Offline
Joined: 2003-06-11
Points: 0

 

java.net migration forces many of us into migration of local workspace. One aspect is the migration of local copy of the svn repository. Lazy me was delighted to read about a "relocate" command in the kenai getting started page

http://java.net/projects/help/pages/GettingStartedJN

with several local copies of swingx (one per release/milestone, at least) it would be cool to be able to do it once for them all. Only, it didn't work. So here's the question (lazyness strikes again, copy of mail to community manager ;-)

Plus another technical question: is it principally possible to "relocate" the local copies of the svn repos to the new server address? Tried in Eclipse - repository browser, right-click the dev.java.net repo, choose "relocate", enter kenai svn server address - ignore strong warnings <g> - click finish. Didn't work, console output is:

switch --relocate https://swingx.dev.java.net/svn/swingx https://svn.java.net/svn/swingx~svn D:/Daten/eclipse_workspace/workspace/jlabs-swingx-162
    Inter-repository relocation not allowed
svn: The repository at 'https://svn.java.net/svn/swingx~svn/tags/swingx-1.6.2' has uuid '0c9d230a-25e3-c109-c512-ebe89bdb6cdd', but the WC has '1312f61e-266d-0410-97fa-c3b71232c9ac'

this looks like something basic has changed (which I don't really understand, it's the exact same repo, or not?). On the other hand, it might be a problem of Eclipse and/or subclips/subversion.

Any ideas?

Thanks

Jeanette

 

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08
Points: 0

For those that do a local check out, we have had the UUIDs for SwingX, the incubator, and demos updated to be the old UUID. This now means that repository relocate will work.
If any other SwingLabs projects need to have the UUIDs changed to make migration to the Kenai system easier, please let us know (soon).
Karl

kleopatra
Offline
Joined: 2003-06-11
Points: 0

thumbs up - just did the relocate and worked like a charm, it's really cool to have a single click change all 15+ versions in my local workspace :-)
Two observations that confused me at the beginning
- needs a bit of time (in the order of minutes! so go for a new coffee or snack)and Eclipse's ui isn't exactly user friendly: there's no indication it's working. Have to wait until the dialog vanishes (or an error message pops up)
- the url to relocate in the project's subversion properties is the one listed with the label "repository root": it that ends with f.i. "/trunk" then that has to be appended to the target repos url as well. The (for me) confusing part of that was that some projects in my local workspace are checked out with and some without that trunk appendix - after doing the exact same thing. Could that be project dependent? swingx doesn't, swinglabs-demos does ...
Anyway, all re-located now, the work can start again
Thanks
Jeanette

kschaefe
Offline
Joined: 2006-06-08
Points: 0

They changed the repository ID, so there is no easy way to migrate your local copy. :(
Karl

kleopatra
Offline
Joined: 2003-06-11
Points: 0

got an answer for a possible solution:
"We used svnsync to import the svn repository since getting svndumps from Collabnet will take weeks. Hence the uuid is different.

If you want to use relocate the existing WC to point to the new subversion repository, then we will need to update the uuid for swingx repository.

If the project admins/owners agree, we can do a "svnadmin setuuid" with WC's uuid."
Hope that's a viable solution - me admin agnostic can't judge <g>
Cheers (hungy now, off for a while)
Jeanette

kleopatra
Offline
Joined: 2003-06-11
Points: 0

I.N.C.R.E.D.I.B.L.E ... :-((((((
Sonya is away till Monday, let's try to get her assistant Tonya involved ...
Cheers
Jeanette