@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.

Don't track "phabricator/" staging area tags

Summary: Ref T9028. Ref T6878. This rule should probably be refined in the long term, but for now just ignore "phabricator/diff/12424" and similar staging area tags.

Test Plan: Ran `bin/repository discover --verbose` on a repository with staging area refs, saw Phabricator ignore those refs as untracked.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T6878, T9028

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

+12
+5
src/applications/diffusion/data/DiffusionRepositoryRef.php
··· 51 51 return ($this->getRefType() === $type_branch); 52 52 } 53 53 54 + public function isTag() { 55 + $type_tag = PhabricatorRepositoryRefCursor::TYPE_TAG; 56 + return ($this->getRefType() === $type_tag); 57 + } 58 + 54 59 55 60 /* -( Serialization )------------------------------------------------------ */ 56 61
+7
src/applications/repository/storage/PhabricatorRepository.php
··· 911 911 } 912 912 913 913 public function shouldTrackRef(DiffusionRepositoryRef $ref) { 914 + // At least for now, don't track the staging area tags. 915 + if ($ref->isTag()) { 916 + if (preg_match('(^phabricator/)', $ref->getShortName())) { 917 + return false; 918 + } 919 + } 920 + 914 921 if (!$ref->isBranch()) { 915 922 return true; 916 923 }