SVN how upgrade working copy

心已入冬 提交于 2019-12-07 15:46:31

问题


I use STS for working with SVN. When I try upgrade (version 1.6) I received this error:

org.apache.subversion.javahl.ClientException: Invalid operation on the current working    directory
svn: Can't upgrade 'C:\..... as it is not a pre-1.7 working copy directory

Can't find an entry svn: Missing default entry But is sure that missed - I have add new folder. How it can be resolved? Thanks.


回答1:


You try to upgrade already 1.7 (WC-NG) working copy. But upgrade needed only once for 1.6 WC




回答2:


I know this question is quite old, but for people who stumble upon it like I did and are still having problems, there is one gotchya that you should be aware of: This command will fail if not run from the working copy root. In my case, I was in a sub-folder and received the error message:

svn: E155019: Can't upgrade '<path_to_sub_folder>' as it is not a pre-1.7 working copy root, the root is '<my_working_copy_root>'

Simply change to the working copy root and issue the previously mentioned

svn upgrade

All should be well, then.




回答3:


Carefully read the error message, for within it is contained the name of a sub-folder in your working copy that has not been upgraded for 1.7 usage. Henceforth, upgrade that specific folder:

svn upgrade ./[folder name]

(or whatever command your SVN client uses)




回答4:


Probably upgrading you project to 1.7 didn't work.. there you'll be in big trouble since svn1.7 won't handle 1.6 projects (incredible but true oO)




回答5:


Please try the following commands from command line

cd <working copy>
svn upgrade

Your internal working copy does not comply with 1.7 version



来源:https://stackoverflow.com/questions/7992137/svn-how-upgrade-working-copy

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