Page MenuHomePhabricator

D8783.id20841.diff
No OneTemporary

D8783.id20841.diff

diff --git a/src/workflow/ArcanistLandWorkflow.php b/src/workflow/ArcanistLandWorkflow.php
--- a/src/workflow/ArcanistLandWorkflow.php
+++ b/src/workflow/ArcanistLandWorkflow.php
@@ -948,6 +948,23 @@
"'{$cmd}' failed! Fix the error and push this change manually.");
}
+ // If we know which repository we're in, try to tell Phabricator that we
+ // pushed commits to it so it can update. This hint can help pull updates
+ // more quickly, especially in rarely-used repositories.
+ if ($this->getRepositoryCallsign()) {
+ try {
+ $this->getConduit()->callMethodSynchronous(
+ 'diffusion.looksoon',
+ array(
+ 'callsign' => $this->getRepositoryCallsign(),
+ ));
+ } catch (ConduitClientException $ex) {
+ // If we hit an exception, just ignore it. Likely, we are running
+ // against a Phabricator which is too old to suppor this method.
+ // Since this hint is purely advisory, we can
+ }
+ }
+
$mark_workflow = $this->buildChildWorkflow(
'close-revision',
array(

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 31, 9:41 PM (2 w, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7728472
Default Alt Text
D8783.id20841.diff (1 KB)

Event Timeline