Is there a clean way to move / to /trunk?

后端 未结 9 1695
感动是毒
感动是毒 2020-12-23 17:34

I made the mistake of creating a Subversion repository without the usual trunk, branches, and tags directories. That is, the root dire

9条回答
  •  太阳男子
    2020-12-23 18:26

    Quick example of how I did it.

    I wanted to move file:///svn/myRepo to file:///svn/myRepo/trunk

    cd /  
    svnadmin dump /svn/myRepo > my.dump  
    killall svnserve  
    sudo rm -r -f /svn/myRepo  
    svnadmin create /svn/myRepo  
    svnserve -d -r /svn  
    svn mkdir file:///svn/myRepo/trunk -m "Created trunk dir"  
    svnadmin load /svn/myRepo --parent-dir trunk < my.dump
    

提交回复
热议问题