fixed a minor issue in SubversionModel.getFile()

This commit is contained in:
hyung-hwan 2010-03-20 13:53:44 +00:00
parent c20c19b75b
commit 2941be5ebe
5 changed files with 38 additions and 9 deletions

View File

@ -83,7 +83,7 @@ CREATE TABLE issue_change (
status VARCHAR(32) NOT NULL,
owner VARCHAR(255) NOT NULL,
priority VARCHAR(32) NOT NULL,
message TEXT NOT NULL,
comment TEXT NOT NULL,
updatedon DATETIME,
updatedby VARCHAR(32),

View File

@ -42,11 +42,15 @@ class SubversionModel extends Model
$list = @svn_ls ($url, $rev, FALSE, TRUE);
if ($list === FALSE) return FALSE;
if ($info[0]['revision'] <= 0) $log = array();
else
{
$log = @svn_log ($url,
$info[0]['revision'],
$info[0]['revision'],
1, SVN_DISCOVER_CHANGED_PATHS);
if ($log === FALSE) return FALSE;
}
$fileinfo['fullpath'] = substr (
$info[0]['url'], strlen($info[0]['repos']));

View File

@ -97,7 +97,7 @@ $this->load->view (
if ($log['type'] == 'code')
{
print '<td class="obejct">';
print '<td class="object">';
print anchor (
"code/revision/{$log['projectid']}/{$xdot}/{$code['rev']}",
"r{$code['rev']}");
@ -116,7 +116,7 @@ $this->load->view (
}
else
{
print '<td class="obejct">';
print '<td class="object">';
$uri = '';
if ($log['type'] == 'project')

View File

@ -177,6 +177,8 @@ body {
.content .mainarea form textarea {
border: 1px solid #BBCCDD;
font-family: inherit;
font-size: inherit;
}
.content .mainarea .icon {

View File

@ -10,7 +10,8 @@
}
#log_mainarea_result_table {
border-collapse: collapse;
//border-collapse: collapse;
width: 100%;
}
#log_mainarea_result_table a {
@ -20,6 +21,8 @@
#log_mainarea_result_table td {
vertical-align: top;
white-space: nowrap;
padding-top: 3px;
padding-bottom: 3px;
}
#log_mainarea_result_table td.break {
@ -36,6 +39,14 @@
color: #777777;
}
#log_mainarea_result_table td.projectid {
width: 1px;
}
#log_mainarea_result_table td.object {
width: 1px;
}
#log_mainarea_result_table td.details {
white-space: normal;
}
@ -96,6 +107,14 @@
white-space: pre-wrap;
}
#site_home_mainarea_sidebar_log_table td.date {
width: 1px;
}
#site_home_mainarea_sidebar_log_table td.project {
width: 1px;
}
/*-----------------------------------------------
* project home view
*-----------------------------------------------*/
@ -130,6 +149,10 @@
white-space: pre-wrap;
}
#site_home_mainarea_sidebar_log_table td.date {
width: 1px;
}
/*-----------------------------------------------
* project file home view
*-----------------------------------------------*/