Fixed issue 88, Mercurial support doesn't show all directories.

dev
Julien Issler 2008-12-17 09:02:45 +01:00 committed by Loic d'Anterroches
parent 31bd7e1d19
commit e535fbf5e1
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ class IDF_Scm_Mercurial
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$file = trim($file);
$dir = explode('/', $file, -1);
preg_match_all('|(\w+)/|', $file, $dir);
preg_match_all('|([a-zA-Z0-9_-]+)/|', $file, $dir);
$tmp = '';
for ($i=0; $i < count($dir[1]); $i++) {
if ($i > 0) {
@ -206,7 +206,7 @@ class IDF_Scm_Mercurial
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$file = trim($file);
$dir = explode('/', $file, -1);
preg_match_all('|(\w+)/|', $file, $dir);
preg_match_all('|([a-zA-Z0-9_-]+)/|', $file, $dir);
$tmp = '';
for ($i=0; $i < count($dir[1]); $i++) {
if ($i > 0) {