Project

General

Profile

Actions

Defect #3951

open

The SubversionAdapter entries function should use io.readlines instead of io.read

Defect #3951: The SubversionAdapter entries function should use io.readlines instead of io.read

Added by Brandon Enochs about 17 years ago. Updated about 17 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Resolution:
Affected version:

Description

The SubversionAdapter entries function should use io.readlines instead of io.read. It has the potential to proceed with a partial document.

Updated by Jean-Philippe Lang about 17 years ago Actions #1

What is the problem with io.read ?

Updated by Brandon Enochs about 17 years ago Actions #2

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.

Updated by Singyu Jo about 17 years ago Actions #3

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.

Updated by Brandon Enochs about 17 years ago Actions #4

Really? Using io.readlines fixed our problem of io.read not waiting until the process had finished.

Updated by Singyu Jo about 17 years ago Actions #5

I think IO.popen() doesn't work WELL on Windows 2003.

see this: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2672&group_id=426

Actions

Also available in: PDF Atom