Tools to convert Mercurial to Git consistently at pEp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Claudio Luck 078707c19d document how to push /3 2 weeks ago
README.md document how to push /3 2 weeks ago
authors.txt find unknown authors 5 months ago
list_unknown_authors.sh find unknown authors 5 months ago

README.md

hg-git support tools

In the .hg/hgrc of the Mercurial repository:

Add the gitea git repository

`gitea = git+ssh://gitea@gitea.pep.foundation:23065/<group>/<repo>.git`

Add the [git] section

[git]
branch_bookmark_suffix=_git_pEpFnd
authors = ../hg-git-convert/authors.txt

Make sure to extend authors.txt by all unknown authors

cd repos/<your-repo>
../hg-git-convert/list_unknown_authors.sh

A bookmark per branch

Create a Hg bookmark for every Hg branch that should become a git branch too; the bookmark MUST carry the git.branch_bookmark_suffix configured earlier:

hg branch
hg bookmark -r ${branch} ${branch}_git

Profit: push to Git with Hg

 hg push gitea ${branch}