Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Changing SVN URL in Eclipse?

  • 18-03-2010 12:24PM
    #1
    Registered Users, Registered Users 2 Posts: 1,178 ✭✭✭


    Hey guys,

    Just wondering if anyone can help me here. I have a java project in Eclipse, and I need to change the URL of it's SVN repository, but can't seem to figure it out!

    My old url was e.g. svn://hello.com/someFolder/project and now i need it to be svn://hello.com/project.

    The problem is the old repository no longer exists, and i have the most recent code locally on my laptop. But I can't see how to just tell the project that the URL has changed and is now X, and to commit in there!

    Cheers


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 2,032 ✭✭✭lynchie


    Under the SVN repository view right click and select relocate.


  • Registered Users, Registered Users 2 Posts: 1,178 ✭✭✭thirtythirty


    Hi, ye I tried that but I get an error saying:

    Inter-repository relocation not allowed
    svn: The repository at 'svn://hello.com/project' has uuid '18e1c403-9d2f-8043-a022-5fd9ce1a1516', but the WC has 'b5af584c-5825-544c-bdb9-e3ab90a0b512'


    Any ideas? Thanks


  • Registered Users, Registered Users 2, Paid Member Posts: 2,032 ✭✭✭lynchie


    I can only suggest you try the svn switch --relocate command using a svn command line client to see if that sorts it.


  • Registered Users, Registered Users 2 Posts: 1,178 ✭✭✭thirtythirty


    Is there a command to make it ignore the UUID?

    I don't know anything about SVN - only just started using it, could you show me the exact command i'd have to input somewhere then?

    Thanks


  • Registered Users, Registered Users 2, Paid Member Posts: 2,032 ✭✭✭lynchie


    I'm a little lost.. Who changed the repository originally and how did they move it? I assume it was done suing a svn move command? If thats the case then just download a svn windows client (assuming ur on windows) and execute the command

    svn switch --relocate svn://hello.com/someFolder/project svn://hello.com/project


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,178 ✭✭✭thirtythirty


    Im extremely lost! It's such a c.rap system - how hard is it to just commit what you want to commit!

    I downloaded tortoise and i get the same message when i try to relocate:
    svn: The repository at 'svn://hello.com/project' has uuid '18e1c403-9d2f-8043-a022-5fd9ce1a1516', but the WC has 'b5af584c-5825-544c-bdb9-e3ab90a0b512'

    Is there no button just to say "ignore the stupid uuid and commit / overwrite what is currently in the repository"?

    What are my options? I don't want to be stuck with this on my laptop unable to commit it..? Sorry for the persistance btw!


  • Registered Users, Registered Users 2 Posts: 2,082 ✭✭✭Tobias Greeshman


    Maybe the svnadmin setuuid may be of help (assuming you've admin rights on the reposititory).

    try this link: http://stackoverflow.com/questions/1678272/tortoise-svn-relocate-to-new-repository


  • Registered Users, Registered Users 2 Posts: 1,178 ✭✭✭thirtythirty


    Ah, i think setting manual uuid should sort it!


Advertisement