Indefero

Indefero Commit Details


Date:2010-06-21 16:24:47 (14 years 6 months ago)
Author:Thomas Keller
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:24762adecc802bc557cb2cd218d1445afbebba11
Parents: 2ee665ac96c99ea238b9d4d72489eb9f3ea8a78b
Message:improve error handling and reporting of the stdio process

Changes:

File differences

src/IDF/Scm/Monotone.php
7878
7979
8080
81
8182
8283
8384
......
102103
103104
104105
106
105107
106108
107109
......
119121
120122
121123
122
123
124
125
124
126125
127
126
128127
129128
130129
......
152151
153152
154153
154
155
156
157
158
159
160
161
155162
156163
157164
......
233240
234241
235242
243
244
245
246
247
248
249
250
236251
237252
238253
$descriptors = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("pipe", "w"),
);
$this->proc = proc_open($cmd, $descriptors, $this->pipes);
fclose($this->pipes[0]);
fclose($this->pipes[1]);
fclose($this->pipes[2]);
proc_close($this->proc);
$this->proc = null;
if (!is_resource($this->pipes[1]))
return false;
$read = array($this->pipes[1]);
$write = null;
$except = null;
$read = array($this->pipes[1], $this->pipes[2]);
$streamsChanged = stream_select(
$read, $write, $except, 0, 20000
$read, $write = null, $except = null, 0, 20000
);
if ($streamsChanged === false)
$this->_waitForReadyRead();
$version = fgets($this->pipes[1]);
if ($version === false)
{
$err = fgets($this->pipes[2]);
throw new IDF_Scm_Exception(
"Could not determine stdio version: $err"
);
}
if (!preg_match('/^format-version: (\d+)$/', $version, $m) ||
$m[1] != self::$SUPPORTED_STDIO_VERSION)
{
while (true)
{
$c = fgetc($this->pipes[1]);
if ($c === false)
{
$err = fgets($this->pipes[2]);
throw new IDF_Scm_Exception(
"Could not read stdio: $err"
);
}
if ($c == ':')
{
if ($idx == 2)

Archive Download the corresponding diff file

Page rendered in 0.07376s using 13 queries.