]> khamidou — GitHub mirrors - arcanist.git/commit
Allow hg arc land when no rebase is necessary
authordurham <durham@fb.com>
Tue, 22 Jan 2013 22:29:00 +0000 (14:29 -0800)
committerdurham <durham@fb.com>
Tue, 22 Jan 2013 23:20:10 +0000 (15:20 -0800)
commit880964af831b9ba7defb3619e3513a029ec3868a
treea430a9d41cc1464befdfdef228040797bd2f1a25
parent98fec27752be1933d117a430b7b0e1629067705b
Allow hg arc land when no rebase is necessary

Summary:
Previously, trying to arc land in a mercurial repo would
fail if the local branch was already at the tip of the onto branch
(since hg rebase exited with code 1).  This change makes it check
if a rebase is needed before executing the rebase.

Test Plan:
hg init foo
cd foo
hg bookmark master
touch a && hg add a && hg commit -ma
// setup your .arcconfig
cd ..
hg clone foo foo2
cd foo2
hg bookmark mybook
touch b && hg add b && hg commit -mb
arc land --onto master --revision <your rev number>

Arc land should succeed.  I also tried landing when a rebase was
necessary and it still worked.

Reviewers: epriestley, dschleimer, bos

Reviewed By: epriestley

CC: sid0, aran, Korvin
Differential Revision: https://secure.phabricator.com/D4588
src/workflow/ArcanistLandWorkflow.php