diff --git a/codepot/etc/codepot.sql b/codepot/etc/codepot.sql index d0ce4966..c8c1e431 100644 --- a/codepot/etc/codepot.sql +++ b/codepot/etc/codepot.sql @@ -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), diff --git a/codepot/src/codepot/models/subversionmodel.php b/codepot/src/codepot/models/subversionmodel.php index 6bf1ff84..08f6adbf 100644 --- a/codepot/src/codepot/models/subversionmodel.php +++ b/codepot/src/codepot/models/subversionmodel.php @@ -42,11 +42,15 @@ class SubversionModel extends Model $list = @svn_ls ($url, $rev, FALSE, TRUE); if ($list === FALSE) return FALSE; - $log = @svn_log ($url, - $info[0]['revision'], - $info[0]['revision'], - 1, SVN_DISCOVER_CHANGED_PATHS); - if ($log === 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'])); diff --git a/codepot/src/codepot/views/log.php b/codepot/src/codepot/views/log.php index a1671e3b..9cb6fd3c 100644 --- a/codepot/src/codepot/views/log.php +++ b/codepot/src/codepot/views/log.php @@ -97,7 +97,7 @@ $this->load->view ( if ($log['type'] == 'code') { - print ''; + print ''; print anchor ( "code/revision/{$log['projectid']}/{$xdot}/{$code['rev']}", "r{$code['rev']}"); @@ -116,7 +116,7 @@ $this->load->view ( } else { - print ''; + print ''; $uri = ''; if ($log['type'] == 'project') diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css index b5255642..650c2d0e 100644 --- a/codepot/src/css/common.css +++ b/codepot/src/css/common.css @@ -177,6 +177,8 @@ body { .content .mainarea form textarea { border: 1px solid #BBCCDD; + font-family: inherit; + font-size: inherit; } .content .mainarea .icon { diff --git a/codepot/src/css/project.css b/codepot/src/css/project.css index 6a8409f8..24d15027 100644 --- a/codepot/src/css/project.css +++ b/codepot/src/css/project.css @@ -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 *-----------------------------------------------*/