SVN code cleanup issue

妖精的绣舞 提交于 2019-12-12 00:37:34

问题


I am using TortoiseSVN and all of the sudden I get this error when doing anything:

svn: Working copy 'root\html_editor' locked; try performing 'cleanup'

When I peform code cleanup command, I get this error:

Error performing cleanup for 'root\html_editor': svn: Error processing command 'committed' in 'root\html_editor' svn: Error replacing text-base of 'index.php' svn: Cannot read from 'root\html_editor\.svn\tmp\text-base\index.php.tmp': root\html_editor\.svn\tmp\text-base\index.php.tmp (The system cannot find the file specified)

Can anyone guide me how to resolve this issue?


回答1:


Try this:

a) Move the affected subdirectory out of the working copy -- put it somewhere else so it becomes invisible to SVN

b) cd to the root of the working copy

c) svn cleanup as necessary

d) svn update, which will recreate a clean subdirectory, with all the correct permissions.

e) Manually merge any changes to the subdirectory's files from the previously moved version. Do NOT copy back in any of the .svn control area.

f) svn diff to verify the manual merge

g) svn commit should now work, since the permissions have been fixed.




回答2:


Problems of this kind happen sometimes in tortoise svn. In the worst case you can check out a fresh copy to a new location and overwrite the files which have local changes. Could be faster than looking for a particular broken file.



来源:https://stackoverflow.com/questions/9128598/svn-code-cleanup-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!