This article from: http://www.itwen.com/07prog/01java/java20060927/62348.html
The original article is as follows:
----------
Install the Subversion server software on Windows
1. First download the server software of the Subversion Windows version,
As follows:
Http://subversion.tigris.org/servlets/ProjectDocumentList? FolderID = 91
For example, svn-1.2.0-setup.exe, and then execute the installation,
The installation directory is d: \ develop \ subversion,
Then, this is the Path of the system's environment variable,
Add the bin path of the Subversion to the system path.
2. Create a Subersion database:
First, create a directory to store the Subversion library,
Store Subversion projects in this library, such as D: \ repository \ subversion
3. Create a New Subversion project.
Run svnadmin create D: \ repository \ subversion \ projectname
4. Set the project user information as follows,
Open the passwd file in the conf directory of the Subversion project to add a new user, as shown in figure
[Users] admin = mypassword
Next, set some other information about the project,
Open the svnserve. conf file in the conf directory and set it as follows:
[General] anon-access = readauth-access = writepassword-db = passwdrealm = demo4
Start Subversion. You can use the command line to start Subversion. It is best to use SVN Service Wrapper,
You can download from: http://dark.clansoft.dk /~ Mbn/svnservice,
Copy svnservice.exe to the bin directory of the Subversion installation home directory,
Then run the following command to start the Subversion as a windows service.
SVNService-install-d-r D: \ repository \ subversion5
5. Import a project to Subversion:
Now we need to import the project to the Subversion library,
Run the following command:
Svn import d: \ demo svn: // localhost/demo-m "initial import" -- username admin -- password abc123
In this way, the project is imported into the subversion library.
6. Export a project: Exporting a project from a Subversion project is also easy. You only need to perform the following operations:
Svn co svn: // localhost/demo -- username admin -- password abc123
Install CVSNT in Windows
1. First download the CVS server software from www.cvsnt.org,
File Name Is cvsnt-2.5.01.1976.msi, CVSNT needs to use NTFS file format,
Make sure that the CVSNT and library are installed on NTFS, and add the bin directory under the main directory of CVSNT to the path of the system.
2. Configure the CVSNT.
Open the CVSNT Control Panel and click "Server Settings ",
Here we need to set "Run as" and "Default ",
The names of the users and computers that run the CVSNT program. You can set the system administrator here.
3. Next we need to set the CVS library,
You only need to select "Repositories" in the settings panel and then create the relevant library.
Then we can reference this library through: pserver: username @ localhost:/reposname.
4. Set database permissions.
Next we need to set the user information to access the CVS database. here we need to add new users.
On the server side, set CVSROOT. CVSROOT is the directory of the database, for example, d: \ respository \ cvs \ respo1,
Run the cvs passwd command, as follows:> cvs passwd-a-r administrator username
In this way, a new user accessing a specific database is added.
If you do not set CVSROOT, you can directly access the database through cvs-d: \ respository \ cvs \ respo1.
For details about the cvs passwd command, refer to cvs passwd-help 5.
The administrator who creates the CVS database,
You only need to write the CVS user name in the CVSROOT/admin file (one row of user name, and the last user is added to a blank line ).
For other settings, you only need to set readers and writers files.
5. For other settings, see CVS Standard settings.
Understanding of the Subversion and CVS Libraries
First, we need to create a directory to store all the databases. Here we can understand the Database concept in mysql.
The Directory used to store all databases is called Data Directory ).
Each database can protect multiple projects. Just as a database can contain multiple tables,
No database has its own user and permission system.
The following is a description of the Library Design:
1. Create a Data Directory to store all databases.
2. Create a new database. For example, we can name a department in the company, such as BranchOne3.
Then we create corresponding projects in each database, which is actually the directories in the database, such as power_acl.