SVN server-side client integration into eclipse steps

Source: Internet
Author: User
Tags svn svn client tortoisesvn

SVN server side, client installation, and detailed steps for integration into eclipse

The following each step is I (steve_wang_victor) personally operation after write down, what is wrong, also please you point out.

The software version you need to use is as follows:

Eclipse3.3

Svn-1.4.5-setup Server

tortoisesvn-1.4.5.10425-win32-svn-1.4.5 Client

One, install server-side SVN and client svn

1, first install the server-side software "Svn-1.4.5-setup.exe" (attachment can be downloaded), this installation is very simple, next, the next step on the line.

(I install here to the directory: D:\Program files\subversion)

2, then install the client software "tortoisesvn-1.4.5.10425-win32-svn-1.4.5"
This installation is also very simple, the next step on the line. After the client software is installed, it will ask you to restart your computer. Reboot.
Now it's further away from success. (*^__^*) ...

Second, set up SVN version control directory of services

1, this is the "D:\svn_service_root" directory designated as SVN version control of the service directory (many online posts to the above command called the establishment of the warehouse is not correct) in fact, this directory should be referred to as the warehouse directory, if I have three warehouses: Repository_ 1,repository_2,repository_3 their position should be: d:\svn_service_root\repository_1,

D:\svn_service_root\repository_2,

D:\svn_service_root\repository_3.
2, the establishment of a warehouse: There are 2 methods as follows

2.1 Command line mode into "C:\Program files\subversion\bin\"
Again into the command: svnadmin create d:\svn_service_root\repository_1, so that the first warehouse is established. Your project will be available later.
Import into this warehouse. (Other warehouses similar to the establishment) at this time into the directory: desktop-My Computer-local disk E:
--svn_service_root--repository_1. You'll see the folder conf,dav,db and so on
2.2 Open the directory: My Computer--local disk e:--svn_service_root. Create a new folder in this directory, name "Repository_1" and right-click the newly created folder-->tortoisesvnàcreate repository here. The effect is the same as the first method.

3, open SVN service
On the command line, go to the Subversion directory and enter it (the directory where you just installed the SVN server):
Svnserve-d-R D:\svn_service_root

This command explains:

Note: The

-D parameter effect is the same as the--daemon
    r parameter effect--root
Svnserve will wait for the request on Port 3690, The
   --daemon (two dash) option tells Svnserve to run as a daemon so that it does not exit before it is manually terminated. Do not close the command line window, and closing the window will stop the Svnserve. &NBSP
  You can directly create a. bat file to process as a system service   the following

sc create svnserve binpath=  C:\ Program Files\collabnet\subversion

Server\svnserve.exe --service -r e:\svn " depend=  tcpip start= auto   

Sc start svnserve

pause  
   --root option sets the root location to limit the access directory of the server, thereby increasing security and saving time for entering Svnserve URLs
    If you do not add the root argument, The service URL is: Svn://localhost/svn/repos
    and if the root argument is added, the service URL is: Svn://localhost/repos
     The startup configuration here affects the service URL, and if you enter a URL error, an exception occurs when you access it.
To verify that Svnserve is working correctly, use the TortoiseSVN-> repo-browser to view the version library. In the Pop-up URL dialog box, enter:
  svn://localhost/repos

To see the empty file directory after successful access.

This step is to establish the Client Access server-side warehouse directory specified in the file

After you perform this step, you need to test the following:

Right-click Àtortoisesvn-> repo-browser to view the version library. In the Pop-up URL dialog box, enter:
Svn://localhost/repository_1

Once the access is successful, you will see an empty file directory. (Because now you haven't put anything in there)

4, configure Users and permissions
Open the d:\svn_service_root\repository_1\conf directory with a text editor and modify the svnserve.conf:
Will:
# password-db = passwd
To
Password-db = passwd

That is, remove the previous # annotation and note that there is no space in front of it.
Then modify the passwd file in the same directory and add an account number:

Will:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Add account Number:
[Users]
#harry = Harryssecret
#sally = Sallyssecret
admin= Admin

This can be done using client tortoise.

SVN installation and service opening all ended ... The distance used in eclipse has been completed half.

On the svn://localhost/repository_1 path problem say one more word:

If your server is installed on this computer you can access: Right-click--svn Checkout. A dialog box opens.
Enter svn://localhost/repository_1 under URL of repository

If the other computer is accessing this warehouse:
Svn://10.1.246.68/repository_1, where 10.1.246.68 is my IP address, then we can replace them.
In fact, the svn://10.1.246.68 address here corresponds to the D:\svn_service_root directory

"Reason: Because the command I used in step three: Svnserve-d-R D:\svn_service_root, install the D:\svn_service_root directory to access through the SVN protocol

Second, Eclipse integrated SVN usage

1,

Previously installed SVN client and server side, also configured user rights, now see how to integrate SVN plug-in subclipse in Eclipse. In fact, the official online write very clearly. This is just a little talk.

In Help->software updatesàfind and Install...à Select search for new features to install–> next-ànew remote site. -àname:subclipse url:http://subclipse.tigris.org/update_1.2.x--> Select a version--> next---> Next----->install All-à to restart Eclipse

In window-àopen prespective-à See "SVN repository Research"

This is already integrated.

2, apply to the established project

Choose a project, right-click, select "Team", choose SVN, click Next, and choose: Use the existing repository location

(svn://localhost/repository_1), click Next, select the project name or create a new project name (just to get a name again), click Next, edit the Submit comment, click Finish.

By this step, the Repository_1 warehouse in the SVN server has been submitted to manage the project's version.

Finally carried out, tired, happy, good rest. Hey, (*^__^*) ...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.