Skip to content

Commit

Permalink
Implement Bzr#next_revision so that pending changes can be reported c…
Browse files Browse the repository at this point in the history
…orrectly (closes #10928)

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@8903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed Feb 19, 2008
1 parent 31140ad commit b63fa0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVN*

* Implement Bzr#next_revision so that pending changes can be reported correctly [casret]

* Use a proper export command for bzr SCM [drudru]

* Use checkout instead of merge for git SCM [nuttycom]
Expand Down
5 changes: 5 additions & 0 deletions lib/capistrano/recipes/deploy/scm/bzr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def query_revision(revision)
revision
end

# Increments the given revision number and returns it.
def next_revision(revision)
revision.to_i + 1
end

private

def revswitch(revision)
Expand Down

0 comments on commit b63fa0e

Please sign in to comment.