facebook / sapling

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

Submit independent PRs from the same stack #894

Open jdai8 opened 1 month ago

jdai8 commented 1 month 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?