Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] [SIGNED-OFF] remotes-hg: bugfix for fetching non local remotes

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:58:15

Jörn Hees [off-list ref] writes:
On 24 Jul 2013, at 17:20, Junio C Hamano [off-list ref] wrote:
quoted
	Goes and looks...

OK, the tracking branches for these are created under refs/hg/*
using the same name.
...
A refname shouldn't begin or end with a dot, because the range
... ellided a correct description of the reason behind rule, which is
... irrelevant to the topic
I think there is a slight misunderstanding here:

.git/hg/<remote_name> will be the actual directory for a hg::
remote, which will then use mercurial internal magic to refer to
the shared repo .git/hg/.shared in case the remote is not
somewhere on the local filesystem, otherwise that path is used.
Yes, it is not a "slight" but a "huge" misunderstanding.

I saw the caller of get_repo(url, alias) doing a

    'refs/hg/%s' % alias

immediately after the call, and somehow assumed that the proposal
would result in stuffing .shared to the "alias", which is not the
case.  The hg/$name directories may be used to store Hg repositories
for 'alias' that is passed by the caller, but hg/.shared thing you
guys were discussing is internal to get_repo() implementation and
there won't be refs/hg/.shared created because of this change.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help