For setting the HTTP proxy for SVN the regular setting of http_proxy environment variable would not work.
i.e. export http_proxy=http://my-proxy-server.com:8080/ would not work.
There is a “servers” file in svn which is present at the following location
Win : C:\Documents and Settings\krishna\Application Data\Subversion\servers
Linux: /etc/subversion/servers or /home/krishna/.subversion/servers
Here you need to set the proxy server and port settings so that command line SVN can access the external world form the proxy. Uncomment and change the lines necessary
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
http-proxy-host = myproxy.us.com
http-proxy-port = 8080
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
# http-compression = no
# http-auth-types = basic;digest;negotiate
# No http-timeout, so just use the builtin default.
# No neon-debug-mask, so neon debugging is disabled.
# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem
If you get something like
svn:/home/krishna/.subversion/servers:73: Option expected
then it means that you have a space at the start of the property which you have un-commented. Make sure that there is no space in the beginning of the property in the servers file.
I've struggled alot for few mins ... then came to know that, this is an issue with xml parsing in svn!!! It is very Picky!!!
i.e. export http_proxy=http://my-proxy-server.com:8080/ would not work.
There is a “servers” file in svn which is present at the following location
Win : C:\Documents and Settings\krishna\Application Data\Subversion\servers
Linux: /etc/subversion/servers or /home/krishna/.subversion/servers
Here you need to set the proxy server and port settings so that command line SVN can access the external world form the proxy. Uncomment and change the lines necessary
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
http-proxy-host = myproxy.us.com
http-proxy-port = 8080
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
# http-compression = no
# http-auth-types = basic;digest;negotiate
# No http-timeout, so just use the builtin default.
# No neon-debug-mask, so neon debugging is disabled.
# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem
If you get something like
svn:/home/krishna/.subversion/servers:73: Option expected
then it means that you have a space at the start of the property which you have un-commented. Make sure that there is no space in the beginning of the property in the servers file.
I've struggled alot for few mins ... then came to know that, this is an issue with xml parsing in svn!!! It is very Picky!!!
No comments:
Post a Comment