hg server

Matt Mackall mpm at selenic.com
Mon May 16 19:09:36 UTC 2005


On Mon, May 16, 2005 at 07:22:25PM +0200, Vincent Danjean wrote:
> On Mon, May 16, 2005 at 09:48:02AM -0700, Matt Mackall wrote:
> > On Mon, May 16, 2005 at 06:35:25PM +0200, Vadim Lebedev wrote:
> > > So i think it would be useful to have some way to store the default 
> > > parent repository...
> > > for example in .hg/.parent file  which will containt a uri of the parent 
> > > repo...
> > 
> > First, no hidden files in .hg, that's silly. Second, it might be
> > better to have some sort of alias file that's actually version
> > controlled. Eg: .hgservers, which is a list of urls and names. Then, I
> > simply check in an alias for 'mainline' and everyone can do an 'hg
> > merge mainline' after they've synced with me once.
> 
>   I would appreciate if there is also an alias file NOT version
> controlled: if I configure my repository to be able to do some pull, I
> do not want them to be exported when I do a push.
>   Moreover, with bk, I frequently use some strange URL to bypass some
> firewalls (machine names are not real DNS names, but rather names
> interpreted by .ssh/config)
>   So, I'm not convinced at all by a version controlled alias file.

We could have .hgservers-local or somesuch that is ignored by checkin.

>   And, from a security point of view, if a pull can change the place
> where the next pull will download stuff, I am really not convinced.

Interesting. Someone other than me might change where mainline is and
once you pull from them, you end up pulling from the wrong place. Ok,
perhaps not as clever as I thought..

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list