diff -r 49cce5802570 -r c1ab4d936e8e mercurial/HGCommand.st --- a/mercurial/HGCommand.st Sat Mar 09 22:29:37 2013 +0000 +++ b/mercurial/HGCommand.st Sat Mar 09 23:14:44 2013 +0000 @@ -581,14 +581,21 @@ stdoutPipe second close. stderrPipe second close. pid isNil ifTrue:[ + stdout close. + stderr close. HGCommandError raiseErrorString: 'cannot execute hg command'. - stdout close. ^ self. ]. - (Debug and:[OperatingSystem isUNIXlike]) ifTrue:[ - stdout := stdout contents asString readStream. - stderr := stderr contents asString readStream. + OperatingSystem isUNIXlike ifTrue:[ + "/JV: Q: Why this is necessary? + stdout readWait. + stdout readWait. + Debug ifTrue:[ + stdout := stdout contents asString readStream. + stderr := stderr contents asString readStream. + ] ]. + self spawnErrorReaderOn: stderr. self spawnOutputReaderOn: stdout. @@ -610,7 +617,7 @@ "Modified: / 17-12-2011 / 19:22:00 / dundee" "Modified (format): / 27-12-2011 / 15:53:54 / dundee" "Modified: / 14-11-2012 / 13:41:57 / jv" - "Modified: / 03-03-2013 / 19:50:42 / Jan Vrany " + "Modified (format): / 09-03-2013 / 23:12:34 / Jan Vrany " ! executeOnRepository: anHGRepository