Change SVN repository URL

前端 未结 4 1965
盖世英雄少女心
盖世英雄少女心 2021-01-30 03:35

My current SVN structure:

Path: .
URL: svn://someaddress.com.tr/project
Repository Root: svn://someaddress.com.tr
Repository UUID: ------------------------------         


        
4条回答
  •  你的背包
    2021-01-30 04:03

    Grepping the URL before and after might give you some peace of mind:

    svn info | grep URL
    
      URL: svn://svnrepo.rz.mycompany.org/repos/trunk/DataPortal
      Relative URL: (...doesn't matter...)
    

    And checking on your version (to be >1.7) to ensure, svn relocate is the right thing to use:

    svn --version
    

    Lastly, adding to the above, if your repository url change also involves a change of protocol you might need to state the before and after url (also see here)

    svn relocate svn://svnrepo.rz.mycompany.org/repos/trunk/DataPortal
        https://svngate.mycompany.org/svn/repos/trunk/DataPortal
    

    All in one single line of course.Thereafter, get the good feeling, that all went smoothly:

    svn info | grep URL:
    

    If you feel like it, a bit more of self-assurance, the new svn repo URL is connected and working:

    svn status --show-updates
    svn diff
    

提交回复
热议问题