本人的svn环境在MAC下,最近遇到了一些奇怪的错误,导致项目更新失败。
1.
svn: E155009: Failed to run the WC DB work queue associated with '/Users/mining/project/android', work item 9632 (file-install ruifeng_chcv/settings.gradle 1 0 1 1)
svn: E155017: Can't install '/Users/mining/project/android/ruifeng_chcv/settings.gradle' from pristine store, because no checksum is recorded for this file
解决:
miningdeiMac-3:android mining$ cd .svn (找到.svn文件并进入)
miningdeiMac-3:.svn mining$ sqlite3 wc.db "select * from work_queue"
9632|(file-install ruifeng_chcv/settings.gradle 1 0 1 1)
9633|(file-install ruifeng_chcv/gradle/wrapper/gradle-wrapper.jar 1 0 1 1)
9634|(file-install ruifeng_chcv/gradle/wrapper/gradle-wrapper.properties 1 0 1 1)
miningdeiMac-3:.svn mining$ sudo sqlite3 wc.db "delete from work_queue"
---重新更新项目,一切正常。
2.
miningdeiMac-3:lib_mipcu mining$ svn up
Updating '.':
svn: E000013: Unable to create pristine install stream
svn: E000013: Can't create temporary file from template '/Users/mining/project/android/.svn/tmp/svn-XXXXXX': Permission denied
解决:
miningdeiMac-3:lib_mipcu mining$ cd ..
miningdeiMac-3:commonLibs mining$ cd lib_mipcu
miningdeiMac-3:lib_mipcu mining$ sudo svn up(加权限)—check if you have the permission of /var/www/html/mysite/
Password:
Updating '.':
G src/main/AndroidManifest.xml
U build.gradle
Updated to revision 15183.
附:对整个文件夹加可读可写权限:
studio文件夹只读修改权限:/project/android
miningdeiMac-3:project mining$ sudo chmod -R 0777 android
3.
miningdeiMac-3:android mining$ sudo svn up ruifeng_chcv
Updating 'ruifeng_chcv':
Skipped 'ruifeng_chcv' -- Node remains in conflict
At revision 15183.
Summary of conflicts:
Skipped paths: 1
解决:
miningdeiMac-3:android mining$ svn resolved ruifeng_chcv
Resolved conflicted state of 'ruifeng_chcv'
miningdeiMac-3:android mining$ sudo svn up ruifeng_chcv
Updating 'ruifeng_chcv':
C ruifeng_chcv
A ruifeng_chcv/.idea
参考:http://www.exchangeconcept.com/2015/01/svn-e155037-previous-operation-has-not-finished-run-cleanup-if-it-was-interrupted/
(http://stackoverflow.com/questions/2406469/svn-remains-in-conflict)