我是用root用户通过yum装的subversion,:yum -y install subversion
安装好后,在cd ~目录下面有一个隐藏文件夹,通过ls -a 可以看到叫.subversion,该目录下面有一个servers文件,里面可以配置代理CHECK代码。
可以配在global里所有域都用代理来checkout,也可以配置单独的group对指定的域使用代理.
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
http-proxy-host = defaultproxy.whatever.com
http-proxy-port = 7000
http-proxy-username = defaultusername
http-proxy-password = defaultpassword
配置好后,就可以实现给SVN客户端挂上了代理,如果只想给特定的域挂代理,就使用另一个section来配置代理:
[groups]
group1 = *.googlecode.com
# othergroup = repository.blarggitywhoomph.com
# thirdgroup = *.example.com
### Information for the first group:
[group1]
http-proxy-host = proxy.myoffice.com
http-proxy-port = 8080
# http-proxy-username = blah
# http-proxy-password = doubleblah
# http-timeout = 60
如上只是我的配置的一个节选,是我给googlecode这个域配置了一个代理