Trac 0.12.x + Subversion 1.6.x でリポジトリのパスの先頭スラッシュを2つにして登録して sync させるとこける

管理画面での設定変更時のエラー - だめだま、という記事があったので試してみる。

jun66j5@gotanda:47$ trac-admin ~/var/trac/0.12-stable
Welcome to trac-admin 0.12.3dev
Interactive Trac administration console.
Copyright (C) 2003-2011 Edgewall Software

Type:  '?' or 'help' for help on commands.

Trac [/home/jun66j5/var/trac/0.12-stable]> repository add '' //var/lib/svn/practice
Trac [/home/jun66j5/var/trac/0.12-stable]> repository list

Name       Type  Alias  Directory
----------------------------------------------
(default)               //var/lib/svn/practice

Trac [/home/jun66j5/var/trac/0.12-stable]> repository sync ''
python: subversion/libsvn_subr/path.c:114: svn_path_join: Assertion `svn_path_is_canonical(base, pool)' failed.
Aborted

こけた…。とりあえず subversion リポジトリに直にアクセスされなきゃこけないので trac-admin コマンドから削除してやり直せば解消できる。

jun66j5@gotanda:62$ trac-admin ~/var/trac/0.12-stable
Welcome to trac-admin 0.12.3dev
Interactive Trac administration console.
Copyright (C) 2003-2011 Edgewall Software

Type:  '?' or 'help' for help on commands.

Trac [/home/jun66j5/var/trac/0.12-stable]> repository list

Name       Type  Alias  Directory
----------------------------------------------
(default)               //var/lib/svn/practice

Trac [/home/jun66j5/var/trac/0.12-stable]> repository remove ''
Trac [/home/jun66j5/var/trac/0.12-stable]> repository list

Name  Type  Alias  Directory
----------------------------

似たようなチケットは #8179 (Assertion `svn_path_is_canonical(base, pool)' failed: while using "Annotate") – The Trac Project かなぁ。

Subversion 1.6.x は何も assertion で殺さなくてもいいのに。