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\hazrativ\Application Data\Subversion\servers
Linux: /etc/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, http://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: C:\Documents and Settings\hazrativ\Application Data\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.
Chris W.
Wednesday, February 25, 2009
Thanks,
This was just what I needed.
Chris
Krishnakumar
Wednesday, December 9, 2009
Thanks. This helped to set my build script.
Regards,
-Krishna
Patrick
Monday, April 19, 2010
IMHO, svn should respect http_proxy – looks like a bug ?
Renjith
Wednesday, June 2, 2010
very simple thing, but most of us are do googling. Someone special like u r really helpful…….
Thanks a lot….
Joe Ardent
Wednesday, June 16, 2010
On linux, you can also edit your user config file: $HOME/.subversion/servers. That way, you don’t need to be root, or muck up the system for other users.
Vikas Hazrati
Friday, June 18, 2010
Interesting! thanks for the tip Joe
jcz
Monday, July 19, 2010
svn: C:\Documents and Settings\hazrativ\Application Data\Subversion\servers:73:
Option expected
Looking for this for almost 15 minutes. Looks like they can trim????
gajen
Friday, October 22, 2010
Thanks,Very helpful
Sandeep
Thursday, November 18, 2010
Thanks man,
was struggling from morning. Was trying with http_proxy.
Thanks for the useful tip.
apanloco
Tuesday, December 21, 2010
Thanks! Important Note: For those without admin rights, you can also put it in ~/.subversion/servers.
kishore
Wednesday, January 5, 2011
This blog helped me fixing the proxy issue in using svn.
Thanks for the blog
Waleed Hamra
Monday, February 28, 2011
just what i was looking for, thanks for the tip
i82much
Monday, April 18, 2011
Thanks – saved me a lot of hassle with this post.
Guillaume
Sunday, August 21, 2011
Thanks for helping saving time 🙂
nomail
Wednesday, December 14, 2011
Thanks for helping saving time!!!
Ondiege
Thursday, January 5, 2012
Not very often you find the EXACT answer you need on the very first result of you google query. Thanks, you saved me!
mrmeyers99
Monday, January 23, 2012
Thanks! This saved me!
ctrlz
Monday, February 20, 2012
thanks for a tip. 3:42 AM after a busy maintenance weekend – this article helped a lot.. really a lot.
cheersman
Tuesday, March 27, 2012
THANKS MAN
Siddardha
Sunday, May 6, 2012
thanks a ton, man!
RAvi
Monday, May 7, 2012
Thanks; I was searching for this info.
other simple way to set proxy is via tortoise SVN.Tortoise SVN provides nice UI for setting many SVN settings