svk のデバック出力
svk を使い始めてみたけれど,
$ svk update -s Syncing https://svn.example.jp/repos/svn-repository Retrieving log information from 17366 to 17986 名前がファイルシステムのディレクトリを参照していません: パス 'branches/foo' は存在しません
と言われて, sync ができない.
エラーメッセージを検索しても出てこないので, LANG=C にしてやってみた.
$ LANG=C svk update -s Syncing https://svn.example.jp/repos/svn-repository Retrieving log information from 17366 to 17986 Name does not refer to a filesystem directory: Path 'branches/foo' not present
このエラーメッセージで検索しても, 原因がよくわからないので, svk をデバックしてみることに.
$ svk help environment snip... $SVKLOGLEVEL The lowest log level that svk will present to the user. The log levels are: DEBUG, INFO, WARN, ERROR and FATAL. The default log level is INFO; this includes progress messages for long-running commands (such as sync). For non-interactive use (such as for cron jobs) it might be useful to set $SVKLOGLEVEL to WARN. snip... $SVKSVNBACKTRACE (For debugging use only.) If this environment variable is set to a true value, any error message which comes from the Subversion libraries will be accompanied by a stack backtrace.
ということなので, 以下の環境変数を設定.
export SVKSVNBACKTRACE=1 export SVKLOGLEVEL=DEBUG
% env LANG=C svk update -s Syncing https://svn.example.jp/repos/svn-repository Retrieving log information from 17366 to 17986 Name does not refer to a filesystem directory: Path 'branches/foo' not present at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Command.pm line 193 SVK::Command::__ANON__('_p_svn_error_t=SCALAR(0x17b00c8)') called at /usr/local/lib/perl5/site_perl/5.8.8/mach/SVN/Delta.pm line 173 eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8/mach/SVN/Delta.pm line 173 SVN::Delta::Editor::AUTOLOAD('SVN::Mirror::Ra::NewMirrorEditor=HASH(0x17a9968)', 'branches/foo', '_p_void=SCALAR(0x17b0038)', 122, 'SCALAR(0x17a9cf8)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Mirror/Ra.pm line 961 SVN::Mirror::Ra::NewMirrorEditor::open_directory('SVN::Mirror::Ra::NewMirrorEditor=HASH(0x17a9968)', 'branches/foo', '_p_void=SCALAR(0x17b0038)', 122, 'SCALAR(0x17a9cf8)') called at /usr/local/lib/perl5/site_perl/5.8.8/mach/SVN/Delta.pm line 173 SVN::Delta::Editor::AUTOLOAD('SVN::Simple::Edit=HASH(0x17a9d88)', 'branches/foo', '_p_void=SCALAR(0x17b0038)', 122, 'SCALAR(0x17a9cf8)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Simple/Edit.pm line 219 SVN::Simple::Edit::open_directory('SVN::Simple::Edit=HASH(0x17a9d88)', 'branches/foo') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Simple/Edit.pm line 131 SVN::Simple::Edit::open_missing('SVN::Simple::Edit=HASH(0x17a9d88)', 'branches/foo') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Simple/Edit.pm line 186 SVN::Simple::Edit::find_pbaton('SVN::Simple::Edit=HASH(0x17a9d88)', 'branches/foo/branches', 'CODE(0x1641bf8)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Simple/Edit.pm line 298 SVN::Simple::Edit::delete_entry('SVN::Simple::Edit=HASH(0x17a9d88)', 'branches/foo/branches') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Mirror/Ra.pm line 552 SVN::Mirror::Ra::mirror('SVN::Mirror::Ra=HASH(0x1740998)', 17365, 'HASH(0x1740d28)', 17366, 'Seasoft', '2008-06-22T03:18:31.871065Z', '\x{e3}\x{83}\x{aa}\x{e3}\x{83}\x{9d}\x{e3}\x{82}\x{b8}\x{e3}\x{83}\x{88}\x{e3}\x{83}\x{aa}\x{e4}\x{b8}\x{8a}\x{e3}\x{81}\x{ab}\x{e3}\x{81}\x{af}\x{e4}\x{b8}\x{8d}\x{e8}\x{a6}\x{81}\x{e3}\x{81}\x{a8}\x{e6}\x{80}\x{9d}\x{e3}\x{82}\x{8f}\x{e3}\x{82}\x{8c}\x{e3}\x{82}\x{8b}\x{e7}\x{a9}\x{ba}\x{e3}\x{83}\x{95}\x{e3}\x{82}\x{a9}\x{e3}\x{83}\x{ab}\x{e3}\x{83}\x{80}\x{e3}...', '_p_apr_pool_t=SCALAR(0x1740e38)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Mirror/Ra.pm line 704 SVN::Mirror::Ra::__ANON__('HASH(0x1740d28)', 17366, 'Seasoft', '2008-06-22T03:18:31.871065Z', '\x{e3}\x{83}\x{aa}\x{e3}\x{83}\x{9d}\x{e3}\x{82}\x{b8}\x{e3}\x{83}\x{88}\x{e3}\x{83}\x{aa}\x{e4}\x{b8}\x{8a}\x{e3}\x{81}\x{ab}\x{e3}\x{81}\x{af}\x{e4}\x{b8}\x{8d}\x{e8}\x{a6}\x{81}\x{e3}\x{81}\x{a8}\x{e6}\x{80}\x{9d}\x{e3}\x{82}\x{8f}\x{e3}\x{82}\x{8c}\x{e3}\x{82}\x{8b}\x{e7}\x{a9}\x{ba}\x{e3}\x{83}\x{95}\x{e3}\x{82}\x{a9}\x{e3}\x{83}\x{ab}\x{e3}\x{83}\x{80}\x{e3}...', '_p_apr_pool_t=SCALAR(0x1740e38)') called at /usr/local/lib/perl5/site_perl/5.8.8/mach/SVN/Ra.pm line 492 SVN::Ra::AUTOLOAD('SVN::Ra=HASH(0x1740628)', 'ARRAY(0x1740948)', 17366, 17986, 0, 1, 1, 'CODE(0x17407a8)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Mirror/Ra.pm line 707 eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8/SVN/Mirror/Ra.pm line 681 SVN::Mirror::Ra::run('SVN::Mirror::Ra=HASH(0x1740998)', 'undef') called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Mirror.pm line 583 SVK::Mirror::run_svnmirror_sync('SVK::Mirror=HASH(0x15c13e8)', 'HASH(0x15c6868)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Mirror.pm line 499 SVK::Mirror::run('SVK::Mirror=HASH(0x15c13e8)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Command/Update.pm line 125 SVK::Command::Update::run('SVK::Command::Update=HASH(0x152e3d8)', 'SVK::Path::Checkout=HASH(0x159c748)') called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Command.pm line 222 eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Command.pm line 220 eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Command.pm line 200 SVK::Command::run_command('SVK::Command::Update=HASH(0x152e3d8)') called at /usr/local/lib/perl5/site_perl/5.8.8/App/CLI.pm line 79 App::CLI::dispatch('SVK::Command', 'xd', 'SVK::XD=HASH(0xacc5c8)', 'output', 'undef') called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Command.pm line 164 eval {...} called at /usr/local/lib/perl5/site_perl/5.8.8/SVK/Command.pm line 164 SVK::Command::invoke('SVK::Command', 'SVK::XD=HASH(0xacc5c8)', 'update', 'undef', '-s') called at /usr/local/bin/svk line 169 perl in free(): warning: chunk is already free perl in free(): warning: chunk is already free
と, 大量に出てきたので, 頑張ってみることにします...