Pull / clone over SSH

Mark Williamson mark.williamson at cl.cam.ac.uk
Fri Jul 1 00:13:48 UTC 2005


> SSH pull is not yet implemented. Doing it right means reworking the
> protocol a bit. For the time being, you can do it similarly to what
> push does internally:
>
> ssh user at remotehost -L <x>:localhost:<x> hg serve -p <x>
> hg pull http://localhost:<x>/

Thanks for the tip, that works great!

Another question: BK had a concept of a "parent" repository in the hierarchy.  
This would default to the source of the original clone and would be used 
implicitly as the source argument to a pull / push unless you specified 
otherwise.

Is there any way to do this in hg?  I know you can set aliases for 
repositories - and I don't want to turn hg into bk ;-)  But I did always find 
it quite a handy feature - even if I could just set the default "parent repo" 
manually that'd save some typing in my workflow.

Cheers,
Mark



More information about the Mercurial mailing list