Is it possible to unbundle bundled changesets into a new branch in a repository? I have tried switching to a new branch before performing the unbundle, but that doesn’t work.
Basically I have started a new development line and realized my commits should have been in a new branch. I’ve done hg strip to remove the changesets into a bundle and now I would like to recommit this bundle to a new branch.
I suppose I could recreate patches for each commit and then recommit each manually (or perhaps write a script to do it), but this seems unnecessary. Thanks for the help!
In general, unbundle will add the old changesets exactly as they were (starting off from the same parent changeset). A nice alternative to recreating patches for each commit might be in using the transplant or rebase extension (I’d go for rebase in this case).