]> khamidou — GitHub mirrors - arcanist.git/commit
Rebuild "arc browse" using refs and hardpoints
authorepriestley <git@epriestley.com>
Wed, 23 Nov 2016 01:03:34 +0000 (17:03 -0800)
committerepriestley <git@epriestley.com>
Wed, 23 Nov 2016 16:06:13 +0000 (08:06 -0800)
commit909668082ec3f3e17d7c83dc3f76357026f0db15
tree9f3b497333b7e622cb29f654a474d0e4b0d01633
parent71473af895f92482c95be2b7c87c43f1d2d8c976
Rebuild "arc browse" using refs and hardpoints

Summary:
Ref T10895. This mostly modularizes `arc browse` and puts it on ref/hardpoint infrastructure. Feels okay-ish? Major gripes:

  - Messaging for "some stuff won't work because you're in a random directory, not a working copy" could be better, but I think I want something like the "Guidance" infrastructure for this.
  - The `requiresStuff()` / `desiresStuff()` interactions on Workflow continue to feel bad, but I think I can sneak by without fixing those for now.
  - I want to improve some of the other UI/UX stuff but this diff is already gigantic.

Test Plan: Ran `arc browse .`, `arc browse master`, `arc browse README.md`, inside and outside working directories.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10895

Differential Revision: https://secure.phabricator.com/D16925
13 files changed:
src/__phutil_library_map__.php
src/browse/loader/ArcanistBrowseCommitURIHardpointLoader.php [new file with mode: 0644]
src/browse/loader/ArcanistBrowseObjectNameURIHardpointLoader.php [new file with mode: 0644]
src/browse/loader/ArcanistBrowsePathURIHardpointLoader.php [new file with mode: 0644]
src/browse/loader/ArcanistBrowseURIHardpointLoader.php [new file with mode: 0644]
src/browse/ref/ArcanistBrowseRef.php [new file with mode: 0644]
src/browse/ref/ArcanistBrowseURIRef.php [new file with mode: 0644]
src/browse/workflow/ArcanistBrowseWorkflow.php [new file with mode: 0644]
src/ref/ArcanistRefQuery.php
src/ref/ArcanistRepositoryRef.php [new file with mode: 0644]
src/ref/ArcanistWorkingCopyStateRef.php
src/workflow/ArcanistBrowseWorkflow.php [deleted file]
src/workflow/ArcanistWorkflow.php