Indefero

Indefero Commit Details


Date:2010-04-15 08:40:36 (14 years 8 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:10f08386f7e0d5af692d9fb8ed0978e4c0ca7af1
Parents: 45fa309c07953262a1a5a5e7acead3d79d0e64d3
Message:Fixed to have a simpler code.

Changes:

File differences

src/IDF/Plugin/SyncGit.php
6565
6666
6767
68
69
70
71
68
69
7270
7371
7472
*/
static public function postUpdate($signal, &$params)
{
// Find the corresponding project.
$git_dir = substr($params['git_dir'], 0, -4); // Chop the ".git"
$elts = preg_split('#/#', $git_dir, -1, PREG_SPLIT_NO_EMPTY);
$pname = array_pop($elts);
// Chop the ".git" and get what is left
$pname = basename(substr($params['git_dir'], 0, -4));
try {
$project = IDF_Project::getOr404($pname);
} catch (Pluf_HTTP_Error404 $e) {
src/IDF/Plugin/SyncSvn.php
242242
243243
244244
245
246
247
245
248246
249247
250248
*/
public function processSvnUpdateTimeline($params)
{
$repo_dir = $params['repo_dir'];
$elts = preg_split('#/#', $repo_dir, -1, PREG_SPLIT_NO_EMPTY);
$pname = array_pop($elts);
$pname = basename($params['repo_dir']);
try {
$project = IDF_Project::getOr404($pname);
} catch (Pluf_HTTP_Error404 $e) {

Archive Download the corresponding diff file

Page rendered in 0.07756s using 13 queries.