public function getStatus()
{
/** @var $result CallResult */
$result = $this->getSvn()->{'status'}($this->getRepositoryPath(), array('--xml'));
$result->assertSuccess(sprintf('Cannot retrieve status from "%s"', $this->getRepositoryPath()));
$xml = simplexml_load_string($result->getStdOut());
if (!$xml) {
throw new \RuntimeException(sprintf('Cannot read status XML for "%s"', $this->getRepositoryPath()));
}
$status = array();
foreach ($xml->xpath('/status/target/entry') as $entry) {
$status[] = array('file' => (string) $entry['path'], 'status' => (string) $entry->{'wc-status'}['item']);
}
return $status;
}