已解决 禅道和SVN结合,执行同步时,出问题。
[root@test bin]# sh syncsvn.sh 
2014-12-23 14:22:52 begin repo 1
svn: OPTIONS of 'http://192.168.2.201/repos/v1.4': 200 OK (http://192.168.2.201)
2014-12-23 14:22:52 start from revision 0
svn: OPTIONS of 'http://192.168.2.201/repos/v1.4': 200 OK (http://192.168.2.201)
Some error occers: 
The command is /usr/bin/svn --non-interactive --username zhuchuan --password 123456 --no-auth-cache log -r 0:HEAD -v --xml http://192.168.2.201/repos/v1.4
 the svn logs is <?xml version="1.0"?>

<log>


请问导致这个错误的原因是什么?


禅道里我的配置如下:


$config->svn = new stdClass();
$config->svn->encodings = 'utf-8, gbk';
$config->svn->client    = '/usr/bin/svn';
$i = 1;
$config->svn->repos[$i]['path']     = 'http://192.168.2.201/repo
s/v1.4';
$config->svn->repos[$i]['username'] = 'zhuchuan';
$config->svn->repos[$i]['password'] = '123456';
/*
$i ++;
$config->svn->repos[$i]['path']     = '';
$config->svn->repos[$i]['username'] = '';
$config->svn->repos[$i]['password'] = '';

*/


我执行“/usr/bin/svn --non-interactive --username zhuchuan --password 123456 --no-auth-cache log -r 0:HEAD -v --xml http://192.168.2.201/repos/v1.4” 返回的值也是OK的。

禅道版本 6.4.stable 源码包
操作系统 CentOS
客户端浏览器 Chrome

提问者: 朱川 悬赏:5 日期: 2014-12-24 13:55:41 答案:1 点击:4003

获取技术支持

QQ:2692096539电话:13165050229
设置备注
答案列表
最佳答案
2014/12/24
我同事已经回复过一次了,返回的xml数据有问题,不要再重复提问。
2014/12/25
洋洋哥哥,我就是不知道如何判断xml数据问题出在哪?可以告诉我吗?

我执行“/usr/bin/svn --non-interactive --username zhuchuan --password 123456 --no-auth-cache log -r 0:HEAD -v --xml http://192.168.2.201/repos/v1.4”
后输出的结果如下的:
<?xml version="1.0"?>
<log>
svn: OPTIONS of 'http://192.168.2.201/repos/v1.4': 200 OK (http://192.168.2.201)