Indefero

Indefero Commit Details


Date:2009-06-19 08:51:31 (15 years 6 months ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:a15107558c3d811a44ba550b3323d09e1120daea
Parents: b320375d60d455c90cf1308b991938f362e49535
Message:Fixed issue 235, need consistent use of file and fullpath in the SCM backend

Changes:

File differences

src/IDF/Scm/Git.php
224224
225225
226226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242227
243228
244229
......
286271
287272
288273
274
289275
290276
291277
292
278
293279
294280
295281
    }
    /**
     * Given a commit hash returns an array of files in it.
     *
     * A file is a class with the following properties:
     *
     * 'perm', 'type', 'size', 'hash', 'file'
     *
     * @param string Commit ('HEAD')
     * @param string Base folder ('')
     * @return array
     */
    public function filesAtCommit($commit='HEAD', $folder='')
    {
    }
    /**
     * Get the tree info.
     *
     * @param string Tree hash
        foreach ($out as $line) {
            list($perm, $type, $hash, $size, $file) = preg_split('/ |\t/', $line, 5, PREG_SPLIT_NO_EMPTY);
            if ($totest == $file) {
                $pathinfo = pathinfo($file);
                return (object) array('perm' => $perm, 'type' => $type,
                                      'size' => $size, 'hash' => $hash,
                                      'fullpath' => $file,
                                      'file' => $file);
                                      'file' => $pathinfo['basename']);
            }
        }
        return false;
src/IDF/Scm/Mercurial.php
196196
197197
198198
199
199200
200201
201
202
203
202204
203205
204206
......
214216
215217
216218
219
217220
218221
219
222
223
220224
221225
222226
                }
                $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
                                          );
                }
                $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
                                      );
            }
src/IDF/Scm/Svn.php
248248
249249
250250
251
251
252
252253
253254
254255
        $file['fullpath'] = $filename;
        $file['hash'] = (string) $entry->repository->uuid;
        $file['type'] = $this->assoc[(string) $entry['kind']];
        $file['file'] = $filename;
        $pathinfo = pathinfo($filename);
        $file['file'] = $pathinfo['basename'];
        $file['rev'] = $rev;
        $file['author'] = (string) $entry->author;
        $file['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $entry->commit->date));
src/IDF/Views/Source.php
201201
202202
203203
204
204
205205
206206
207207
......
322322
323323
324324
325
325
326326
327327
328328
            }
        }
        $bc = self::makeBreadCrumb($request->project, $commit, $request_file_info->file);
        $bc = self::makeBreadCrumb($request->project, $commit, $request_file_info->fullpath);
        $page_title = $bc.' - '.$title;
        $cobject = $scm->getCommit($commit);
        $commit = $extra['commit'];
        $request_file = $extra['request_file'];
        $request_file_info = $extra['request_file_info'];
        $bc = self::makeBreadCrumb($request->project, $commit, $request_file_info->file);
        $bc = self::makeBreadCrumb($request->project, $commit, $request_file_info->fullpath);
        $page_title = $bc.' - '.$title;
        $cobject = $scm->getCommit($commit);
        $in_branches = $scm->inBranches($commit, $request_file);

Archive Download the corresponding diff file

Page rendered in 0.12376s using 14 queries.