Ticket #9546: bzr.rb-fix-head-revision-query.patch
| File bzr.rb-fix-head-revision-query.patch, 0.8 kB (added by michiels, 1 year ago) |
|---|
-
lib/capistrano/recipes/deploy/scm/bzr.rb
old new 63 63 # If the 'revision' argument, on the other hand, is not :head, it is 64 64 # simply returned. 65 65 def query_revision(revision) 66 if revision == head 67 yield(scm(:revno, repository)).chomp 68 else 69 revision 70 end 66 revision 71 67 end 72 68 73 69 private 74 70 75 71 def revswitch(revision) 76 if revision == :head 72 if revision == :head || revision.nil? 77 73 nil 78 74 else 79 75 "-r #{revision}"