Re: [how can I pull from hg serve?]

2023-02-27 Thread Uwe Brauer
>>> "AB" == Arne Babenhauserheide  writes:

> Uwe Brauer  writes:

>> Ok, when I am in the university that is not a problem, the laptop gets
>> a static IP, however at home I obtain a dynamic one, not sure whether
>> that might cause problems.

> The solution to that is dyndns — for example from afraid.org

Thanks that looks interesting, did not know about it
> Best wishes,
> Arne

-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/


smime.p7s
Description: S/MIME cryptographic signature
___
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial


Re: [how can I pull from hg serve?]

2023-02-27 Thread Dr. Arne Babenhauserheide

Uwe Brauer  writes:

> Ok, when I am in the university that is not a problem, the laptop gets
> a static IP, however at home I obtain a dynamic one, not sure whether
> that might cause problems.

The solution to that is dyndns — for example from afraid.org

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de


signature.asc
Description: PGP signature
___
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial


Re: [how can I pull from hg serve?]

2023-02-27 Thread Uwe Brauer
>>> "FK" == František Kučera  writes:

> Dne 26. 02. 23 v 11:13 Uwe Brauer napsal(a):
>>> 2. How can I change the setting to have the my IP number instead the
>>> name of my machine?
>> That one is still mysterious to me.

> When I run hg serve, it prints:

>     listening at http://my-hostname:8000/ (bound to *:8000)

> and it really listens on any IP address:

>     $ ss -tlpn | grep hg
>     LISTEN 0  5    0.0.0.0:8000   0.0.0.0:* 
> users:(("hg",pid=9562,fd=3))

> So if you have the public IP address assigned to the computer that
> runs hg serve, you can clone/pull from that address regardless hg
> serve told you "listening at http://my-hostname:8000/;.


Ok, when I am in the university that is not a problem, the laptop gets a static 
IP, however at home I obtain a dynamic one, not sure whether that might cause 
problems.

Thanks 
-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/


smime.p7s
Description: S/MIME cryptographic signature
___
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial


Re: [how can I pull from hg serve?]

2023-02-26 Thread Uwe Brauer


> There is nothing to change. If you use the IP address of your machine
> to pull it will just work. That is after all what the machine name
> maps to anyway. It’s all an IP address in the end.

Just to get this straight. I tell someone, say in Australia my IP
I run hg serve
then this someone can run 
hg pull http://147.96.1.2:8000/

That is interesting and a method of last resort. Interesting enough cloning 
does not work, well and pushing would require, either 
ssh 

Or to configure https 

I presume

thanks

> Scott

-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/


smime.p7s
Description: S/MIME cryptographic signature
___
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial


Re: [how can I pull from hg serve?]

2023-02-26 Thread František Kučera

Dne 26. 02. 23 v 11:13 Uwe Brauer napsal(a):

2. How can I change the setting to have the my IP number instead the
name of my machine?

That one is still mysterious to me.


When I run hg serve, it prints:

    listening at http://my-hostname:8000/ (bound to *:8000)

and it really listens on any IP address:

    $ ss -tlpn | grep hg
    LISTEN 0  5    0.0.0.0:8000   0.0.0.0:* 
users:(("hg",pid=9562,fd=3))

So if you have the public IP address assigned to the computer that runs hg serve, you can 
clone/pull from that address regardless hg serve told you "listening at 
http://my-hostname:8000/;.

I would rather expect issues with firewalls or NATs than with Mercurial itself.

Franta

___
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial


Re: [how can I pull from hg serve?]

2023-02-26 Thread Scott Palmer

> On Feb 26, 2023, at 5:14 AM, Uwe Brauer  wrote:
> 
> 
>> 
 "UB" == Uwe Brauer  writes:
> 
>> I tried out a very simple thing:
> 
>> in a repository I run hg serve
>> well I can open with a browser 
>> to http://name of my_machine:8000
> 
>> The documentation claims this is for pulling,
> 
>> «Mercurial has a built-in light-weight web server which can be used for
>> browsing a repository with a web browser or for allowing remote machines
>> to pull from you. To use it, simply run:»
> 
>> Now 
> 
>>1. But even on my own machine how can I pull? hg pull
>>   http://name of my_machine:8000
>>   Does not work!
> 
> I does, sorry I made a mistake
> 
>>2. How can I change the setting to have the my IP number instead the
>>   name of my machine?
> 
> 
> That one is still mysterious to me.

There is nothing to change.  If you use the IP address of your machine to pull 
it will just work.  That is after all what the machine name maps to anyway.  
It’s all an IP address in the end.

Scott
___
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial


Re: [how can I pull from hg serve?]

2023-02-26 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> I tried out a very simple thing:

>  in a repository I run hg serve
>  well I can open with a browser 
> to http://name of my_machine:8000

> The documentation claims this is for pulling,

> «Mercurial has a built-in light-weight web server which can be used for
> browsing a repository with a web browser or for allowing remote machines
> to pull from you. To use it, simply run:»

> Now 

> 1. But even on my own machine how can I pull? hg pull
>http://name of my_machine:8000
>Does not work!

I does, sorry I made a mistake

> 2. How can I change the setting to have the my IP number instead the
>name of my machine?


That one is still mysterious to me.

> Thanks 

> Uwe Brauer 



-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/


smime.p7s
Description: S/MIME cryptographic signature
___
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial