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) { | if ($map['permanent'] !== null) { | ||||
$query->withUnpublished($map['unpublished']); | $query->withPermanent($map['permanent']); | ||||
} | } | ||||
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 60 Lines • ▼ Show 20 Lines | return array( | ||||
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()) | id(new PhabricatorSearchThreeStateField()) | ||||
->setLabel(pht('Unpublished')) | ->setLabel(pht('Permanent')) | ||||
->setKey('unpublished') | ->setKey('permanent') | ||||
->setOptions( | ->setOptions( | ||||
pht('(Show All)'), | pht('(Show All)'), | ||||
pht('Show Only Unpublished Commits'), | pht('Show Only Permanent Commits'), | ||||
pht('Hide Unpublished Commits')) | pht('Hide Permanent Commits')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'Find or exclude unpublished commits which are not ancestors of '. | 'Find or exclude permanent commits which are ancestors of '. | ||||
'any permanent branch, tag, or ref.')), | '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".')), | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |