svn 1.7 错误 E200009 无法添加所有目标,因为某些目标已经版本化 [英] svn 1.7 error E200009 Could not add all targets because some targets are already versioned

查看:121
本文介绍了svn 1.7 错误 E200009 无法添加所有目标,因为某些目标已经版本化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对存储库进行了干净的检出,然后每天我都有一个运行脚本来备份配置的 hudson 作业.部分脚本是添加*.xml

I did a clean checkout of a repository then every day I have an hudson job that runs a script to backup the configuration. Part of the script is to add *.xml

$ svn add *.xml
svn: warning: W150002: '/data/hudson/config.xml' is already under version control
svn: E200009: Could not add all targets because some targets are already versioned
svn: E200009: Illegal target for the requested operation

警告很好,因为一些 xml 文件已经在版本控制之下,但我不明白为什么我会收到 E200009 错误.如果没有什么要添加的,应该没有错误.

The warning is fine because some of the xml files are already under version control but I don't understand why I get the E200009 error. If there is nothing to add, there should be no error.

推荐答案

似乎是 SVN 1.7 的正确行为.另一种方法是仅添加未版本控制的文件:

Seems like the correct behaviour for SVN 1.7. An alternative is to add only unversioned files:

svn st *.xml | grep ? | tr -s ' ' | cut -d ' ' -f 2 | xargs svn add

但是你可能没有什么可添加的,所以你会得到

However it's possible you have nothing to add, so you will get

svn: E205001: Try 'svn help' for more info
svn: E205001: Not enough arguments provided

相关问题:添加所有未版本控制的文件使用一个 Linux 命令转换为 Subversion

这篇关于svn 1.7 错误 E200009 无法添加所有目标,因为某些目标已经版本化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆