Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8902

Show
Ignore:
Timestamp:
02/19/08 23:23:24 (7 months ago)
Author:
minam
Message:

use a proper export command with bzr (closes #10922)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/capistrano/CHANGELOG

    r8901 r8902  
    11*SVN* 
     2 
     3* Use a proper export command for bzr SCM [drudru] 
    24 
    35* Use checkout instead of merge for git SCM [nuttycom] 
  • tools/capistrano/lib/capistrano/recipes/deploy/scm/bzr.rb

    r8753 r8902  
    3434        end 
    3535 
    36         # The bzr 'export' command would work fine, except it doesn't let you 
    37         # specify the repository itself, so it only works if there is a working 
    38         # tree handy, locally. Since this needs to work even on a remote host 
    39         # where there is no working tree, we'll just do a checkout, followed 
    40         # by a deletion of the ".bzr" metadata directory. 
     36        # The bzr 'export' does an export similar to other SCM systems 
    4137        def export(revision, destination) 
    42           [checkout(revision, destination) && "rm -rf #{destination}/.bzr"].join(" && ") 
     38          scm :export, revswitch(revision), destination, repository 
    4339        end 
    4440