Mercurial "externals"

Michael Ekstrand michael at elehack.net
Fri Apr 25 03:22:07 UTC 2008


George Ryan <gryan at akoostix.com> writes:
> I am currently using Subversion as a CM tool, but I am interesting in 
> moving to the more distributed nature of Mercurial. I have one question 
> so far that I didn't see (or was too blind to find) in the 
> documentation. Is there any way in Mercurial to emulate the Subversion 
> "externals" property? That is, can I have check-out dependencies on 
> other repositories or files? I have a build system that is very modular 
> and right now each module checks out its dependencies automatically.

The closest thing I can think of is to have nested repositories and use
the 'forest' extension; on the server you can have multiple repositories
in a directory structure with some top-level repository and use 'hg
fclone' to clone them.  This does not duplicate the exact functionality
of 'external', but is probably a fairly decent approximation in the
spirit of a DVCS.

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.




More information about the Mercurial mailing list