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

Ticket #10922: bzr_export_patch.diff

File bzr_export_patch.diff, 0.9 kB (added by drudru, 9 months ago)

patch for bzr.rb

  • bzr.rb

    old new  
    3333          commands.join(" && ") 
    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 
    4541        # The bzr "diff" command doesn't accept a repository argument, so it