On Thu, 12 Nov 2009, Stefane Fermigier wrote:

> Thanks. I think Florent sent a message about this this summer, but
> we haven't had the time to move in this direction yet.
>
> On Nov 12, 2009, at 2:09 PM, Robert P. J. Day wrote:
>
> > On Thu, 12 Nov 2009, Stefane Fermigier wrote:
> >
> > > To update all the the subprojects , you can run:
> > >
> > > for x in nuxeo-*
> > > do
> > > ( cd $x ; hg pull ; hg up )
> > > done
> >
> > amusingly, that is almost, letter for letter, what i used.
> >
> > > AFAIK Mercurial doesn't support this out of the box.
> >
> > i think what you're after here is mercurial nested repositories:
> >
> > http://mercurial.selenic.com/wiki/NestedRepositories
> >
> > rday

  after a bit of testing earlier today, i don't think mercurial nested
repos are going to help.  while they superficially look like
"svn:externals", at the moment, only a small number of hg commands are
subrepo-aware -- commit, push and update.  so even after setting up
the proper .hgsub file, you can't do nested "hg pull" or "hg
incoming", which (sort of) minimizes the value of that feature.

  for the nuxeo repos, setting this up involved simply creating the
top-level .hgsub text file:

=====

nuxeo-common            = http://hg.nuxeo.org/nuxeo/nuxeo-common
nuxeo-runtime           = http://hg.nuxeo.org/nuxeo/nuxeo-runtime
nuxeo-core              = http://hg.nuxeo.org/nuxeo/nuxeo-core
nuxeo-services          = http://hg.nuxeo.org/nuxeo/nuxeo-services
nuxeo-theme             = http://hg.nuxeo.org/nuxeo/nuxeo-theme
nuxeo-webengine         = http://hg.nuxeo.org/nuxeo/nuxeo-webengine
nuxeo-jsf               = http://hg.nuxeo.org/nuxeo/nuxeo-jsf
nuxeo-gwt               = http://hg.nuxeo.org/nuxeo/nuxeo-gwt
nuxeo-features          = http://hg.nuxeo.org/nuxeo/nuxeo-features
nuxeo-dm                = http://hg.nuxeo.org/nuxeo/nuxeo-dm
nuxeo-distribution      = http://hg.nuxeo.org/nuxeo/nuxeo-distribution

=====

  adding it and committing it locally, which generated the
corresponding .hgsubstate file:

=====

de4859549a9c4743329f7a7c4c44b0c81bf64bfc nuxeo-common
10557e150625d3bf6079c69e5892a9fa6c90c128 nuxeo-core
d7129ff319a2620bddb0c0a4f10e71d5ccd9f2ca nuxeo-distribution
41db14b32bc6bc0cd57546ea18e577073958ab43 nuxeo-dm
55569fcb78d9c6d803ac950c47c771b28bc9755c nuxeo-features
cf38bcd105488ae4f81691036ceb37e00dd716ce nuxeo-gwt
995591e221cb77cb1eb2391dd03fd9d3eba2d1d2 nuxeo-jsf
885beca501cda4a68a724ed234912a49fd6a90e4 nuxeo-runtime
eac7526e81b11d0c0f7cf7d3cc53a39fead24202 nuxeo-services
49e431975ca564ebecf9ad3ad10a45b7ba457932 nuxeo-theme
dad67a234e4e2b14154496da9e8ae91c2604a6ff nuxeo-webengine

=====

  at that point, my nested repos are set up locally but, as i
mentioned above, the value is somewhat limited with only a few hg
commands taking advantage of that.

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to