|
1
2
3
4
5
6
7
8
|
$
svnserve --versionsvnserve,
version 1.6.18 (r1303927) compiled
Aug 4 2012, 19:46:53Copyright
(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/$
lltotal
16-rw-r--r--
1 root wheel 229 12 14 01:33 README.txtdrwxr-xr-x
5 root wheel 170 12 14 01:41 confdrwxr-sr-x
16 root wheel 544 12 14 02:07 db-r--r--r--
1 root wheel 2 12 14 01:33 formatdrwxr-xr-x
11 root wheel 374 12 14 01:33 hooksdrwxr-xr-x
4 root wheel 136 12 14 01:33 locks |
|
1
2
3
4
5
6
|
[general]anon-access
= noneauth-access
= writepassword-db
= passwdauthz-db
= authz[sasl] |
|
1
2
|
administrator
= admin@Svnserverxiayong
= xiayong |
|
1
2
3
4
5
6
7
8
9
|
[groups]admin
= administratoruser
= 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 3690Trying
::1...telnet:
connect to address ::1: Connection refusedTrying
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/localAuthentication
realm: <svn://localhost:3690>
af662c40-23bf-43f4-93fa-8bf7eff40771Password for 'root':Authentication
realm: <svn://localhost:3690>
af662c40-23bf-43f4-93fa-8bf7eff40771Username:
administratorPassword for 'administrator':Adding /tmp/svntemp/trunkAdding /tmp/svntemp/branchesAdding /tmp/svntemp/tagsCommitted
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 |
2231

被折叠的 条评论
为什么被折叠?



