Ticket #10922: bzr_export_patch.diff
| File bzr_export_patch.diff, 0.9 kB (added by drudru, 9 months ago) |
|---|
-
bzr.rb
old new 33 33 commands.join(" && ") 34 34 end 35 35 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 41 37 def export(revision, destination) 42 [checkout(revision, destination) && "rm -rf #{destination}/.bzr"].join(" && ")38 scm :export, revswitch(revision), destination, repository 43 39 end 44 40 45 41 # The bzr "diff" command doesn't accept a repository argument, so it