SVN installation use and Eclipse integration svn

Source: Internet
Author: User
Tags auth svn update

Pre-installation software preparation
svn服务器Setup-Subversion-1.8.13.msisvn客户端TortoiseSVN-1.8.11.26392-win32-svn-1.8.13.msisvn插件site-1.8.zip

Install the SVN server and the client first.
After the installation is complete, verify.

start the SVN server
svnserve -d -r G:\work\svn\root


For window users, you need to add SVN to the service without having to execute the above command every time.

SC Create creates a service

sc create svnserveDemo binPath= "C:\Program Files\Subversion\bin\svnserve.exe --service -r G:\work\svn\root"  displayname= "svnserve"

If you need to delete a service.
SC Delete Deletes a service

delete svnserveDemo

Once created, you can open to one of the following services svnserveDemo

To Create a repository (factory)
svnadmin create G:\work\svn\root\Demo


Modify the svnserve.conf file in the demo/conf directory
anon-access = write

Create a project and import it into the configuration library
import-m"Demo first" Demo svn://localhost/Demo

checkout the corresponding project
G:\xxx\xxx\oneday\Demo_d\01>svn co svn://localhost/Demo


The project is developed, and after development is completed, it is submitted via SVN commit.

commit with SVN commit
G:\xxx\xxx\oneday\Demo_d\01\Demo>svn ci -m "Demo two"

Perform the same checkout,commit operation below the other folder.

G:\work\xxx\oneday\demo_d\01\demo>CD. /.. /g:\work\xxx\oneday\demo_D>CD 02G:\work\xxx\oneday\demo_D\02>SVN Co Svn://localhost/demog:\work\xxx\oneday\demo_D\02>CD Demog:\work\xxx\oneday\demo_d\02\demo>SVN ci-m "02"


Update the non-updated version with SVN update in the original folder.

SVN update updates the version that is not updated
G:\work\xxx\oneday\Demo_d\01\Demo>svn update

Basic Process

1. Create a factory
Svnadmin Create xxx
2. Project Manager created
2.1 Enter the project's folder
2.2 Using SVN Import to complete the import of a project
3, by the developer to checkout the corresponding project
4. The developer can develop the project and submit it through SVN commit after the development is completed.
5, other developers as long as checkout, can be updated by SVN update version
Follow the 4-5-step cycle of execution.

Conflict Issues

After two developers have modified a file together and commit a conflict
1. Update the code before modifying it
2, the project manager when assigning tasks need to be independent to consider (for different developers to allocate different modules for development, so as to avoid conflict)

Co,ci,update and other operations through the interface
svnadmin create G:\work\svn\root\Student

Create a new folder, go to the folder, add some content, right-click,
import to the SVN server.

Checkout

Commit

Update

Log Messages

Permissions Issues

For different developers, create different permissions for use as well.

cms   - - >1   admin  2   ui  - - > 2 people  3   code  - - > 1 people  4   test  - - > 1 people   

svnadmin create G:\work\svn\root\cms

Modify the Conf directory svnserve.confFile
anon-access=noneauth-access= writepassword-db= passwdauthz-db= authz
passwd fileCreate User and password
[users]# harry = harryssecret# sally = sallyssecretjason = 123tony = 123ivy = 123james = 123lgd = 123lkx = 123
Authz FilePermission settings
[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joeg_admin = jasong_ui = tony,ivyg_code = jamesg_test = lgd,lkx[/]@g_admin = rw* = r[/ui/js]tony = rw[/ui/html]ivy = rw[/code]@g_code = rw[/test]@g_test = rw

Now that the setup is complete, you can create the appropriate file to use.

The project manager uploads the initialized directory to the server after it is created. Other developers checkout out this project to modify the corresponding files within their purview.

use SVN in Eclipse

Install the SVN plugin first, after the installation is complete.

After eclipse loads the SVN plugin, the plugin displays the Chinese

If you want to Show English

Increase Eclipse/configuration/config.ini

osgi.nl=en_US
svnadmin create G:\work\svn\root\sources
svnserve.conf File
anon-access=noneauth-access= writepassword-db= passwdauthz-db= authz
passwd file
[users]# harry = harryssecret# sally = sallyssecret123123
Authz File
[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joe[/]root = rwstu = r
Upload

Select a project, right-click, Team,share Project.


Download

Right-click, IMPORT,SVN

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

SVN installation use and Eclipse integration svn

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.