@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Expose "identifiers" as a query constraint for Commit search

Summary: Ref T13216. See PHI984. The CommitSearchEngine (and, by extension, `diffusion.commit.search`) currently do not support identifier search, but this is a reasonable capability to provide.

Test Plan:
Testing that a commit exists on `master`:

{F6020742}

Same commit is not on `stable`:

{F6020743}

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13216

Differential Revision: https://secure.phabricator.com/D19825

+13
+13
src/applications/audit/query/PhabricatorCommitSearchEngine.php
··· 58 58 $query->withAncestorsOf($map['ancestorsOf']); 59 59 } 60 60 61 + if ($map['identifiers']) { 62 + $query->withIdentifiers($map['identifiers']); 63 + } 64 + 61 65 return $query; 62 66 } 63 67 ··· 130 134 pht( 131 135 'Find commits which are ancestors of a particular ref, '. 132 136 'like "master".')), 137 + id(new PhabricatorSearchStringListField()) 138 + ->setLabel(pht('Identifiers')) 139 + ->setKey('identifiers') 140 + ->setDescription( 141 + pht( 142 + 'Find commits with particular identifiers (usually, hashes). '. 143 + 'Supports full or partial identifiers (like "abcd12340987..." or '. 144 + '"abcd1234") and qualified or unqualified identifiers (like '. 145 + '"rXabcd1234" or "abcd1234").')), 133 146 ); 134 147 } 135 148