Defect #3951
open
The SubversionAdapter entries function should use io.readlines instead of io.read
Added by Brandon Enochs over 15 years ago.
Updated over 15 years ago.
Description
The SubversionAdapter entries function should use io.readlines instead of io.read. It has the potential to proceed with a partial document.
What is the problem with io.read ?
Jean-Philippe Lang wrote:
What is the problem with io.read ?
io.read doesn't wait until the process was finished. We had an SVN server that we were communication with over a slow connection. As a result, io.read would only return a small portion of the SVN entries before trying to parse the XML file.
Brandon Enochs wrote:
Jean-Philippe Lang wrote:
What is the problem with io.read ?
io.read doesn't wait until the process was finished. We had an SVN server that we were communication with over a slow connection. As a result, io.read would only return a small portion of the SVN entries before trying to parse the XML file.
io.readline and io.readlines have the same problem.
It reads only small portion.
Really? Using io.readlines fixed our problem of io.read not waiting until the process had finished.
Also available in: Atom
PDF