svn switch --relocate 錯(cuò)誤 The respository at '...' has uuid '...', but the WC has '...'
Posted on 2013-12-16 19:49 幻海藍(lán)夢(mèng) 閱讀(5219) 評(píng)論(1) 編輯 收藏 所屬分類: Linuxsvn switch --relocate 錯(cuò)誤 The respository at '...' has uuid '...', but the WC has '...'
使 用svn switch --relocate 改變r(jià)epository的時(shí)候可能遇 到 The respository at '...' has uuid '...', but the WC has '...',這是因?yàn)?checkout的svn 跟switch to的svn的uuid不一樣。
UID是respository創(chuàng)建時(shí)自動(dòng)生成的repo的身份id,SVN 使用UUID判斷是否為同一個(gè)repo。
解決方法,
1. 重新checkout
2. 如果本地checkout的和relocate 的repo不是同一個(gè)repo,則需要將這兩個(gè)repo的uuid設(shè)置為一樣的。當(dāng)然了,這兩個(gè)repo應(yīng)該是svnsync出來的鏡像。內(nèi)容完全一致才可以。(當(dāng)時(shí)我是export導(dǎo)出原來的庫(kù),然后再import進(jìn)新庫(kù)的,也是可以修改新庫(kù)的uuid的;)
設(shè)置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