Changeset 7869
- Timestamp:
- 10/14/07 02:38:29 (1 year ago)
- Files:
-
- tools/capistrano/CHANGELOG (modified) (1 diff)
- tools/capistrano/lib/capistrano/recipes/deploy.rb (modified) (1 diff)
- tools/capistrano/lib/capistrano/recipes/deploy/scm/base.rb (modified) (1 diff)
- tools/capistrano/lib/capistrano/recipes/deploy/scm/subversion.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/capistrano/CHANGELOG
r7860 r7869 1 1 *SVN* 2 3 * Fix deploy:pending to query SCM for the subsequent revision so that it does not include the last deployed change [Jamis Buck] 2 4 3 5 * Prefer 'Last Changed Rev' over 'Revision' when querying latest revision via Subversion [Jamis Buck] tools/capistrano/lib/capistrano/recipes/deploy.rb
r7385 r7869 447 447 DESC 448 448 task :default, :except => { :no_release => true } do 449 system(source.local.log(current_revision)) 449 from = source.next_revision(current_revision) 450 system(source.local.log(from)) 450 451 end 451 452 end tools/capistrano/lib/capistrano/recipes/deploy/scm/base.rb
r7136 r7869 115 115 end 116 116 117 # Returns the revision number immediately following revision, if at 118 # all possible. A block should always be passed to this method, which 119 # accepts a command to invoke and returns the result, although a 120 # particular SCM's implementation is not required to invoke the block. 121 # 122 # By default, this method simply returns the revision itself. If a 123 # particular SCM is able to determine a subsequent revision given a 124 # revision identifier, it should override this method. 125 def next_revision(revision) 126 revision 127 end 128 117 129 # Should analyze the given text and determine whether or not a 118 130 # response is expected, and if so, return the appropriate response. tools/capistrano/lib/capistrano/recipes/deploy/scm/subversion.rb
r7860 r7869 60 60 end 61 61 62 # Increments the given revision number and returns it. 63 def next_revision(revision) 64 revision.to_i + 1 65 end 66 62 67 # Determines what the response should be for a particular bit of text 63 68 # from the SCM. Password prompts, connection requests, passphrases,