Background -
At my current organization, we use a feature branch development approach. For every new product feature, we create a new feature branch. Its kept up to date with develop (master) branch throughout the development process. Feature work is divided into various tickets branch and then each ticket branch is arc landed to feature branch.
Question -
When I create diff against a develop branch from feature branch, revision gets closed automatically as all the diffs on a feature branch are already approved. Is there a way to make sure that this does not happen? I tried explicitly using --create which does not close the new diff but it squashes all the commits in one when I arc land feature branch PR after approval. Basically, I am looking for a way to create a diff with for a branch which already has n approved diffs and all of them won’t get squashed in one if I land it.
Any comments/feedback highly appriciated.
It seems like you are trying to impose a popular github/bitbucket workflow on Phabricator, and have duplicated processes for approval of changes.
That said,
arc land --merge
should deal with your desire not to squash commits when landing. DisablingAutoclose
for the repository (underActions
), or customizing theAutoclose Only
branches (underBranches
) should avoid the revision being closed when you don't want it to be.