Re: [問題] svn 更換 repo 的 location
※ 引述《tan2 (tan2)》之銘言:
: ※ 引述《Reinhard (無價)》之銘言:
: : 想請問一下 svn 當中該如何更換 repository 的 location 呢?
: : 假設我原本是用遠端連線的 A 主機 現在想改用 B 主機
: : 所以我下:
: : svn switch --relocate svn+ssh://a.host svn+ssh://another.host
: : 卻出現了下列 error msg:
: : svn: The repository at 'svn+ssh://another.host' has uuid
: : 'cff2378d-b94c-4axx-ad24-b72cb1118595', but the WC has
: : 'd2ba7d38-6098-44xx-9aab-4b219081204c'
: : 接著再打 svn info 發現 repo 的位置並沒換掉
: : 請問是什麼問題呢?
: In short, you can't use 'svn switch' to migrate between
: different repositories. You will need to checkout a new copy
: using 'svn co svn+ssh://another.host/path/to/repo'
: The reason can be found in the subversion mailing list:
: http://tinyurl.com/dmrhfu
的確不管用 在 another.host 那邊 revision 會是 0
checkout 會是空
不過根據您給的 mailing list 討論串
原本的 host 與新 host 版本必須一致
這要怎麼作到呢?
假設我在 project 底下 import 過去
那麼過去的 revision history 應該就會丟掉吧
版本又會從 1 開始算不是嗎?
我其實只是要換一台 svn server
但是希望保留 revision history
如果有除了 svn switch 以外的方法也請賜教
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.29.130
推
02/26 15:56, , 1F
02/26 15:56, 1F
→
03/01 11:48, , 2F
03/01 11:48, 2F
討論串 (同標題文章)