The fastest way is to simply clone your local repo to the latest “good” version and discard the old one.
This only works if these changes are the last n in history.
You can copy the section of the [paths]old .hg / hgrc repository file to the new one if you want to continue the transition to the third "main" repo.
source
share