]> khamidou — GitHub mirrors - arcanist.git/commit
Add hg support for arc land
authordurham <durham@fb.com>
Tue, 4 Dec 2012 01:59:12 +0000 (17:59 -0800)
committerdurham <durham@fb.com>
Tue, 4 Dec 2012 01:59:12 +0000 (17:59 -0800)
commitaada1440ef9b099778739a83734e1e95635dd7b4
tree29160a4f04527a5af8b4960fd8e03beb30168b6c
parent5025c06f3d8cea7d4d2e85ebfba37baffab3e093
Add hg support for arc land

Summary:
Makes arc land support hg repositories. Both bookmarks and named branches can be landed.  For the most part all the arc land options work, but there are a few caveats:

- bookmarks can only be landed on bookmarks
- branches can only be landed on branches
- landing a named branch with --merge creates a commit to close the branch before the merge.
- since mercurial doesn't start with a default master bookmark, landing a bookmark requires specifying --onto or setting arc.land.onto.default

Test Plan:
Tested arc land with all permutations of --merge, --keep-branch on both bookmark branches and named branches.  Also tested --hold, --revision, --onto, --remote.

See https://secure.phabricator.com/P619

Also tested git arc land with --merge and --keep-branch.

Reviewers: dschleimer, sid0, epriestley, bos

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4068
src/repository/api/ArcanistMercurialAPI.php
src/workflow/ArcanistLandWorkflow.php