Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/parser/DifferentialChangesetParser.php
| Show First 20 Lines • Show All 592 Lines • ▼ Show 20 Lines | if (!$hunk_parser->getHasAnyChanges()) { | ||||
| $unchanged = true; | $unchanged = true; | ||||
| } | } | ||||
| } | } | ||||
| $changetype = $this->changeset->getChangeType(); | $changetype = $this->changeset->getChangeType(); | ||||
| if ($changetype == DifferentialChangeType::TYPE_MOVE_AWAY) { | if ($changetype == DifferentialChangeType::TYPE_MOVE_AWAY) { | ||||
| // sometimes we show moved files as unchanged, sometimes deleted, | // sometimes we show moved files as unchanged, sometimes deleted, | ||||
| // and sometimes inconsistent with what actually happened at the | // and sometimes inconsistent with what actually happened at the | ||||
| // destination of the move. Rather than make a false claim, | // destination of the move. Rather than make a false claim, | ||||
| // omit the 'not changed' notice if this is the source of a move | // omit the 'not changed' notice if this is the source of a move | ||||
| $unchanged = false; | $unchanged = false; | ||||
| } | } | ||||
| $this->setSpecialAttributes(array( | $this->setSpecialAttributes(array( | ||||
| self::ATTR_UNCHANGED => $unchanged, | self::ATTR_UNCHANGED => $unchanged, | ||||
| self::ATTR_DELETED => $hunk_parser->getIsDeleted(), | self::ATTR_DELETED => $hunk_parser->getIsDeleted(), | ||||
| self::ATTR_WHITELINES => !$hunk_parser->getHasTextChanges(), | self::ATTR_WHITELINES => !$hunk_parser->getHasTextChanges(), | ||||
| ▲ Show 20 Lines • Show All 691 Lines • Show Last 20 Lines | |||||