Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/parser/DifferentialChangesetParser.php
| Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | $event = new PhabricatorEvent( | ||||
| PhabricatorEventType::TYPE_DIFFERENTIAL_WILLMARKGENERATED, | PhabricatorEventType::TYPE_DIFFERENTIAL_WILLMARKGENERATED, | ||||
| array( | array( | ||||
| 'corpus' => $new_corpus_block, | 'corpus' => $new_corpus_block, | ||||
| 'is_generated' => $generated_guess, | 'is_generated' => $generated_guess, | ||||
| ) | ) | ||||
| ); | ); | ||||
| PhutilEventEngine::dispatchEvent($event); | PhutilEventEngine::dispatchEvent($event); | ||||
| $generated = $event->getValue('is_generated'); | $generated = $event->getValue('is_generated'); | ||||
| $attribute = $this->changeset->isGeneratedChangeset(); | |||||
| if ($attribute) { | |||||
| $generated = true; | |||||
| } | |||||
amckinley: ```$generated = ($event->getValue('is_generated') ||
$this->changeset->isGeneratedChangeset… | |||||
Not Done Inline ActionsI split these apart a little oddly since I expect to possibly delete the top half of this function later, and that future diff will be cleaner with the logic separated. epriestley: I split these apart a little oddly since I expect to possibly delete the top half of this… | |||||
| $this->specialAttributes[self::ATTR_GENERATED] = $generated; | $this->specialAttributes[self::ATTR_GENERATED] = $generated; | ||||
| } | } | ||||
| public function isGenerated() { | public function isGenerated() { | ||||
| return idx($this->specialAttributes, self::ATTR_GENERATED, false); | return idx($this->specialAttributes, self::ATTR_GENERATED, false); | ||||
| } | } | ||||
| public function isDeleted() { | public function isDeleted() { | ||||
| ▲ Show 20 Lines • Show All 1,086 Lines • Show Last 20 Lines | |||||
$generated = ($event->getValue('is_generated') || $this->changeset->isGeneratedChangeset())?