]> khamidou — GitHub mirrors - arcanist.git/commit
Pull git upstream-path logic into a separate class
authorepriestley <git@epriestley.com>
Wed, 28 Oct 2015 18:30:57 +0000 (11:30 -0700)
committerepriestley <git@epriestley.com>
Wed, 28 Oct 2015 20:19:30 +0000 (13:19 -0700)
commit2a2fd6e338b72a3b1b654a8a149657c73fdf599b
tree0e8dce4744ead8d54dd31122876f6335723e9df0
parent411a4f4a3917f6916e7e4d1811ae1c8129af6a7a
Pull git upstream-path logic into a separate class

Summary:
Ref T9661. I need to reuse this to fix the complex workflow described in T9661 where we need to follow multiple paths to the upstream and cascade updates across them.

Pull the logic into a separate class to make this easier and less copy/pastey.

This shouldn't change any behavior.

Test Plan: Ran `arc land --preview` from detached head, remote-tracking branch, non-tracking branch, local-tracking branch. Selection of target/remote seemed correct in all cases.

Reviewers: chad

Reviewed By: chad

Subscribers: edibiase

Maniphest Tasks: T9661

Differential Revision: https://secure.phabricator.com/D14360
src/__phutil_library_map__.php
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistGitUpstreamPath.php [new file with mode: 0644]
src/workflow/ArcanistLandWorkflow.php