Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/query/PhabricatorCommitSearchEngine.php
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | protected function buildQueryFromParameters(array $map) { | ||||
| if ($map['packagePHIDs']) { | if ($map['packagePHIDs']) { | ||||
| $query->withPackagePHIDs($map['packagePHIDs']); | $query->withPackagePHIDs($map['packagePHIDs']); | ||||
| } | } | ||||
| if ($map['unreachable'] !== null) { | if ($map['unreachable'] !== null) { | ||||
| $query->withUnreachable($map['unreachable']); | $query->withUnreachable($map['unreachable']); | ||||
| } | } | ||||
| if ($map['unpublished'] !== null) { | |||||
| $query->withUnpublished($map['unpublished']); | |||||
| } | |||||
| if ($map['ancestorsOf']) { | if ($map['ancestorsOf']) { | ||||
| $query->withAncestorsOf($map['ancestorsOf']); | $query->withAncestorsOf($map['ancestorsOf']); | ||||
| } | } | ||||
| if ($map['identifiers']) { | if ($map['identifiers']) { | ||||
| $query->withIdentifiers($map['identifiers']); | $query->withIdentifiers($map['identifiers']); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | return array( | ||||
| ->setOptions( | ->setOptions( | ||||
| pht('(Show All)'), | pht('(Show All)'), | ||||
| pht('Show Only Unreachable Commits'), | pht('Show Only Unreachable Commits'), | ||||
| pht('Hide Unreachable Commits')) | pht('Hide Unreachable Commits')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Find or exclude unreachable commits which are not ancestors of '. | 'Find or exclude unreachable commits which are not ancestors of '. | ||||
| 'any branch, tag, or ref.')), | 'any branch, tag, or ref.')), | ||||
| id(new PhabricatorSearchThreeStateField()) | |||||
| ->setLabel(pht('Unpublished')) | |||||
| ->setKey('unpublished') | |||||
| ->setOptions( | |||||
| pht('(Show All)'), | |||||
| pht('Show Only Unpublished Commits'), | |||||
| pht('Hide Unpublished Commits')) | |||||
| ->setDescription( | |||||
| pht( | |||||
| 'Find or exclude unpublished commits which are not ancestors of '. | |||||
| 'any permanent branch, tag, or ref.')), | |||||
| id(new PhabricatorSearchStringListField()) | id(new PhabricatorSearchStringListField()) | ||||
| ->setLabel(pht('Ancestors Of')) | ->setLabel(pht('Ancestors Of')) | ||||
| ->setKey('ancestorsOf') | ->setKey('ancestorsOf') | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Find commits which are ancestors of a particular ref, '. | 'Find commits which are ancestors of a particular ref, '. | ||||
| 'like "master".')), | 'like "master".')), | ||||
| id(new PhabricatorSearchStringListField()) | id(new PhabricatorSearchStringListField()) | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||