そごうソフトウェア研究所

SOA、開発プロセス、ITアーキテクチャなどについて書いています。Twitterやってます@rsogo

Subversion 1.4.5-1を試す suversion設定&起動編

いいサイト見つけた。ここいいわ〜。なぜ、Subversionがあると嬉しいのか、という点に触れられているし。
http://asshole.dip.jp/subversion.php


まずは、リポジトリの作成

$ svnadmin create myrep

お、カレントディレクトリにmyrepっていうディレクトリが作られた
中身はこんな感じ

$ ls -R myrep/
.:
conf dav db format hooks locks README.txt

./conf:
authz passwd svnserve.conf

./dav:

./db:
current format fs-type revprops revs transactions uuid write-lock

./db/revprops:
0

./db/revs:
0

./db/transactions:

./hooks:
post-commit.tmpl post-unlock.tmpl pre-revprop-change.tmpl
post-lock.tmpl pre-commit.tmpl pre-unlock.tmpl
post-revprop-change.tmpl pre-lock.tmpl start-commit.tmpl

./locks:
db.lock db-logs.lock         

README.txtができたので、見てみる。

素人は勝手にリポジトリの中をさわんな、と。

This is a Subversion repository; use the 'svnadmin' tool to examine
it. Do not add, delete, or modify files here unless you know how
to avoid corrupting the repository.

Visit http://subversion.tigris.org/ for more information.


設定ファイルは?
作成したリポジトリの中にあるconf/svnserve.confを編集

[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
# anon-access = read
anon-access = none
# auth-access = write
auth-access = write
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
# password-db = passwd
password-db = passwdfile

パスワードファイル作成
password-dbに指定したファイルをこんな感じに編集
testがユーザ名で12345がパスワード

[users]
test = 12345

svnserve起動

$ svnserve -d

後は、OS起動時に起動するようにするなど、お好みで