@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

Rebrand: Rename library and update "version" logic

Summary: Make the "version" data in Config show information. Also rename the library.

Test Plan: See version "branched from" information.

Reviewers: O1 Blessed Committers, speck

Reviewed By: O1 Blessed Committers, speck

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew

Maniphest Tasks: T15006

Differential Revision: https://we.phorge.it/D25047

+10 -3
+1 -1
src/__phutil_library_init__.php
··· 1 1 <?php 2 2 3 - phutil_register_library('phabricator', __FILE__); 3 + phutil_register_library('phorge', __FILE__);
+9 -2
src/applications/config/controller/PhabricatorConfigConsoleController.php
··· 138 138 139 139 private function loadVersions(PhabricatorUser $viewer) { 140 140 $specs = array( 141 - 'phabricator', 141 + 'phorge', 142 142 'arcanist', 143 143 ); 144 144 ··· 174 174 175 175 // A repository may have a bunch of remotes, but we're only going to look 176 176 // for remotes we host to try to figure out where this repository branched. 177 - $upstream_pattern = '(github\.com/phacility/|secure\.phabricator\.com/)'; 177 + $upstream_pattern = 178 + '('. 179 + implode('|', array( 180 + 'we\.phorge\.it/', 181 + 'github\.com/phacility/', 182 + 'secure\.phabricator\.com/', 183 + )). 184 + ')'; 178 185 179 186 $upstream_futures = array(); 180 187 $lib_upstreams = array();