Re: [問題] svn 更換 repo 的 location

看板Linux作者 (無價)時間17年前 (2009/02/26 14:55), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串3/4 (看更多)
※ 引述《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
把 repo 的實體資料夾整個複製到新機器上?
02/26 15:56, 1F

03/01 11:48, , 2F
我以為是先把本機記錄的 repos 換成新的,然後要commit才行
03/01 11:48, 2F
文章代碼(AID): #19fZpXIn (Linux)
討論串 (同標題文章)
文章代碼(AID): #19fZpXIn (Linux)