| @@ 238-248 (lines=11) @@ | ||
| 235 | { |
|
| 236 | $list = null; |
|
| 237 | ||
| 238 | if ($revision === null) |
|
| 239 | { |
|
| 240 | $list = $this->loadSynchronizationList(); |
|
| 241 | ||
| 242 | if (!$list->getLastSynchronization()) |
|
| 243 | { |
|
| 244 | return null; |
|
| 245 | } |
|
| 246 | ||
| 247 | $revision = $list->getLastSynchronization()->getRevision(); |
|
| 248 | } |
|
| 249 | ||
| 250 | return $this->doLoadRemoteIndex($revision, $list); |
|
| 251 | } |
|
| @@ 519-529 (lines=11) @@ | ||
| 516 | throw new Exception('Failed to acquire lock.'); |
|
| 517 | } |
|
| 518 | ||
| 519 | if ($revision === null) |
|
| 520 | { |
|
| 521 | $synchronizationList = $this->loadSynchronizationList(); |
|
| 522 | ||
| 523 | if (!$synchronizationList->getLastSynchronization()) |
|
| 524 | { |
|
| 525 | throw new Exception('No revision to restore from.'); |
|
| 526 | } |
|
| 527 | ||
| 528 | $revision = $synchronizationList->getLastSynchronization()->getRevision(); |
|
| 529 | } |
|
| 530 | ||
| 531 | $remoteIndex = $this->loadRemoteIndex($revision); |
|
| 532 | ||