2010-02-02(Tue) [長年日記]
_ [Capistrano]bzr
bzrとの組み合わせでこける。以下パッチ。
kog@ubu3:/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.14/lib/capistrano/recipes/deploy/scm$ diff -u bzr.rb.orig bzr.rb --- bzr.rb.orig 2010-02-02 02:02:52.000000000 +0900 +++ bzr.rb 2010-02-02 01:26:03.000000000 +0900 @@ -62,7 +62,8 @@ return revision unless :head == revision command = scm('revno', repository) - result = yield(command) + result = yield(command).chomp end # Increments the given revision number and returns it.
このパッチをあてると、コマンドライン表示が1行になる
* executing `deploy' * executing `deploy:update' ** transaction: start * executing `deploy:update_code' executing locally: "bzr revno " * getting (via export) revision 3 to /tmp/20100201170421 executing locally: bzr export -r 3 /tmp/20100201170421 ←これ! compressing /tmp/20100201170421 to /tmp/20100201170421.tar.gz executing locally: tar czf 20100201170421.tar.gz 20100201170421 servers: ["bsd1"]