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, status VARCHAR(32) NOT NULL,
owner VARCHAR(255) NOT NULL, owner VARCHAR(255) NOT NULL,
priority VARCHAR(32) NOT NULL, priority VARCHAR(32) NOT NULL,
message TEXT NOT NULL, comment TEXT NOT NULL,
updatedon DATETIME, updatedon DATETIME,
updatedby VARCHAR(32), updatedby VARCHAR(32),

View File

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

View File

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

View File

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

View File

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