Indefero

Indefero Commit Details


Date:2008-08-29 13:38:13 (16 years 3 months ago)
Author:Loic d'Anterroches
Branch:dev, 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, svn
Commit:fad12e17c7b5bba26689c2e60d32d492915c895a
Parents: 2c7b3e1e1a08849d276698dd6d9ef903df90f12f
Message:Cosmetic changes.

Changes:

File differences

src/IDF/ScmFactory.php
4343
4444
4545
46
4647
4748
4849
case 'git':
default:
return new IDF_Git($request->project->getGitRepository());
}
}
}
src/IDF/Svn.php
101101
102102
103103
104
105104
106105
107106
108
109
110
107
108
109
111110
112
113
114
111
112
115113
116114
117115
118116
119117
120118
121
119
122120
123121
124122
125123
126
124
127125
128126
129127
......
147145
148146
149147
150
148
151149
152150
153151
......
171169
172170
173171
174
175
172
173
176174
177
178
179
180
175
176
177
178
181179
182180
183
181
184182
185183
186184
......
230228
231229
232230
233
234
235
236
231
232
233
234
237235
238236
239237
240238
241
239
242240
243241
244242
......
276274
277275
278276
279
280
281
282
277
278
279
280
283281
284282
285
283
286284
287285
288286
......
328326
329327
330328
331
329
332330
333331
334332
......
356354
357355
358356
359
357
360358
361359
362360
......
378376
379377
380378
381
379
382380
383381
384382
escapeshellarg($rev));
$xmlLs = shell_exec($cmd);
$xml = simplexml_load_string($xmlLs);
$res = array();
foreach ($xml->list->entry as $entry) {
$file = array();
$file['type'] = $this->assoc[(String) $entry['kind']];
$file['file'] = (String) $entry->name;
$file['fullpath'] = $folder.'/'.((String) $entry->name);
$file['type'] = $this->assoc[(string) $entry['kind']];
$file['file'] = (string) $entry->name;
$file['fullpath'] = $folder.'/'.((string) $entry->name);
$file['date'] = gmdate('Y-m-d H:i:s',
strtotime((String) $entry->commit->date));
$file['rev'] = (String) $entry->commit['revision'];
strtotime((string) $entry->commit->date));
$file['rev'] = (string) $entry->commit['revision'];
// Get commit message
$currentReposFile = $this->repo.'/'.$folder.'/'.$file['file'];
$file['log'] = $this->getCommitMessage($currentReposFile, $rev);
// Get the size if the type is blob
if ($file['type'] == 'blob') {
$file['size'] = (String) $entry->size;
$file['size'] = (string) $entry->size;
}
$file['perm'] = '';
$res[] = (Object) $file;
$res[] = (object) $file;
}
return $res;
escapeshellarg($rev));
$xmlLog = shell_exec($cmd);
$xml = simplexml_load_string($xmlLog);
return (String) $xml->logentry->msg;
return (string) $xml->logentry->msg;
}
$file = array();
$file['fullpath'] = $totest;
$file['hash'] = (String) $entry->repository->uuid;
$file['type'] = $this->assoc[(String) $entry['kind']];
$file['hash'] = (string) $entry->repository->uuid;
$file['type'] = $this->assoc[(string) $entry['kind']];
$file['file'] = $totest;
$file['rev'] = (String) $entry->commit['revision'];
$file['author'] = (String) $entry->author;
$file['date'] = gmdate('Y-m-d H:i:s', strtotime((String) $entry->commit->date));
$file['size'] = (String) $entry->size;
$file['rev'] = (string) $entry->commit['revision'];
$file['author'] = (string) $entry->author;
$file['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $entry->commit->date));
$file['size'] = (string) $entry->size;
$file['log'] = '';
return (Object) $file;
return (object) $file;
}
$xmlRes = shell_exec($cmd);
$xml = simplexml_load_string($xmlRes);
$res['author'] = (String) $xml->logentry->author;
$res['date'] = gmdate('Y-m-d H:i:s', strtotime((String) $xml->logentry->date));
$res['title'] = (String) $xml->logentry->msg;
$res['commit'] = (String) $xml->logentry['revision'];
$res['author'] = (string) $xml->logentry->author;
$res['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $xml->logentry->date));
$res['title'] = (string) $xml->logentry->msg;
$res['commit'] = (string) $xml->logentry['revision'];
$res['changes'] = $this->getDiff($rev);
$res['tree'] = '';
return (Object) $res;
return (object) $res;
}
private function getDiff($rev='HEAD')
$res = array();
foreach ($xml->logentry as $entry) {
$log = array();
$log['author'] = (String) $entry->author;
$log['date'] = gmdate('Y-m-d H:i:s', strtotime((String) $entry->date));
$log['title'] = (String) $entry->msg;
$log['commit'] = (String) $entry['revision'];
$log['author'] = (string) $entry->author;
$log['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $entry->date));
$log['title'] = (string) $entry->msg;
$log['commit'] = (string) $entry['revision'];
$log['full_message'] = '';
$res[] = (Object) $log;
$res[] = (object) $log;
}
return $res;
// Get the value of each property
foreach ($props->target->property as $prop) {
$key = (String) $prop['name'];
$key = (string) $prop['name'];
$res[$key] = $this->getProperty($key, $rev, $path);
}
$xmlProp = shell_exec($cmd);
$prop = simplexml_load_string($xmlProp);
return (String) $prop->target->property;
return (string) $prop->target->property;
}
$xmlInfo = shell_exec($cmd);
$xml = simplexml_load_string($xmlInfo);
return (String) $xml->entry->commit['revision'];
return (string) $xml->entry->commit['revision'];
}
}
src/IDF/Views/Source.php
6868
6969
7070
71
7172
7273
7374
$branches[0]));
return new Pluf_HTTP_Response_Redirect($url);
}
$res = $scm->filesAtCommit($commit);
$cobject = $scm->getCommit($commit);
$tree_in = in_array($commit, $branches);
src/IDF/templates/source/changelog.html
66
77
88
9
109
1110
1211
......
3837
3938
4039
41
42
43
40
41
42
43
4444
45
4645
46
47
4748
4849
4950
<tr>
<th>{trans 'Age'}</th>
<th>{trans 'Message'}</th>
{* <th>{trans 'Details'}</th> *}
</tr>
</thead>
<tbody>
</p>
{/if}
{if $scm == 'svn'}
<p><strong>{trans 'Revison:'} {$commit}</strong><br />
<form class="star" action="{url 'IDF_Views_Source::changelogRev', array($project.shortname)}" method="get">
<input accesskey="4" type="text" value="{$commit}" name="rev" size="20" />
<form class="star" action="{url 'IDF_Views_Source::changelogRev', array($project.shortname)}" method="get">
<p><strong>{trans 'Revison:'}</strong> {$commit}</p>
<p>
<input accesskey="4" type="text" value="{$commit}" name="rev" size="5" />
<input type="submit" name="s" value="{trans 'Go to revision'}" />
</form>
</p>
</form>
{/if}
{/block}
src/IDF/templates/source/svn/tree.html
5656
5757
5858
59
59
6060
6161
6262
6363
64
65
66
64
65
66
67
6768
68
69
6970
70
71
7172
{/foreach}
</tbody>
</table>
<p class="right soft"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /></a> <kbd>svn checkout {$project.getSvnDaemonUrl()}@{$commit}</kbd></p>
<p class="right soft"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /> <kbd>svn checkout {$project.getSvnDaemonUrl()}@{$commit}</kbd></p>
{/block}
{block context}
<p><strong>{trans 'Revison:'} {$commit}</strong><br />
<form class="star" action="{url 'IDF_Views_Source::treeRev', array($project.shortname)}" method="get">
<input accesskey="4" type="text" value="{$commit}" name="rev" size="20" />
<form class="star" action="{url 'IDF_Views_Source::treeRev', array($project.shortname)}" method="get">
<p><strong>{trans 'Revison:'}</strong> {$commit}</p>
<p>
<input accesskey="4" type="text" value="{$commit}" name="rev" size="5" />
<input type="hidden" name="sourcefile" value="{$base}"/>
<input type="submit" name="s" value="{trans 'Go to revision'}" />
<input type="submit" name="s" value="{trans 'Go to revision'}" /></p>
</form>
</p>
{/block}

Archive Download the corresponding diff file

Page rendered in 0.09321s using 13 queries.