[PATCH] subrepo: look for local pull source first
Matt Mackall
mpm at selenic.com
Wed Mar 30 11:58:48 CDT 2011
On Wed, 2011-03-30 at 11:50 -0500, Kevin Bullock wrote:
> > You can solve this with the standard share extension on the server. What
> > it does is simple: it behaves as if the .hg folders were symlinked. We
> > symlink the two clones of Component-X back to the top-level Component-X
> > repository. So when Alice does
> >
> > $ cd Project-A/lib/X
> > $ hg push http://server/Component-X
> >
> > then the changesets show up instantaniously in all three Component-X
> > clones on the server. In particular, when Bob does
> >
> > $ cd Project-B/lib/X
> > $ hg pull # no special path
> >
> > then he gets the changesets Alice just pushed.
>
> It can also be done using *actual* symlinks on the server, linking the
> shared component repos into their appropriate relative locations in
> the project repos. This is how I have my 'canonical' repositories set
> up.
And it can also be done with hgweb mappings.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list