mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
#17579294 : change to sync by 500 items
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5187 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e577680a3a
commit
b492cbd2e6
1 changed files with 6 additions and 2 deletions
|
|
@ -391,12 +391,15 @@
|
|||
$oSvn = new Svn($module_info->svn_url, $module_info->svn_cmd, $module_info->diff_cmd);
|
||||
$oModel = &getModel('issuetracker');
|
||||
$status = $oSvn->getStatus();
|
||||
if(!$status || !$status->revision) return;
|
||||
$latestRevision = $oModel->getLatestRevision($module_info->module_srl);
|
||||
|
||||
$oController = &getController('issuetracker');
|
||||
if($latestRevision < $status->revision)
|
||||
while($latestRevision < $status->revision)
|
||||
{
|
||||
$logs = $oSvn->getLog("/", $latestRevision+1, $status->revision, false, $status->revision-$latestRevision, false);
|
||||
$gap = $status->revision-$latestRevision;
|
||||
if($gap > 500) $gap = 500;
|
||||
$logs = $oSvn->getLog("/", $latestRevision+1, $status->revision, false, $gap, false);
|
||||
foreach($logs as $log)
|
||||
{
|
||||
$obj = null;
|
||||
|
|
@ -407,6 +410,7 @@
|
|||
$obj->module_srl = $module_info->module_srl;
|
||||
executeQuery("issuetracker.insertChangeset", $obj);
|
||||
}
|
||||
$latestRevision = $oModel->getLatestRevision($module_info->module_srl);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue