1
2
3
4
5
6
7
8
|
$ svnserve --version
svnserve, version 1.6.18 (r1303927)
compiled Aug 4 2012, 19:46:53
Copyright (C) 2000-2009 CollabNet.
Subversion is
open
source
software, see http:
//subversion
.apache.org/
This product includes software developed by CollabNet (http:
//www
.Collab.Net/).
The following repository back-end (FS) modules are available:
* fs_fs : Module
for
working with a plain
file
(FSFS) repository.
|
1
|
$
sudo
mkdir
-p
/data/svn/repositories/local
|
1
|
$
sudo
svnadmin create
/data/svn/repositories/local
|
1
2
3
4
5
6
7
8
9
|
$
cd
/data/svn/repositories/local/
$ ll
total 16
-rw-r--r-- 1 root wheel 229 12 14 01:33 README.txt
drwxr-xr-x 5 root wheel 170 12 14 01:41 conf
drwxr-sr-x 16 root wheel 544 12 14 02:07 db
-r--r--r-- 1 root wheel 2 12 14 01:33
format
drwxr-xr-x 11 root wheel 374 12 14 01:33 hooks
drwxr-xr-x 4 root wheel 136 12 14 01:33 locks
|
1
2
3
4
5
6
|
[general]
anon-access = none
auth-access = write
password-db =
passwd
authz-db = authz
[sasl]
|
1
2
|
administrator = admin@Svnserver
xiayong = xiayong
|
1
2
3
4
5
6
7
8
9
|
[
groups
]
admin = administrator
user = xiayong
[/]
@admin = rw
@user = r
[
local
:/]
@admin = rw
@user = r
|
1
|
$
sudo
svnserve -d -r
/data/svn/repositories
--log-
file
=
/var/log/svn
.log
|
1
2
3
4
5
6
7
|
$ telnet localhost 3690
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is
'^]'
.
( success ( 2 2 ( ) ( edit-pipeline svndiff1 absent-entries commit-revprops depth log-revprops partial-replay ) ) )
|
1
2
3
4
|
$
sudo
mkdir
-p
/tmp/svntemp
$
cd
/tmp/svntemp/
$
sudo
mkdir
tags trunk branches
$
|
1
2
3
4
5
6
7
8
9
10
|
$
sudo
svn
import
-m
'init repo'
/tmp/svntemp/
svn:
//localhost/local
Authentication realm: <svn:
//localhost
:3690> af662c40-23bf-43f4-93fa-8bf7eff40771
Password
for
'root'
:
Authentication realm: <svn:
//localhost
:3690> af662c40-23bf-43f4-93fa-8bf7eff40771
Username: administrator
Password
for
'administrator'
:
Adding
/tmp/svntemp/trunk
Adding
/tmp/svntemp/branches
Adding
/tmp/svntemp/tags
Committed revision 1.
|
1
2
3
4
5
6
|
[
local
:
/branches
]
@user = rw
[
local
:
/tags
]
@user = r
[
local
:
/trunk
]
@user = rw
|
1
2
|
# to run the svnserver on the automatically.
svnserve -d -r
/data/svn/repositories
|