lib/tasks/add.rb in dev-2.0.198 vs lib/tasks/add.rb in dev-2.0.199
- old
+ new
@@ -10,14 +10,24 @@
else
if(defined?(SOURCE))
if(File.exists?('.svn'))
SOURCE.each{|f|
if(File.exists?(f) && File.file?(f))
- status=Command.output("svn status #{f}")
- error=Command.error("svn status #{f}")
+ if(f.include?(' '))
+ status=Command.output("svn status \"#{f}\"")
+ error=Command.error("svn status \"#{f}\"")
+ else
+ status=Command.output("svn status #{f}")
+ error=Command.error("svn status #{f}")
+ end
if(status.include?('?') || status.include?('was not found') || error.include?('was not found'))
- puts "svn add #{f} --parents"
- add "svn add #{f} --parents"
+ if(f.include?(' '))
+ puts "svn add \"#{f}\" --parents"
+ add "svn add \"#{f}\" --parents"
+ else
+ puts "svn add #{f} --parents"
+ add "svn add #{f} --parents"
+ end
end
end
}
end
if(File.exists?('.git'))
\ No newline at end of file