Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implement Capistrano::Deploy::SCM::Bzr#query_revision() according to …

…the documentation. Now, revision :head is really translated into a revision number by yielding to command "bzr revno #{repository}".
  • Loading branch information...
commit 70ae8f7d3f2e3035cf3c46ad03e0c62f17202311 1 parent 3419315
@quatauta quatauta authored leehambley committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/capistrano/recipes/deploy/scm/bzr.rb
View
5 lib/capistrano/recipes/deploy/scm/bzr.rb
@@ -59,7 +59,10 @@ def log(from, to=nil)
# If the 'revision' argument, on the other hand, is not :head, it is
# simply returned.
def query_revision(revision)
- revision
+ return revision unless :head == revision
+
+ command = scm('revno', repository)
+ result = yield(command)
end
# Increments the given revision number and returns it.
Please sign in to comment.
Something went wrong with that request. Please try again.