Page MenuHomePhabricator

D20056.id.diff
No OneTemporary

D20056.id.diff

diff --git a/src/applications/differential/engine/DifferentialDiffExtractionEngine.php b/src/applications/differential/engine/DifferentialDiffExtractionEngine.php
--- a/src/applications/differential/engine/DifferentialDiffExtractionEngine.php
+++ b/src/applications/differential/engine/DifferentialDiffExtractionEngine.php
@@ -177,14 +177,21 @@
'repository' => $repository,
));
- $response = DiffusionQuery::callConduitWithDiffusionRequest(
- $viewer,
- $drequest,
- 'diffusion.filecontentquery',
- array(
- 'commit' => $identifier,
- 'path' => $path,
- ));
+ try {
+ $response = DiffusionQuery::callConduitWithDiffusionRequest(
+ $viewer,
+ $drequest,
+ 'diffusion.filecontentquery',
+ array(
+ 'commit' => $identifier,
+ 'path' => $path,
+ ));
+ } catch (Exception $ex) {
+ // TODO: See PHI1044. This call may fail if the diff deleted the
+ // file. If the call fails, just detect a change for now. This should
+ // generally be made cleaner in the future.
+ return true;
+ }
$new_file_phid = $response['filePHID'];
if (!$new_file_phid) {

File Metadata

Mime Type
text/plain
Expires
Sep 10 2025, 3:02 PM (6 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8333556
Default Alt Text
D20056.id.diff (1 KB)

Event Timeline