Here's how I would approach it by making a new repo that will have the history you'd like using the Convert Extention:
- Update the source repo to the the new "initial commit" (
x
in your diagram) - Copy (file copy, not clone!) to the target directory and
hg init
a new repo - use
hg convert
with the--splicemap
option to say "start at revisionx
in the source repo and apply it to revision 0 in the target repo". e.g. (note: untested!)
hg convert --splicemap splicemap.txt .\old-repo .\new-repo
andsplicemap.txt
has
[hash-of-x-in-old-repo] [hash-of-x-in-new-repo]
- I'd then zip up the source repo in case I ever needed it again :)