Indefero

Indefero Commit Details


Date:2008-08-02 03:36:29 (16 years 4 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:d46ddea543c808845538ee1f4830731c100ca55e
Parents: cf9360a1a87f8a98dc506a316055537b95ec245f
Message:Added tests for the Git class and removed unused code.

Changes:

File differences

src/IDF/IssueComment.php
117117
118118
119119
120
121
122
123
124
$q->create();
}
}
function IDF_IssueComment_Filter($text)
{
return wordwrap($text, 80, "\n", true);
}
src/IDF/Tests/TestGit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
# ***** BEGIN LICENSE BLOCK *****
# This file is part of InDefero, an open source project management application.
# Copyright (C) 2008 CĂ©ondo Ltd and contributors.
#
# InDefero is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# InDefero is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# ***** END LICENSE BLOCK ***** */
/**
* Test the git class.
*/
class IDF_Tests_TestGit extends UnitTestCase
{
public function __construct()
{
parent::__construct('Test the git class.');
}
public function testParseLog()
{
$log_lines = preg_split("/\015\012|\015|\012/", file_get_contents(dirname(__FILE__).'/test-log.txt'));
$log = IDF_Git::parseLog($log_lines, 3);
$this->assertEqual('Fixed the middleware to correctly return a 404 error if the project is', $log[0]->title);
}
}
src/IDF/Tests/test-log.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
commit cf9360a1a87f8a98dc506a316055537b95ec245f
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sat Aug 2 09:48:55 2008 +0200
Fixed the middleware to correctly return a 404 error if the project is
not found.
commit 953d7c4ecd37e2c89058b656ee586ae73bfe1e8f
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sat Aug 2 09:48:35 2008 +0200
Added the name of the login view.
commit f4f8f9615ab460b9966509bd60b740c84ec9ecc9
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sat Aug 2 09:42:05 2008 +0200
Added the link to commit and issues in the changelog.
commit 4c5bd8d2be673c9d86d8b6b5108d551982491d5c
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sat Aug 2 09:38:06 2008 +0200
Fixed bug when looking at a commit which is a merge.
When you merge you do not get always a diff of files. This fix correct
that for the case of commit 9a2b8e249acad9f844.
commit fd6031d7f50085b2e42bb539a886fc9175f6fe27
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Aug 1 22:18:58 2008 +0200
Fixed SQL to follow the standards.
commit 83658ac860328568d8570cbbadde565de8348be9
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Aug 1 22:15:49 2008 +0200
Fixed to have standard SQL.
commit 593afd9b8b18efde2a7817d57e8f101112aaa6fe
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Aug 1 22:13:25 2008 +0200
Fix for PostgreSQL.
commit a831c749d849f903f84698c36666affd391aa04d
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Aug 1 22:03:56 2008 +0200
Fixed boolean for PostgreSQL.
commit 7d806325579547facd27a0c44b54872fe9d7fb2d
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Aug 1 00:50:44 2008 +0200
Added code indentation.
commit 80ce87009e0249b7faf1143075bb4006bd2f8e35
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Aug 1 00:38:29 2008 +0200
Added a better commit diff.
commit cb15f036fe91edb9c07ff07f13bc592a8877f3c2
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Thu Jul 31 22:54:02 2008 +0200
Fixed some typos.
commit 1b3a42940d30abb342d9c4b8ff166a586701b784
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Thu Jul 31 22:50:21 2008 +0200
Added the registration procedure.
commit 416d13e249da7d8717ebb15966b9dbbd5c0188ba
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Tue Jul 29 22:33:13 2008 +0200
Added the registration form.
Still need a lot :)
commit c50e218704dcc81eb346cc757e4c1bdbd0808d8b
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Tue Jul 29 21:18:02 2008 +0200
Added a project home.
commit ccf24df13120ae1e64225ec27db1ee647c9df4d4
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Tue Jul 29 15:13:40 2008 +0200
Link to the corresponding tree in the commit view.
commit a6716c77160c9bbb4829eff5c6e11c7b9a4f6d50
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Mon Jul 28 22:09:17 2008 +0200
Added the visualisation of a commit.
commit 3fb47562ce0453af4481b1b470581f5bcbbc6b3b
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Mon Jul 28 20:31:23 2008 +0200
Automatically create links in the issue description and comments.
Link to issues but also commits.
commit 3dbae6272a9f239499038f069f6472dfceb5e73e
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sun Jul 27 21:38:49 2008 +0200
Added smooth handling of bad files and commits.
Now simply redirect to the root of the first available branch.
commit 8a0a35726cd82e3003675d8ba432efe68f7c4f74
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sun Jul 27 17:46:04 2008 +0200
Fixed typo.
commit b6084cbf070bf9e78101b1088d5d6c0d852ed6dc
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sun Jul 27 17:43:51 2008 +0200
Improved the support of the git browser.
Now the reference is always a commit as from a commit it is always possible to travel back to the corresponding tree and blobs.
commit 9a2b8e249acad9f84401846cf87bf040ffd585b3
Merge: 789c7ed... 24e8c80...
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sun Jul 27 01:51:55 2008 +0200
Merge branch 'gitbrowser'
commit 789c7ed43d2b551ba9de97dc8af87cb8d6fa208c
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sun Jul 27 01:51:08 2008 +0200
Take into account if in one branch but listing another.
Need to check how this is working on a bar repository.
commit 24e8c80dfbd358710464cda0e5570655d5f200c6
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sun Jul 27 01:37:43 2008 +0200
Updated the docstring.
commit c915f8fccfc20a1a491bb88dd7848005dc1641ff
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sun Jul 27 01:31:10 2008 +0200
Added the changelog and fixed the source browser.
The source browser is normally a little bit more robust.
commit f57a0ec08bfbaa830f4f7fb39f1f7e39d400ecb3
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sat Jul 26 20:17:18 2008 +0200
Cosmetic improvements.
commit 876e206742179ba640667430b5cad6b45c651250
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Sat Jul 26 18:42:41 2008 +0200
First work on the git browser.
commit 2e711bee8d2b7c6680d6d44cb796f2cc67c9ed68
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Jul 25 14:25:50 2008 +0200
Added a nice formatting of the issue comments.
commit 4eea3797b26cb3ab34c5b4e1b7ff5098f2284deb
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Jul 25 14:15:58 2008 +0200
Added the autocompletion of the owner and cosmetic changes.
commit e5d296d8638db9bd59a85360d80e126b901befeb
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Jul 25 11:17:56 2008 +0200
Added the Shift+w hotkey to get the working list of the user.
commit d19dbb441c86740d6a2df2501cb5875a5fc34e19
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Jul 25 11:16:18 2008 +0200
Added a hotkey tag to easily add them.
Added a new Shift+m hotkey to access the list of submitted issues.
commit cc5ec30e6a06a3c855848b907512e4b796950981
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Jul 25 10:28:35 2008 +0200
Correctly set the copyrights.
commit efbd82fccb20b0b4c9ac82777b8bdf7d83be0e40
Author: Loic d'Anterroches <titoo@users.sourceforge.net>
Date: Fri Jul 25 10:26:05 2008 +0200
Initial commit.

Archive Download the corresponding diff file

Page rendered in 0.08584s using 13 queries.