永发信息网

svnkit is not a working copy 怎么解决

答案:1  悬赏:0  手机版
解决时间 2021-11-09 23:51
svnkit is not a working copy 怎么解决
最佳答案
SVN:This client is too old to work with working copy…解决方法[OK]

这两天项目提交时候,虚拟机用SVN提交的时候,总是报如下提示:
svn: This client is too old to work with working copy ‘/opt/gforge/www/account’. You need
to get a newer Subversion client, or to downgrade this working copy.
See http://subversion.tigris.org/faq.html#working-copy-format-change
for details.
其实有时候仔细看下报错提示还是很有用的,开始没有仔细看,试着升级SVN,其实是一个错误的方向。
正确的解决办法就是按照提示中的地址有FAQ的解释,可以解决这个问题。

访问地址:
http://subversion.tigris.org/faq.html#working-copy-format-change
官网已经明确说明地址转移了:
http://subversion.apache.org/faq.html#working-copy-format-change

原文如下:
Sometimes the working copy metadata format changes incompatibly between minor releases. For example, say you have a working copy created with Subversion 1.4.4, but one day you decide to try out Subversion 1.5.0. Afterwards, you attempt to switch back to 1.4.4, but it doesn’t work — it just gives the above error.
This is because 1.5.0 upgraded your working copy format to support some new features (in this case, changelists, the keep-local flag, and variable-depth directories). Although 1.4.4 doesn’t know anything about these new features, it can at least recognize that the working copy format has been upgraded to something higher than it can handle.
1.5.0 upgraded the working copy for a good reason: it realizes that 1.4.4 does not know about these new features, and that if 1.4.4 were to meddle with the working copy metadata now, important information might be lost, possibly causing corruption (see issue #2961, for example).
But this automatic upgrade behavior can be annoying, if you just want to try out a new release of Subversion without installing it permanently. For this reason, we distribute a script that can downgrade working copies when doing so is safe:
http://svn.collab.net/repos/svn/trunk/tools/client-side/change-svn-wc-format.py
Run that script with the “–help” option to see how to use it. As future versions of Subversion are released, we will try to keep this FAQ entry up-to-date with potential downgrade scenarios and their implications.
举例,在/home/mysvn文件夹下建立好change-svn-wc-format.py文件,然后在该目录下执行:
./change-svn-wc-format.py –help
可以看到命令格式:
usage: change-svn-wc-format.py WC_PATH SVN_VERSION [--verbose] [--force] [--skip-unknown-format]
change-svn-wc-format.py –help
执行命令:
./change-svn-wc-format.py /mulu 1.x –skip-unknown-format

说明:

上面的/mulu为文件路径,1.x为SVN当前版本号,只写2位版本号即可。
如版本为1.5.4,那么这里就写1.5就可以了。至此svn up可以正常执行了。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
毛茸茸白话(粤语)怎麽读?
领航教育(盘旋西路)地址在哪,我要去那里办事
毛竹青的介绍
跪求十二色之临冬城市百度云
北京昊天旭阳招商加盟的公司有什么优势
福田奥铃的会员有什么权益?
琰这个字的甲骨文
托里县新盛科目二(电子考场)地址在哪,我要
0.77乘以1.6保留两位小数是多少
炸小排的做法
拟制交付是什么意思
有内司修款瓷器吗?
keep a watch on是什么意思
色素减退斑如何去除?
什么是海尔全球品牌节
推荐资讯
八月份能扦插绿萝吗
智商133分高不高,处于什么水平?
新疆若羌县人民医院地址在哪,我要去那里办事
这个纹身上的的花是什么花?
网速100.mbp代表什么
常吃味精会对人的味觉产生什么影响?
铜陵市顺安镇牡丹城房价多少一平方
沥青混合料残留稳定度为什么比稳定度还大?沥
用电烙铁给铜线上锡,为什么上不去啊,焊锡老
初中数学多少分属于高分
请帮我设计英文名,kee
阀门全衬氟和半衬氟的区别
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?