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
- Warn against this behavior on arc diff / arc amend
- Automatically fix this (move the tasks onto a non-master branch and reset master) on arc diff / arc amend / arc land
- 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)