Created
May 31, 2021 08:55
-
-
Save andythenorth/3ff4f8f04b37518d5a3d769027671366 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Migrating a hg repo (ELEPHANT example) | |
* copy directory to ELEPHANT.old.hg for backup | |
* cd ELEPHANT | |
* source ../../bin27/bin/activate | |
* git init | |
* git config core.ignoreCase false | |
* ../../tools/hg-fast-export/hg-fast-export.sh -r . -A ../../tools/authors-fast-export.txt | |
* noting that authors doesn't appear to actually work correctly :P | |
* git checkout -f HEAD | |
* fix any wrong authors | |
* git log --all --format='%aN <%cE>' | sort -u | |
* verifies current authors | |
* sh ../../tools//fix_author.sh | |
* fixes current authors (may need editing for specific authors) | |
* verify again | |
* make a new repo on github | |
* git remote add origin https://github.com/andythenorth/ELEPHANT.git | |
* git push -u origin master | |
* touch .gitignore | |
* edit .gitignore and commit | |
* remove .hg* files | |
* fix anything in the build that depends on hg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment