mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 02:39:56 +09:00
timeline 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4733 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2fd078ff5c
commit
82068ec7c1
12 changed files with 156 additions and 1 deletions
|
|
@ -57,7 +57,10 @@
|
|||
$oDB->begin();
|
||||
|
||||
$output = executeQuery("issuetracker.insertIssue", $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
if(!$output->toBool()) {
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$output = $oDocumentController->insertDocument($obj);
|
||||
$msg_code = 'success_registed';
|
||||
|
|
@ -367,5 +370,35 @@
|
|||
$this->setMessage('success_deleted');
|
||||
}
|
||||
|
||||
function syncChangeset()
|
||||
{
|
||||
require_once($this->module_path.'classes/svn.class.php');
|
||||
$oSvn = new Svn($this->module_info->svn_url, $this->module_info->svn_cmd, $this->module_info->diff_cmd);
|
||||
$oModel = &getModel('issuetracker');
|
||||
$status = $oSvn->getStatus();
|
||||
$latestRevision = $oModel->getLatestRevision($this->module_info->module_srl);
|
||||
|
||||
$oController = &getController('issuetracker');
|
||||
if($latestRevision < $status->revision)
|
||||
{
|
||||
$logs = $oSvn->getLog("/", $latestRevision+1, $status->revision, false, $status->revision-$latestRevision);
|
||||
foreach($logs as $log)
|
||||
{
|
||||
$obj = null;
|
||||
$obj->revision = $log->revision;
|
||||
$obj->author = $log->author;
|
||||
$obj->date = date("YmdHis", strtotime($log->date));
|
||||
$obj->message = trim($log->msg);
|
||||
$obj->module_srl = $this->module_info->module_srl;
|
||||
executeQuery("issuetracker.insertChangeset", $obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function procIssuetrackerSync()
|
||||
{
|
||||
$this->syncChangeset();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue