]> khamidou — GitHub mirrors - arcanist.git/commit
Fix hg arc land on hg-svn repos
authordurham <durham@fb.com>
Fri, 25 Jan 2013 19:52:14 +0000 (11:52 -0800)
committerdurham <durham@fb.com>
Fri, 25 Jan 2013 22:00:52 +0000 (14:00 -0800)
commitc8efb4181129ac985db58e7505c2495cd4776bd2
treec6c4526daa55fc1d6696d33f466b80c4c12e7c72
parent93ebde0d12ac68fcf38a94c488421560ef79227d
Fix hg arc land on hg-svn repos

Summary:
arc land on a hg-svn repository would fail because arc land
uses 'hg push -r' to specify which revs to push which is not supported
by hg-svn. Now we just use 'hg push' which, when used against svn, only
pushes the current branch (which happens to be the branch we're trying to land).

We can't use standard 'hg push' for non-svn repos though because when used
against a vanilla hg repo 'hg push' pushes all branches.

Also remove --new-branch from 'hg push' because it's extremely
unlikely that a person wants to create a new branch on the server via
arc land.

Test Plan:
Ran arc land on a normal hg repo, verified it used 'hg push -r'.
Ran arc land on a hg-svn repo, verified it used 'hg push' and it pushed the
correct changes.

Reviewers: epriestley, sid0, dschleimer

Reviewed By: epriestley

CC: bos, aran, Korvin
Maniphest Tasks: T2403

Differential Revision: https://secure.phabricator.com/D4653
src/workflow/ArcanistLandWorkflow.php