[PATCH 1 of 2] subrepo: look for local pull source first

Martin Geisler mg at aragost.com
Mon Mar 28 08:52:03 CDT 2011


Mads Kiilerich <mads at kiilerich.com> writes:

> Martin Geisler wrote, On 03/25/2011 05:27 PM:
>> In other words, the patch makes
>>    $ hg clone /foo
>>
>> behave like
>>
>>    $ hg init foo
>>    $ cd foo
>>    $ hg pull --update /foo
>>
>> So it makes the "clone == init + pull" rule of thumb a bit more true.
>
> I would say that it already _is_ the same. In what way are they
> different?

Hmm, you are right that they behave identical today. I thought the pull
with update would work when the clone failed. Sorry about that...

> I do however agree that
>
>   $ hg pull --update /foo
>
> is very different from
>
>   $ hg pull /foo && hg update

Yeah, that is obviously the situation I want to improve.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/en/services/mercurial/blog/


More information about the Mercurial-devel mailing list