I rarely use <fb code base>, but when I do, I usually hit this issue:
- cd into <fb code base>, which is on master, and fast forward it
- make minor fix
- arc amend
- get diff reviewed
- follow phabricator instructions and run "arc land master"
- see this fail because it's not allowed to run on master
- figure out how to fix this mess and get my commit landed
So, if arc knows that I shouldn't be committing to master, why does "arc amend" let me do it?
Proposed solution:
Step 1) Warn against this behavior on arc diff/amend
Step 2) Automatically fix this (move the tasks onto a non master branch and reset master) on arc diff/amend/land
Step 3 (long term): Allow this to actually work "arc land master --onto master" makes sense if master is considered origin/master in git (hg may be a little more difficult)