mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-09 17:32:50 +00:00
When we remove support for evolution (#32), we need to still make it easy for application code to rebase descendants of rewritten and abandoned commits. The way applications currently do that is by using e.g. `CommitBuilder::for_rewrite_from()` followed by `evolve_orphans()`. This patch puts some bookkeeping in `MutableRepo` for rewritten and abandoned commits, along with a function for creating a `DescendantRebaser` based on it. I'll then make `CommitBuilder` record rewritten commits there.