]> khamidou — GitHub mirrors - arcanist.git/commit
Add an experimental "--mergeup" flag to use a less volatile merge strategy in "arc...
authorepriestley <git@epriestley.com>
Thu, 13 Dec 2012 22:11:52 +0000 (14:11 -0800)
committerepriestley <git@epriestley.com>
Thu, 13 Dec 2012 22:11:52 +0000 (14:11 -0800)
commit2d7224f0e36c61112d3eafda3788aeed9edbfea8
treea6208a0f36d74706d83cb27c822c637194b8e920
parent02694d73ab99eb72fe71f5d1d0d539098d3a7648
Add an experimental "--mergeup" flag to use a less volatile merge strategy in "arc land"

Summary:
See chatlog from https://secure.phabricator.com/chatlog/channel/%23phabricator/?at=37257

Basically, the install's developers sometimes use "git merge master" instead of "git rebase master" to pull changes from master into their branch. When we run "git rebase master" at the end, this creates a lot of conflicts.

Instead, optionally run "git merge master". This should be equivalent in our case (where we always rebase) and much better in their case (where they sometimes merge).

We're both going to use it for a bit and see if it creates problems. If it improves the "sometimes-merge" workflow without affecting the "always rebase" workflow, we can make it a default. If it improves theirs but damages ours, we can keep it a flag/option. If it's just terrible, we can figure out something else.

Test Plan:
Ran `arc land --mergeup --trace <feature> --keep-branch --hold`, see P624 for output. Observed merge update strategy and general success.

Also verified the conflict:

  $ arc land --mergeup --merge
  Usage Exception: Arguments '--mergeup' and '--merge' are mutually exclusive: The --merge strategy does not update the feature branch.

Reviewers: btrahan, vrana, DurhamGoode

Reviewed By: btrahan

CC: aran, keir
Differential Revision: https://secure.phabricator.com/D4080
src/workflow/ArcanistLandWorkflow.php