Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401548
D8783.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8783.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8783: After landing to a repository, hint that it should be updated
Attached
Detach File
Event Timeline
Log In to Comment