wheezy がふろーずん
日本語的には,フリーズされたっていえばいいのかな?
って訳で Subversion。 以前はこう だったけれども,どうなったかな~?
おおっ,unstableが 1.7.5-1 になってる! …でも,testing に降りてきてないよ???
わるさんがひまつぶしをしています。
リポジトリは /var/lib/svn にほっていくよ。
/$ sudo mkdir /var/lib/svn /$ cd /var/lib/svn /var/lib/svn$ sudo svnadmin create --fs-type fsfs test_repos /var/lib/svn$ sudo chown www-data:www-data test_repos/ -R
dav_svnlibapache2-svn をインストールしてあるから,すでに /etc/apache2/mods-enabled に dav_svn.conf と dav_svn.load のシンボリックリンクがあって。
こんな風に修正。
--- dav_svn.org.conf 2011-06-01 01:10:30.000000000 +0900 +++ dav_svn.conf 2012-02-14 16:52:46.000000000 +0900 @@ -10,17 +10,18 @@ # URL controls how the repository appears to the outside world. # In this example clients access the repository as http://hostname/svn/ # Note, a literal /svn should NOT exist in your document root. -#<Location /svn> +<Location /svn> # Uncomment this to enable the repository - #DAV svn + DAV svn # Set this to the path to your repository #SVNPath /var/lib/svn # Alternatively, use SVNParentPath if you have multiple repositories under # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...). # You need either SVNPath and SVNParentPath, but not both. - #SVNParentPath /var/lib/svn + SVNParentPath /var/lib/svn + SVNListParentPath On # Access control is done at 3 levels: (1) Apache authentication, via # any of several methods. A "Basic Auth" section is commented out @@ -37,9 +38,9 @@ # manage the password file - and the documentation for the # 'auth_basic' and 'authn_file' modules, which you will need for this # (enable them with 'a2enmod'). - #AuthType Basic - #AuthName "Subversion Repository" - #AuthUserFile /etc/apache2/dav_svn.passwd + AuthType Basic + AuthName "Subversion Repository" + AuthUserFile /etc/apache2/dav_svn.passwd # To enable authorization via mod_authz_svn #AuthzSVNAccessFile /etc/apache2/dav_svn.authz @@ -47,8 +48,8 @@ # The following three lines allow anonymous read, but make # committers authenticate themselves. It requires the 'authz_user' # module (enable it with 'a2enmod'). - #<LimitExcept GET PROPFIND OPTIONS REPORT> - #Require valid-user - #</LimitExcept> + <LimitExcept GET PROPFIND OPTIONS REPORT> + Require valid-user + </LimitExcept> #</Location>
をつくっておかないと。
/$ cd /etc/apache2/ /etc/apache2$ sudo htpasswd -c dav_svn.passwd wal_san New password: Re-type new password: Adding password for user wal_san
a2enmod/etc/apache2/mods-enabled ながめるかぎりいらなさそうなんだけれども。
$ sudo a2enmod dav_svn Considering dependency dav for dav_svn: Module dav already enabled Module dav_svn already enabled $ sudo a2enmod auth_basic Module auth_basic already enabled $ sudo a2enmod authn_file Module authn_file already enabled $ sudo a2enmod authz_user Module authz_user already enabled
ほら,いらないぢゃん。
あとは,#/etc/init.d/apache2 restart すればいいはず。
$ sudo /etc/init.d/apache2 restart apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 13 of /etc/apache2/mods-enabled/dav_svn.conf: /etc/apache2/mods-enabled/dav_svn.conf:13: <Location> was not closed. Action 'configtest' failed. The Apache error log may have more information. failed!
…あれ?
…ああ,</Location> のコメントはずし忘れてるよ。
あとは,http://ip-address/svn/ でリポジトリが見えればおっけー。
Subversion 1.7.x にしたいんだけれどもでも書いたんだけれども,Debianくんは…。
たしかこう。理由はあんまり憶えていないけど,バックアップに必要なものとか,WebDAV がどうとかだったはず。
$ sudo apt-get install subversion subversion-tools libapache2-svn libapache2-mod-encoding -s パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の特別パッケージがインストールされます: libconfig-inifiles-perl libiconv-hook1 libneon27-gnutls libserf-0-0 libsvn-perl libsvn1 liburi-perl libxslt1.1 python-subversion rsync xsltproc 提案パッケージ: db4.8-util libwww-perl libsvn-ruby1.8 以下のパッケージが新たにインストールされます: libapache2-mod-encoding libapache2-svn libconfig-inifiles-perl libiconv-hook1 libneon27-gnutls libserf-0-0 libsvn-perl libsvn1 liburi-perl libxslt1.1 python-subversion rsync subversion subversion-tools xsltproc アップグレード: 0 個、新規インストール: 15 個、削除: 0 個、保留: 0 個。
TortoiseSVNがいつの間にか 1.7.3 と 1.7系列になっていたの。で,しらべてみたら,AnkhSVNも 2.3.10509 …ってこれぢゃわかんないけれど,1.7系列なんだって。
Debian -- squeeze の subversion パッケージに関する詳細によると… 1.6.12dfsg-6 って 1.6系列だよねぇ。 sid でも 1.6.17dfsg-3 …。
[pkg-subversion] Log of /src/1.7.x/subversion_1.7.1.orig.tar.gz
Import 1.7.0 tarball. Yes, I'm ... slightly behind on this stuff!
Import 1.7.1 tarball. Not released yet, but I'm enough of a slacker that I probably won't finish the packaging until it is anyway.…。
前回のままだとこんなエラーが。
すべてのリソース取得操作に失敗しました。
Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Connector.
と同時に「コネクターのインストール」とかいうウインドウが開いてくれる親切っぷり。Subversion は 1.6系のはずなので,SVN Kit 1.3.5 でいいらしいよ。Native JavaHL とやらは選ばなくていいって(なぜかは知らない)。
がなぜがアイコンに表示されなくなった。2時間ほど悩んでいたけど,ここっぽいよ。設定の,「一般」 → 「外観」 → 「ラベル装飾」 の,「SVN」
Aptana のアップデートを,前のバージョンをアンインストールしてから行ったらプラグインが消えてた…。
Pleiades - Eclipse プラグイン日本語化プラグイン でにほんごかしてるよ~。
SVN と入力。検索(?)が思いっきり遅い…。そういえばこれも試しに入れてたっけ。使いこなせてないけれど,ふとしたときにあると便利くらいには使っているかも。
Subversion さんがごきげんななめ。
REPORT (URL: '/svn/repos/!svn/vcc/default'): Could not read chunk size:
connection was closed by server (http://svn.example.local)
「subversion エラー could not read chunk size」でぐぐるといきなり SVNがらみ - PukiWiki(AkiWiki) がヒット。
REPORT (URL: '/svn/hogehoge/hogehoge'): Could not read chunk size:
Secure connection truncated (https://some.where.repository.jp/ )
チェックアウトしなおしですか…。まあ,今回のタイミングでは,損害無しなのでいいんだけれど。