0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-14 01:08:41 +00:00
htmlpurifier/svn.php

14 lines
279 B
PHP
Raw Normal View History

<?php
function svn_info($dir) {
$raw = explode("\n", shell_exec("svn info $dir"));
$svn_info = array();
foreach ($raw as $r) {
if (empty($r)) continue;
list($k, $v) = explode(': ', $r, 2);
$svn_info[$k] = $v;
}
return $svn_info;
}
?>