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

List branch on main repository view

Summary: This is in the crumbs, but a little hidden. Puts branch name at the top of the browse table header.

Test Plan: Review a few branchs, change branch, see new name.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+8 -2
+1 -1
src/applications/diffusion/controller/DiffusionController.php
··· 148 148 149 149 if (!$spec['commit'] && !$spec['tags'] && !$spec['branches']) { 150 150 $branch_name = $drequest->getBranch(); 151 - if ($branch_name) { 151 + if (strlen($branch_name)) { 152 152 $repository_name .= ' ('.$branch_name.')'; 153 153 } 154 154 }
+7 -1
src/applications/diffusion/controller/DiffusionRepositoryController.php
··· 565 565 $browse_uri = $drequest->generateURI(array('action' => 'browse')); 566 566 $pager->setURI($browse_uri, 'offset'); 567 567 568 + $repository_name = $repository->getName(); 569 + $branch_name = $drequest->getBranch(); 570 + if (strlen($branch_name)) { 571 + $repository_name .= ' ('.$branch_name.')'; 572 + } 573 + 568 574 $header = phutil_tag( 569 575 'a', 570 576 array( 571 577 'href' => $browse_uri, 572 578 'class' => 'diffusion-view-browse-header', 573 579 ), 574 - $repository->getName()); 580 + $repository_name); 575 581 576 582 return id(new PHUIObjectBoxView()) 577 583 ->setHeaderText($header)