Page MenuHomePhabricator

D15522.id37418.diff
No OneTemporary

D15522.id37418.diff

diff --git a/src/applications/diffusion/engine/DiffusionCommitHookEngine.php b/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
--- a/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
+++ b/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
@@ -770,10 +770,10 @@
}
$stray_heads = array();
+ $head_map = array();
if ($old_heads && !$new_heads) {
// This is a branch deletion with "--close-branch".
- $head_map = array();
foreach ($old_heads as $old_head) {
$head_map[$old_head] = array(self::EMPTY_HASH);
}
@@ -798,7 +798,6 @@
'{node}\1');
}
- $head_map = array();
foreach (new FutureIterator($dfutures) as $future_head => $dfuture) {
list($stdout) = $dfuture->resolvex();
$descendant_heads = array_filter(explode("\1", $stdout));

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 3:23 PM (17 h, 35 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6921508
Default Alt Text
D15522.id37418.diff (910 B)

Event Timeline