entries = Entries.new\r
cmd = "#{SVN_BIN} list --xml #{target(path)}@#{identifier}"\r
cmd << " --username #{@login} --password #{@password}" if @login\r
+ cmd << " 2>&1"\r
shellout(cmd) do |io|\r
+ output = io.read\r
begin\r
- doc = REXML::Document.new(io)\r
+ doc = REXML::Document.new(output)\r
doc.elements.each("lists/list/entry") do |entry|\r
entries << Entry.new({:name => entry.elements['name'].text,\r
:path => ((path.empty? ? "" : "#{path}/") + entry.elements['name'].text),\r
})\r
end\r
rescue Exception => e\r
- logger.info("Error parsing svn output: #{e.message}")\r
+ logger.error("Error parsing svn output: #{e.message}")\r
+ logger.error("Output was:\n #{output}")\r
end\r
end\r
return nil if $? && $?.exitstatus != 0\r