diff --git a/src/applications/diffusion/editor/DiffusionURIEditor.php b/src/applications/diffusion/editor/DiffusionURIEditor.php index 9219935d3a..674efbc158 100644 --- a/src/applications/diffusion/editor/DiffusionURIEditor.php +++ b/src/applications/diffusion/editor/DiffusionURIEditor.php @@ -507,6 +507,10 @@ final class DiffusionURIEditor ->synchronizeWorkingCopyAfterHostingChange(); } + $repository->writeStatusMessage( + PhabricatorRepositoryStatusMessage::TYPE_NEEDS_UPDATE, + null); + return $xactions; } diff --git a/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php b/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php index 4d4b961765..332d67f7af 100644 --- a/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php +++ b/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php @@ -68,6 +68,7 @@ final class PhabricatorRepositoryPullLocalDaemon $retry_after = array(); $min_sleep = 15; + $max_sleep = phutil_units('5 minutes in seconds'); $max_futures = 4; $futures = array(); $queue = array(); @@ -228,7 +229,7 @@ final class PhabricatorRepositoryPullLocalDaemon continue; } - $should_hibernate = $this->waitForUpdates($min_sleep, $retry_after); + $should_hibernate = $this->waitForUpdates($max_sleep, $retry_after); if ($should_hibernate) { break; } diff --git a/src/applications/repository/editor/PhabricatorRepositoryEditor.php b/src/applications/repository/editor/PhabricatorRepositoryEditor.php index 43c95f6b4a..401fca3668 100644 --- a/src/applications/repository/editor/PhabricatorRepositoryEditor.php +++ b/src/applications/repository/editor/PhabricatorRepositoryEditor.php @@ -634,6 +634,10 @@ final class PhabricatorRepositoryEditor ->synchronizeWorkingCopyAfterCreation(); } + $object->writeStatusMessage( + PhabricatorRepositoryStatusMessage::TYPE_NEEDS_UPDATE, + null); + return $xactions; }