May 7, 2009

mercurial and ipv6

by orzel
Categories: Admin, Gentoo
Tags: ,
Comments: 2 Comments

Today I needed to use mercurial over IPv6 in order to share a repository which is on a computer behind an (ipv4) firewall, but that can be reached over ipv6.

The naive

  • hg clone ssh://orzel@ipv6computername/hg/dir
  • hg clone ssh://orzel@[ipv6::address]/hg/dir

miserably failed. But i was hinted on IRC (thanks ‘Ry4an’ !) on how to do this, and thought I should share this knowledge until mercurial get better ipv6 support.

First for the clone call, do

hg --config ui.ssh='ssh -6' clone ssh://orzel@ipv6computername

then you will not be able to push/pull until you add to the repository .hg/hgrc the lines:

[ui]
ssh=ssh -6

Enjoy mercurial on IPv6 🙂


2 Comments »

  1. Mathias says:

    …what about windows?

  2. I dont know about windows. But anyway, this entry is more than 10 years old…

Leave a Reply

Your email address will not be published. Required fields are marked *