Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is how to fix things if you somehow manage to end up with two
- # repositories for the same project, where the last changeset in the
- # old repo should be the parent of the first changeset in the new one.
- # I needed to do this for Schism Tracker at one point. No idea how I
- # mangled it, but here's what I did.
- # (A tip of the hat owed to #mercurial on Freenode for helping me.)
- # FOREWARNING: this will alter all the changeset IDs in the new repo!
- newid=$(hg -R newrepo log -r0 --template '{node}')
- oldid=$(hg -R oldrepo log -rtip --template '{node}')
- echo $newid $oldid > map
- hg convert --splicemap map newrepo oldrepo
Advertisement
Add Comment
Please, Sign In to add comment