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

后端 未结 9 1635
感动是毒
感动是毒 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:18

    Used therefromhere's answer, which worked fine, but wanted to add the commands including the parameters, i.e. as executed on the svn server's command line:

    1. Dump your existing repository into a file:

      svnadmin dump /path/to/myrepo/ > /some/dir/myproject.svndump
      
    2. Create a new repository:

      svnadmin create /path/to/mynewrepo/
      
    3. Add the trunk/ folder and commit it, in the working copy directory:

      mkdir trunk; svn add trunk; svn commit trunk -m "Add: trunk folder"
      
    4. Load the dumpfile into the new repository using trunk as parent-dir:

      svnadmin load --parent-dir trunk /path/to/mynewrepo/ < /some/dir/myproject.svndump
      

提交回复
热议问题