Posted on 2013-12-16 19:49
幻海藍夢 閱讀(5213)
評論(1) 編輯 收藏 所屬分類:
Linux
svn switch --relocate 錯誤 The respository at '...' has uuid '...', but the WC has '...'
使 用svn switch --relocate 改變repository的時候可能遇 到 The respository at '...' has uuid '...', but the WC has '...',這是因為 checkout的svn 跟switch to的svn的uuid不一樣。
UID是respository創建時自動生成的repo的身份id,SVN 使用UUID判斷是否為同一個repo。
解決方法,
1. 重新checkout
2. 如果本地checkout的和relocate 的repo不是同一個repo,則需要將這兩個repo的uuid設置為一樣的。當然了,這兩個repo應該是svnsync出來的鏡像。內容完全一致才可以。(當時我是export導出原來的庫,然后再import進新庫的,也是可以修改新庫的uuid的;)
設置uuid的方法。
a. 登陸到svn server
b. svnlook uuid /path/to/your/repo
c. svnamdin setuuid /path/to/your/repo newuuid
d. svnlook uuid /path/to/your/repo