mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Partially revert marking of copies as direct
Summary: The other `true` is correct (and I think we can fix the scaling issues) but this one should be an indirect change. This prevents the branch from appearing in the history of every file. (I misread this code and gave @vrana some bad advice originally. This is //actually// consistent with Mercurial and Git.) Test Plan: Partial revert. I'll make this stuff testable. Reviewers: nh, vrana Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D4742
This commit is contained in:
parent
5256731262
commit
363f292fd8
1 changed files with 4 additions and 1 deletions
|
@ -266,11 +266,14 @@ final class PhabricatorRepositorySvnCommitChangeParserWorker
|
|||
if (empty($raw_paths[$full_from]) &&
|
||||
empty($effects[$full_from])) {
|
||||
if ($other_type == DifferentialChangeType::TYPE_COPY_AWAY) {
|
||||
// Add an indirect effect for the copied file, if we
|
||||
// don't already have an entry for it (e.g., a separate
|
||||
// change).
|
||||
$effects[$full_from] = array(
|
||||
'rawPath' => $full_from,
|
||||
'rawTargetPath' => null,
|
||||
'rawTargetCommit' => null,
|
||||
'rawDirect' => true,
|
||||
'rawDirect' => false,
|
||||
|
||||
'changeType' => $other_type,
|
||||
'fileType' => $from_file_type,
|
||||
|
|
Loading…
Reference in a new issue