Fixed issue 88, Mercurial support doesn't show all directories.
This commit is contained in:
committed by
Loic d'Anterroches
parent
31bd7e1d19
commit
e535fbf5e1
@@ -149,7 +149,7 @@ class IDF_Scm_Mercurial
|
|||||||
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
|
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
|
||||||
$file = trim($file);
|
$file = trim($file);
|
||||||
$dir = explode('/', $file, -1);
|
$dir = explode('/', $file, -1);
|
||||||
preg_match_all('|(\w+)/|', $file, $dir);
|
preg_match_all('|([a-zA-Z0-9_-]+)/|', $file, $dir);
|
||||||
$tmp = '';
|
$tmp = '';
|
||||||
for ($i=0; $i < count($dir[1]); $i++) {
|
for ($i=0; $i < count($dir[1]); $i++) {
|
||||||
if ($i > 0) {
|
if ($i > 0) {
|
||||||
@@ -206,7 +206,7 @@ class IDF_Scm_Mercurial
|
|||||||
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
|
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
|
||||||
$file = trim($file);
|
$file = trim($file);
|
||||||
$dir = explode('/', $file, -1);
|
$dir = explode('/', $file, -1);
|
||||||
preg_match_all('|(\w+)/|', $file, $dir);
|
preg_match_all('|([a-zA-Z0-9_-]+)/|', $file, $dir);
|
||||||
$tmp = '';
|
$tmp = '';
|
||||||
for ($i=0; $i < count($dir[1]); $i++) {
|
for ($i=0; $i < count($dir[1]); $i++) {
|
||||||
if ($i > 0) {
|
if ($i > 0) {
|
||||||
|
Reference in New Issue
Block a user