Force pull from subrepos

Matt Mackall mpm at selenic.com
Wed Jul 15 14:32:48 CDT 2009


On Tue, 2009-07-14 at 22:04 +0000, Mina R Waheeb wrote:
> Hi, I have setup main repo contains subrepo created by convert
> extension from SVN repo, Its read only and always synced by cron job
> on the server side. I need to pull the synced changes in the cloned
> repo (client repo) but .hgsubstate contains a specific version which
> prevent me from pull the synced updates and makes me add a default URL
> for each sub repo and pull each one alone. my question is there is any
> way to force pull from subrepos?

I might have some hope of understanding this with an example. 

As detailed in the documentation, subrepos are only pulled when
necessary. That means pull on happens in a subrepo when we attempt to
*update* a subrepo to a revision we don't have locally. Nothing at all
happens with suprepos when you *pull* at the top level.

> my scenario is very similar to SVN externals and i think its very
> common.

Not surprisingly, Mercurial is different from SVN here: SVN has no
notion of pushing a pulling.

> Also i have an idea when .hgsubstate contains
> (0000000000000000000000000000000000000000   my/subrepo) then hg always
> pull the tip

Again, I have no idea what this means.

When we pull in a subrepo, we always do a full pull.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list