mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 19:59:54 +09:00
fixed auto-sync
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4863 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0c2cc929f3
commit
cc2af31f68
2 changed files with 5 additions and 5 deletions
|
|
@ -370,13 +370,13 @@
|
|||
$this->setMessage('success_deleted');
|
||||
}
|
||||
|
||||
function syncChangeset()
|
||||
function syncChangeset($module_info)
|
||||
{
|
||||
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);
|
||||
$oSvn = new Svn($module_info->svn_url, $module_info->svn_cmd, $module_info->diff_cmd);
|
||||
$oModel = &getModel('issuetracker');
|
||||
$status = $oSvn->getStatus();
|
||||
$latestRevision = $oModel->getLatestRevision($this->module_info->module_srl);
|
||||
$latestRevision = $oModel->getLatestRevision($module_info->module_srl);
|
||||
|
||||
$oController = &getController('issuetracker');
|
||||
if($latestRevision < $status->revision)
|
||||
|
|
@ -389,7 +389,7 @@
|
|||
$obj->author = $log->author;
|
||||
$obj->date = date("YmdHis", strtotime($log->date));
|
||||
$obj->message = trim($log->msg);
|
||||
$obj->module_srl = $this->module_info->module_srl;
|
||||
$obj->module_srl = $module_info->module_srl;
|
||||
executeQuery("issuetracker.insertChangeset", $obj);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue