Page MenuHomePhabricator

Show error message in Diffusion if branch is not tracked
AbandonedPublic

Authored by epriestley on Aug 17 2017, 4:34 PM.
Tags
None
Referenced Files
F19015708: D18439.id44301.diff
Sun, Nov 23, 1:12 AM
F18872094: D18439.diff
Wed, Nov 5, 2:17 AM
F18861432: D18439.id44306.diff
Sun, Nov 2, 3:26 PM
F18799045: D18439.id44306.diff
Oct 17 2025, 10:56 AM
F18786569: D18439.id44305.diff
Oct 14 2025, 7:36 PM
F18761420: D18439.id.diff
Oct 6 2025, 2:13 PM
F18733721: D18439.id.diff
Sep 30 2025, 10:40 PM
F18716954: D18439.id44303.diff
Sep 29 2025, 12:56 PM
Subscribers

Details

Summary

Fixes T10964. This check if a branch is being tracked before deciding to show information. This feels a little janky, but works OK.

Test Plan

Set Track Only to stable, with master set to default.

image.png (1×2 px, 142 KB)

Diff Detail

Repository
rP Phabricator
Branch
untracked (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18097
Build 24317: Run Core Tests
Build 24316: arc lint + arc unit

Event Timeline

src/applications/diffusion/controller/DiffusionRepositoryController.php
63

I think this if statement is never hit. Unsure what the intent of the task was, maybe this case is not possible.

Can you cover these cases in your test plan?

  • Create a new repository, immediately set it to track only stable before activating it, activate it, view main page.
  • View a branch which does not exist, and is tracked.
  • View a branch which does not exist, and is not tracked.
  • View a branch which exists, and is tracked.
  • Delete a tracked branch, then view it in the web UI.
  • Close a branch in Mercurial, then view it.

Create a new repository, immediately set it to track only stable before activating it, activate it, view main page.

Uhhhhhhhhh

I guess this is more than UI changes.

  • just pushing changes, then abandoning
chad planned changes to this revision.Aug 17 2017, 6:19 PM
  • I think this is all correct, but some outlier bugs in HG and shouldTrack are tripping me up
epriestley abandoned this revision.
epriestley edited reviewers, added: chad; removed: epriestley.

Mooted by context changes in T10964.