コマンド†
- ignore属性の表示
% svn propget svn:ignore
- ignore属性を含むファイルの状況を表示
% svn status --no-ignore
- 「特定のリビジョン間で追加・削除・変更を行ったファイルのパスのリストだけを出力」
- Xcodeプロジェクトパッケージ内のignore属性
<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath "/Users/foo/data/svn"
SVNIndexXSLT /svnindex.xsl
Order deny,allow
Deny from all
allow from 127.0.0.1
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /Users/foo/data/users
Require valid-user
</Location>
コミットログ†
lines = `svn log --limit 10 --verbose http://sever/svn/`
mail_body = ""
lines.each{|line|
if /^-+$/ =~ line
mail_body << line
puts mail_body
mail_body = ""
end
if /^r(\d+).*(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}).*line.?$/ =~ line
mail_header = "Commit revision:" + $1 + " (" +$2 + ")"
puts mail_header
end
mail_body << line
}
- コミットログを編集する
- 既存のsvnログを取り出す。
$ svn log http://localhost/svn/firstdb/ -r 392 > log.txt
- ログを編集する。(リビジョン番号などを取り除くこと)
- ログを再設定する。(http経由では出来ないらしい)
$ svnadmin setlog --bypass-hooks /Users/foo/data/svn/firstdb/ -r 392 log.txt
- Tracと同期する。
$ /opt/local/bin/trac-admin traconmac repository resync '*'