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

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

    The easiest way would be to create a 'trunk' directory, then move everything else into it. You'll have to copy any properties manually, but it shouldn't be a big deal. The history is per-file, so it should remain.

    The other issue to consider is whether anybody else has the repository open. It'll be difficult to merge, so make sure everyone has their changes checked in before you do this.

    0 讨论(0)
  • 2020-12-23 18:32

    There are some gotcha's or limitations with some of the discussed approaches. The post below discusses another approach, which involves dumping the repo and editing the file paths. This has the benefit that moved files will be properly modified too.

    http://dotslashstar.blogspot.com/2011/06/svn-hack-insert-missing-trunk-root.html

    0 讨论(0)
  • 2020-12-23 18:33

    No just create a trunk folder and move all the contents of the root to it. You can do it from explorer or through the repo-browser, the history will persist.

    0 讨论(0)
提交回复
热议问题