Skip to content

Instantly share code, notes, and snippets.

@andreif
Last active May 6, 2018 17:42
Show Gist options
  • Select an option

  • Save andreif/62489c915d7e8a4ac3834793cac5efd3 to your computer and use it in GitHub Desktop.

Select an option

Save andreif/62489c915d7e8a4ac3834793cac5efd3 to your computer and use it in GitHub Desktop.

Export hg repo to github

$ pyenv virtualenv 2.7.14 hg

$ pyenv shell hg

$ pip install "mercurial<4.6" "dulwich<0.19"

$ cat ~/.hgrc
[extensions]
hggit = /Users/andrei/.pyenv/versions/hg/lib/python2.7/site-packages/hggit

$ hg clone ssh://[email protected]/dkuhlman/generateds

$ cd generateds

$ hg push git+ssh://[email protected]/andreif/generateDS.git

$ cat .hg/hgrc
[paths]
default = ssh://[email protected]/andreif/generateds
dkuhlman = ssh://[email protected]/dkuhlman/generateds
github = git+ssh://[email protected]/andreif/generateDS.git

$ hg push github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment