Fixed issue 235, need consistent use of file and fullpath in the SCM backend

This commit is contained in:
Loic d'Anterroches
2009-06-19 15:51:31 +02:00
parent b320375d60
commit a15107558c
4 changed files with 12 additions and 21 deletions

View File

@@ -196,9 +196,11 @@ class IDF_Scm_Mercurial extends IDF_Scm
}
$tmp .= $dir[$i];
if ($tmp == $totest) {
$pathinfo = pathinfo($totest);
return (object) array('perm' => '000', 'type' => 'tree',
'hash' => $hash,
'file' => $totest,
'fullpath' => $totest,
'file' => $pathinfo['basename'],
'commit' => $commit
);
}
@@ -214,9 +216,11 @@ class IDF_Scm_Mercurial extends IDF_Scm
$type = 'blob';
}
if ($totest == $file) {
$pathinfo = pathinfo($totest);
return (object) array('perm' => $perm, 'type' => $type,
'hash' => $hash,
'file' => $file,
'fullpath' => $totest,
'file' => $pathinfo['basename'],
'commit' => $commit
);
}