lib/apps/svn.rb in dev-2.0.194 vs lib/apps/svn.rb in dev-2.0.195
- old
+ new
@@ -80,11 +80,10 @@
destination=tmp
end
output = "\n"
if(`svn info #{destination} 2>&1`.include?('Revision:'))
- #raise "Svn.publish: destination #{destination} already exists"
puts "Svn.publish: destination #{destination} already exists"
else
# create subversion directory
output = output + "svn mkdir #{destination} --parents --message mkdir_for_publishing"
if(!`svn mkdir #{destination} --parents --message mkdir_for_publishing`.include?('Committed'))
@@ -93,20 +92,13 @@
Dir.chdir(source_dir) do
files = source_filelist.to_a
end
files=source_filelist
- #Dir.chdir(source_dir) do
- # files=FileList.new(source_glob).to_a
- #end
output = output + "\nfiles: "
- #Dir.chdir(source_dir) do
- files.each{|f|
- output = output + f + " "
- }
- #end
- #output = output + "\nfiles: #{files.to_s}"
-
+ files.each{|f|
+ output = output + f + " "
+ }
pwd=Dir.pwd
Dir.mktmpdir{|dir|
# checkout new subversion directory
output = output + "\nsvn checkout #{destination} #{dir}/to_publish_checkout"
\ No newline at end of file