facebook / sapling

A Scalable, User-Friendly Source Control System.
https://sapling-scm.com
GNU General Public License v2.0
6.18k stars 284 forks source link

Submit independent PRs from the same stack #894

Open jdai8 opened 6 months ago

jdai8 commented 6 months ago

I often find myself working on multiple unrelated changes that can be merged independently. I'd like to do all this work from a single stack to avoid updating my working copy every time I want to work on a new change (which can be expensive and invalidate build caches).

https://github.com/facebook/sapling/issues/239 suggests using histedit to re-order the stack if I want to land a later PR first. However, this is pretty clumsy if you have multiple PRs which could be merged concurrently.

Ideally, I'd want a "cherry-pick" option on sl pr submit (inspired by a similar spr feature) that cherry-picks the change onto master at submit time. The submitted PR would target master so it can be merged as normal on Github. Is it possible to do something like this?