Ignore closed branch heads by default in Mercurial

Summary:
Fixes T6160. Ref T7100.

  - When resolving ambiguous branch references, ignore closed heads unless there are no other options.
  - Hide closed heads by default on the main page.
  - Show branch open/closed state in Mercurial.

Test Plan: Browsed a previously-ambiguous Mercurial repository because of multiple branch heads, no longer ambiguous.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T6160, T7100

Differential Revision: https://secure.phabricator.com/D12552
This commit is contained in:
epriestley
2015-04-27 03:51:21 -07:00
parent 2c9b194d16
commit d3436c256c
4 changed files with 55 additions and 3 deletions

View File

@@ -351,6 +351,7 @@ final class DiffusionRepositoryController extends DiffusionController {
$branches = $this->callConduitWithDiffusionRequest(
'diffusion.branchquery',
array(
'closed' => false,
'limit' => $limit + 1,
));
if (!$branches) {