On Fri, Aug 9, 2013 at 4:19 PM, Antoine Pelisse <apeli...@gmail.com> wrote:
> Confusion everywhere :-)
> On Fri, Aug 9, 2013 at 10:53 PM, Junio C Hamano <gits...@pobox.com> wrote:
>> Antoine Pelisse <apeli...@gmail.com> writes:
>>> So when we run:
>>> git clone hg::~/my/repo
>>> Git will remove the "hg::" part, and Mercurial will expand tilde and
>>> clone $HOME/my/repo.
>> Now you confused me.  If the implementation were for us to remove
>> the hg:: prefix and let Mercurial do whatever it wants to do with
>> the rest, you are right that we will not have to do any expansion
>> like your patch.  But you sent a patch to do so, so apparently it
>> is not what happens.  So where does it go wrong?
>> Puzzled...
> OK, I think I see why you are puzzled.
> Cloning works fine because we "fix the path" *after* the clone is done
> successfully, for the following reason:

So if we didn't store a different path, it would work. So instead of
expanding '~' ourselves, it would be better to don't expand anything,
and leave it as it is, but how to detect that in fix_path()?

Felipe Contreras
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to