lib/ohloh_scm/adapters/bzr/misc.rb in ohloh_scm-2.2.10 vs lib/ohloh_scm/adapters/bzr/misc.rb in ohloh_scm-2.2.11

- old
+ new

@@ -28,9 +28,13 @@ def is_merge_commit?(commit) parent_tokens(commit).size > 1 end + def export_tag(dest_dir, tag_name) + run "cd '#{path}' && bzr export -r tag:#{tag_name} #{dest_dir}" + end + def export(dest_dir, token=head_token) # Unlike other SCMs, Bzr doesn't simply place the contents into dest_dir. # It actually *creates* dest_dir. Since it should already exist at this point, # first we have to delete it. Dir.delete(dest_dir) if File.exist?(dest_dir)