Commit 2f5fbae3 authored by Marco Villegas's avatar Marco Villegas
Browse files

Make repository reSyncFromScratch() return its status.

parent 2274ed85
Loading
Loading
Loading
Loading
+6 −1
Changes for includes/VersioncontrolRepository.php: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -439,8 +439,11 @@ abstract class VersioncontrolRepository implements VersioncontrolEntityInterface
   * data dependencies on the serial ids of versioncontrol entities can properly
   * recover from the purge & rebuild.
   *
   * // FIXME this must be refactored so that hook invocations occur on the same
   * @fixme this must be refactored so that hook invocations occur on the same
   *    side of queueing as the history sync.
   *
   * @return bool
   *   Returns TRUE on a successful synchronization, FALSE on a failure.
   */
  public function reSyncFromScratch($bypass = TRUE) {
    // disable controller caching
@@ -454,6 +457,8 @@ abstract class VersioncontrolRepository implements VersioncontrolEntityInterface
    module_invoke_all('versioncontrol_repository_post_resync', $this, $bypass);
    // restore controller caching
    $this->getBackend()->restoreControllerCachingDefaults();

    return $sync_status;
  }

  /**