mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Don't store empty copy:lines
Summary: The [[ https://secure.phabricator.com/diffusion/P/browse/master/src/applications/differential/parser/DifferentialChangesetParser.php;8d0918885da2c22b$1364 | callsite ]] is fine with that. Test Plan: This diff. Reviewers: btrahan, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3537
This commit is contained in:
parent
48fa3eb3b3
commit
49f75d2554
1 changed files with 6 additions and 3 deletions
|
@ -243,11 +243,14 @@ final class DifferentialDiff extends DifferentialDAO {
|
|||
}
|
||||
}
|
||||
}
|
||||
$copies = array_filter($copies);
|
||||
if ($copies) {
|
||||
$metadata = $changeset->getMetadata();
|
||||
$metadata['copy:lines'] = array_filter($copies);
|
||||
$metadata['copy:lines'] = $copies;
|
||||
$changeset->setMetadata($metadata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getDiffDict() {
|
||||
$dict = array(
|
||||
|
|
Loading…
Reference in a new issue