Windows to Linux and vice-versa

Martin Geisler mg at lazybytes.net
Wed Sep 28 17:22:01 UTC 2011


cwr at netcom.co.uk writes:

> I've been trying to access Mercurial archives on Linux from Windows,
> and on Windows from Linux, and some of it works and some of it
> doesn't.
>
> The Windows box is Windows 7 64-bit, running the standard binary
> package of 32-bit Mercurial. The Linux box is a recent 32-bit linux.
> Both machines are running Mercurial 1.9.2, both are on the same
> network, and neither have firewalls enabled. Each machine can ping the
> other and mount the other's exported Samba directories.

Okay, then you have network connectivity. Just for completeness: it's
fine that you mention it, but Mercurial can push/pull between any
combination of CPU architectures.

> With "hg serve" running on the Windows box, viewing
> http://windows_ip:8000 on the Linux box shows the Mercurial project,
> ie. acts correctly, and so does "hg clone http://windows_mac". (I used
> IPv4 addresses to rule out name lookup problems).
>
> With "hg serve" running on the Linux box viewing the Mercurial project
> still works, but "hg clone" fails with (among other errors)
> getaddrinfo failed.

Okay -- it's always a good idea to show us the errors in such a
sitation. Otherwise we'll have to guess what exact command you typed and
what errors you got.

So let me guess... :-) You say you can see the "Mercurial project" from
both machines. By that I assume you see a page like this

  http://selenic.com/hg/

that shows the recent commits? What you see it "hgweb", the built-in
webserver started with "hg serve".

If you can see that, then you can also clone the repositories. Use the
exact same URL as you use in your browser. Above, you wrote that you can
see the project at

  http://windows_ip:8000

Listening on port 8000 is the default behavior of "hg serve", so this
sounds good. But then you write that you can clone

  http://windows_mac

That sounds weird -- you should be able to clone http://windows_ip:8000,
but I don't know what windows_mac is? The MAC address of the machine?

In any case -- if you can see hgweb in your browser, then you can also
clone that same URL with the command line client.

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110928/d476b804/attachment.asc>


More information about the Mercurial mailing list