Page MenuHomePhabricator

D8783.id.diff
No OneTemporary

D8783.id.diff

diff --git a/src/workflow/ArcanistLandWorkflow.php b/src/workflow/ArcanistLandWorkflow.php
--- a/src/workflow/ArcanistLandWorkflow.php
+++ b/src/workflow/ArcanistLandWorkflow.php
@@ -998,6 +998,24 @@
$cmd));
}
+ // 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 support this method.
+ // Since this hint is purely advisory, it doesn't matter if it has
+ // no effect.
+ }
+ }
+
$mark_workflow = $this->buildChildWorkflow(
'close-revision',
array(

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 6:13 PM (3 d, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7709086
Default Alt Text
D8783.id.diff (1 KB)

Event Timeline