"Java EE Learning Day 43rd" "SVN version Control Tool" "CVS Version control Tool"

Source: Internet
Author: User
Tags subversion client svn svn update version control system

First, SVN

SVN server: https://subversion.apache.org/

1. What is version control: Versioning is the standard way to maintain a blueprint for a project that tracks the process from birth to finalization. is a system that records changes in several file contents so that a specific revision of the system can be consulted in the future.

2. What are the bad things that happen without versioning:

(1) Code Management Confusion

(2) Backing up multiple versions, consuming large disk space

(3) Difficulty in resolving code conflicts

(4) Easy to trigger bugs

(5) The modified person and time of the problem code are difficult to trace

(6) Difficult to revert to the previous correct version

(7) Unable to control permissions

(8) Difficulty in publishing project version

3.SVN Description: SVN (Subversion) is the version control tool that has risen this year, and in the current open source project (Java ee), almost 95% of the projects are using SVN. The Subversion project was originally designed to replace CVS, the most popular version control system of the open source community of the year, with a number of improvements based on the functionality of CVS and a good solution to some of the shortcomings of the CVS system.

4.SVN Working principle

    

How the 5.SVN server works

(1) Standalone server mode: Svnserve

(2) using Apache: MOD_DAV_SVN

6.SVN version Data storage method:

(1) BDB (Berkeley db): Database mode

(2) FSFS: File system mode (recommended)

7.Subversion (SVN) components

(1) Server components

* Svnadmin: Tools to tweak and fix SVN archives

* Svnserve: A standalone server program that can be executed as a server trip or SSH, and another way to make your archive accessible to others on the web.

(2) Client components

* SVN: Command line client program, which is the primary tool for managing data

8.SVN Basic Interaction Process

Second, the use of SVN

1. Building the Warehouse: Svnadmin the path to the Create warehouse, example: d:\repertory\svn>svnadmin create./kdyzm

The purpose of this command is to create a repository under the current folder, named Kdyzm, with the following path: D:\repertory\svn\kdyzm

2. Start the SVN server:

(1) Single-warehouse Start-up method: D:\repertory\svn>svnserve-d-R/kdyzm

The purpose of this command is to start the Kdyzm repository in the current directory, and note that only this warehouse is started.

-D: Background boot

-r: Specify the directory for the warehouse

The cursor will blink after starting the warehouse, but without any output, if you want to close the warehouse, just close the command-line window.

(2) method to start all warehouses: d:\repertory\svn>svnserve-d-R D:\REPERTORY\SVN

That is, you do not specify a specific warehouse, but the top level directory on the warehouse as the specified directory

3. How to write SVN to the Windows service:

Command line, execute the following command:

"  D:\ProgramFiles\SVND:\repertory\svn  " " Svn-service " start= auto depend= Tcpip

The red part of the above command indicates that changes need to be made according to the actual situation.

This writes SVN to the Windows service, and the command services.msc command allows you to view the service in response.

If you want to delete the service, you need to use the following command:

SC Delete Svn-service

Where Svn-service is the service name.

It is important to note that the above command is not an SVN command, but a command in Windows.

    

If you want to create a new service after you delete it, you may receive a "The specified service has been marked for deletion." Prompt, when this prompt is turned off, the service is automatically deleted and then the new service is created using the command.

4. The role of three files in the Conf folder under the Warehouse

(1) svnserve.conf: Define all authentication and authorization policies

(2) passwd: Store project member account information

(3) Authz: The main thing is to do complex group permissions control

5.Subversion Client Commands

Client commands are completed using the SNV command

SVN Checkout extract a working copy from the repository

SVN commit commits the modified file to the repository

SVN update updates your working copy

SVN add adds a new file to the repository

SVN delete delete files from repository

svn revert cancel all local edits

SVN info displays information for local or remote entries

SVN list lists the entries for the repository directory

SVN Status View current workspace status

SVN Help for information

6.Subversion Catalog Specification

Require three top-level directories in the repository

/trunk "Main Line" for storage development

/branches Store a copy of the Spur

/tags storing a copy of the label

7.

"Java EE Learning Day 43rd" "SVN version Control Tool" "CVS Version control Tool"

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.