[PATCH] subrepo: look for local pull source first

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Mar 25 16:28:04 CDT 2011


On 25 Mar 2011, at 3:36 AM, Martin Geisler wrote:

> Mads Kiilerich <mads at kiilerich.com> writes:

[...]

>> If we want this I think it should be guarded by a command line option.
>> But because it will kick in when nobody expects it it would perhaps be
>> more convenient with an ugly config setting.
> 
> It does not change anything from the user's perspective: he gets the
> revision he asked for.
> 
> I'll grant you this: he might get other additional changesets than if he
> had pulled from the source listed in .hgsub. Currently, Mercurial will
> pull in all changesets from the repo listed in .hgsub, with my patch it
> will pull in all changesets from the in-place subrepo.

It does?! My understanding was that an `hg update` pulled in _only_ up to the revision needed to do the update (effectively `hg pull -R sub -r SUBREV`).

...which, if coupled with the addition of a `pull -S/--subrepo` option, would be my preferred way for it to work.

pacem in terris / mir / shanti / salaam / heiwa
Kevin R. Bullock



More information about the Mercurial-devel mailing list