repo.or.cz
/
htmlpurifier.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release 2.1.0.
[htmlpurifier.git]
/
svn.php
blob
c57e448314e30ffd2d400de6e2fb49e8a0cd0c59
1
<
?php
2
3
function
svn_info
(
$dir
) {
4
$raw
=
explode
(
"
\n
"
,
shell_exec
(
"svn info
$dir
"
));
5
$svn_info
=
array
();
6
foreach
(
$raw
as
$r
) {
7
if
(
empty
(
$r
))
continue
;
8
list
(
$k
,
$v
) =
explode
(
': '
,
$r
,
2
);
9
$svn_info
[
$k
] =
$v
;
10
}
11
return
$svn_info
;
12
}
13