ラベル Subversion の投稿を表示しています。 すべての投稿を表示
ラベル Subversion の投稿を表示しています。 すべての投稿を表示

2012年8月24日金曜日

Debian の Subversion

wheezy がふろーずん

日本語的には,フリーズされたっていえばいいのかな?

って訳で Subversion。 以前はこう だったけれども,どうなったかな~?

おおっ,unstableが 1.7.5-1 になってる! …でも,testing に降りてきてないよ???

2012年2月14日火曜日

Redmine 1.3.0! #05_2 Subversion とか

さぶば~じょんをうごかしておく

りぽじとり

リポジトリは /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_svn

libapache2-svn をインストールしてあるから,すでに /etc/apache2/mods-enableddav_svn.confdav_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/ でリポジトリが見えればおっけー。

2012年2月10日金曜日

Redmine 1.3.0! #05 Subversion とか

以前も書いたけれども

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 個。

2012年1月5日木曜日

Subversion 1.7.x にしたいんだけれども

かめさんさぶん

TortoiseSVNがいつの間にか 1.7.3 と 1.7系列になっていたの。で,しらべてみたら,AnkhSVN2.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.
…。

2011年8月16日火曜日

Aptana に Subversion クライアント プラグイン その 2

えら~w

前回のままだとこんなエラーが。

すべてのリソース取得操作に失敗しました。
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 に Subversion クライアント プラグイン とか, zen-codeing プラグイン とか

きょうのやらかし

Aptana のアップデートを,前のバージョンをアンインストールしてから行ったらプラグインが消えてた…。

Subversion くらいあんと

Pleiades - Eclipse プラグイン日本語化プラグイン でにほんごかしてるよ~。

  1. 「ウインドウ」 → 「設定」
  2. 「インストール/更新」 → 「使用可能なソフトウェア・サイト」を選んで,Eclipse Helios Update Site にチェック
  3. 戻って,「ヘルプ」 → 「新規ソフトウェアのインストール」
  4. 「作業対象」のコンボボックスから Eclipse Helios Update Site を選び,「フィルター入力」に SVN と入力。検索(?)が思いっきり遅い…。
    「Subversive SVN チーム・プロバイダー」とやらにチェック
  5. 何回か次へを選んで再起動

zen-coding

そういえばこれも試しに入れてたっけ。使いこなせてないけれど,ふとしたときにあると便利くらいには使っているかも。

  1. 使用可能なソフトウェアで,サイトを追加
  2. 名前は何でも。ロケーションに http://zen-coding.ru/eclipse/updates/
  3. 「Zen Coding for Eclipse」にチェック
  4. 何回か次へを選んで再起動

2011年8月9日火曜日

Subversion:commit も update もできないんだよ

今日のやらかし

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/ )

チェックアウトしなおしですか…。まあ,今回のタイミングでは,損害無しなのでいいんだけれど。