该用户名已 发表于 2013-08-19 15:18

svnsync同步,只同步了版本号,没有数据

按照网上的教程配置
pre-revprop-change 内容
#!/bin/sh
USER="$3"
if [ "$USER" = "××××" ] ;then exit 0;fi
echo "Only the syncuser user may change revision properties" >&2
exit 1

start-commit 内容
#!/bin/sh
USER="$2"
if [ "$USER" = "××××" ] ; then exit 0;fi
echo "Only the syncuser user may commit new revisions" >&2
exit 1

执行初始化
#svnsync init svn://10.10.10.2/svn   svn://10.10.10.1/svn    --username=×××× --password=××××××
Copied properties for revision 0.
执行同步
# svnsync sync svn://10.60.1.52/svn--username=××× --password=××××××
Committed revision 1.
Copied properties for revision 1.
Committed revision 2.
Copied properties for revision 2.
Committed revision 3.
Copied properties for revision 3.
Committed revision 4.
Copied properties for revision 4.
Committed revision 5.
Copied properties for revision 5.
Committed revision 6.
Copied properties for revision 6.
Committed revision 7.
Copied properties for revision 7.
Committed revision 8.
Copied properties for revision 8.
Committed revision 9.
Copied properties for revision 9.
Committed revision 10.
Copied properties for revision 10.
Committed revision 11.
Copied properties for revision 11.

版本号都同步过来了就是没有Transmitting file date 这个过程,也没有数据
请问这样 该怎么解决也配置了源机器的post-commit
svnsync sync--non-interactive svn://10.10.10.2/svn/ --username=×××× --password=xxxxxx
在源机器上提交后 目标机器的版本号也会同步增长 但是没有依然没有数据

forward51 发表于 2013-09-13 14:30

亲是你的权限有问题
用的是svnservere启动的吧
把anon-access = read 改成anon-access = none

yinjir19920719 发表于 2013-09-16 23:39

看不懂啊 慢慢来学

该用户名已 发表于 2014-06-05 15:46

问题早解决了 就今天上了 论坛 还是回复一下把

把被同步端 使用apache来发布就可以了

wxq1090691643 发表于 2015-04-07 14:44

回复 4# 该用户名已

目标端难道必须要用apache来发布吗????????????

   

jixuuse 发表于 2015-04-27 14:28

你好像是在其他机器上做的同步?

我这边是在mirror服务器上执行的,没有你说的问题

先创建工程,改hook中的exit 0。然后初始化,最后svnsync sync file:///svn/xxxx

这样没有问题
页: [1]
查看完整版本: svnsync同步,只同步了版本号,没有数据