mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
use a proper export command with bzr (closes #10922)
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@8902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
c2a223e6ec
commit
26e0ce324b
2 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Use a proper export command for bzr SCM [drudru]
|
||||
|
||||
* Use checkout instead of merge for git SCM [nuttycom]
|
||||
|
||||
* Fix typo in Subversion SCM module, encountered when an update fails [kemiller]
|
||||
|
|
|
@ -33,13 +33,9 @@ module Capistrano
|
|||
commands.join(" && ")
|
||||
end
|
||||
|
||||
# The bzr 'export' command would work fine, except it doesn't let you
|
||||
# specify the repository itself, so it only works if there is a working
|
||||
# tree handy, locally. Since this needs to work even on a remote host
|
||||
# where there is no working tree, we'll just do a checkout, followed
|
||||
# by a deletion of the ".bzr" metadata directory.
|
||||
# The bzr 'export' does an export similar to other SCM systems
|
||||
def export(revision, destination)
|
||||
[checkout(revision, destination) && "rm -rf #{destination}/.bzr"].join(" && ")
|
||||
scm :export, revswitch(revision), destination, repository
|
||||
end
|
||||
|
||||
# The bzr "diff" command doesn't accept a repository argument, so it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue