Subversion with Eclipse using proxy

For Subclipse plugin proxy setting  in eclipse

You need to open

C:\Documents and Settings\<user_name>\Application Data\Subversion\servers

 

Note: for windows 7 this could also be found in

c:\Users\<user_name>\AppData\<Roaming\Local>\Subversion\servers

In this file you need to uncomment few line under global

[global]

# http-proxy-host=proxy1.some-domain-name.com
# http-proxy-port=80
# http-proxy-username=blah
# http-proxy-password=doubleblah
# http-timeout=60

Git vs SVN

The key difference is that it is decentralized. Imagine you are a developer on the road, you develop on your laptop and you want to have source control so that you can go back 3 hours.

SVN has the advantage that it’s MUCH simpler to learn: There is your repository, all changes to towards it, if you know how to create, commit and checkout and you’re ready to go and can pickup stuff like branching, update etc. later on.

Git has the advantage that it’s MUCH better suited if some developers are not always connected to the master repository. Also, it’s much faster than SVN. And from what I hear, branching and merging support is a lot better (which is to be expected, as these are the core reasons it was written).

Git has good performance because operation like diff is done locally.

Subversion is fine.. until you start merging.. or doing anything complicated.. or doing anything Subversion thinks is complicated (like doing queries to find out which branches messed with a particular file, where a change actually comes from, detecting copy&pastes, etc)…

A good article points to the linus video on google talk in 2007

check out google code from eclipse subversion

In window->show view-> svn repository .

In that window, right click and select “New” from the drop down menu, then click “Repository Location…”, enter the google code https  url.

after authentication, look carefully on the structure.

Then in the project, right click and Team-> share project.

In the following window, make sure the path is exactly the same as that in the repository.  Otherwise error would pop up.

SVN containing working copy admin area is missing

svn: Directory ‘\WebRoot\WEB-INF\classes\com\.svn’ containing working copy admin area is missing

原因是eclipse把src文件夹中的.svn文件夹也“编译”到WEB-INF/classes中去了,而复制过来的.svn中存储的是src文件夹中的版本信息,从而导致在更新时出错。

解决方法:

打开Eclipse中的 Project->Properties->Java Build Path 菜单,在右侧面板中的“Source”选项卡,在Excluded中加入“**/.svn/**”。也就是把.svn文件夹从编译路径中排除,这样就不会出现上面的问题了。