# HG changeset patch # User Matt Mackall # Date 1318176237 18000 # Node ID 15f15f3b405d10723f253546390a47e3cbbe2b59 # Parent fad02a84c4ac7760d57ba410fab544ed12914540 subrepo: add git to the help topic diff -r fad02a84c4ac -r 15f15f3b405d mercurial/help/subrepos.txt --- a/mercurial/help/subrepos.txt Sat Oct 08 15:19:05 2011 -0500 +++ b/mercurial/help/subrepos.txt Sun Oct 09 11:03:57 2011 -0500 @@ -1,13 +1,14 @@ Subrepositories let you nest external repositories or projects into a parent Mercurial repository, and make commands operate on them as a -group. External Mercurial and Subversion projects are currently -supported. +group. + +Mercurial currently supports Mercurial, Git, and Subversion +subrepositories. Subrepositories are made of three components: 1. Nested repository checkouts. They can appear anywhere in the - parent working directory, and are Mercurial clones or Subversion - checkouts. + parent working directory. 2. Nested repository references. They are defined in ``.hgsub`` and tell where the subrepository checkouts come from. Mercurial @@ -15,12 +16,15 @@ path/to/nested = https://example.com/nested/repo/path + Git and Subversion subrepos are also supported: + + path/to/nested = [git]git://example.com/nested/repo/path + path/to/nested = [svn]https://example.com/nested/trunk/path + where ``path/to/nested`` is the checkout location relatively to the parent Mercurial root, and ``https://example.com/nested/repo/path`` is the source repository path. The source can also reference a - filesystem path. Subversion repositories are defined with: - - path/to/nested = [svn]https://example.com/nested/trunk/path + filesystem path. Note that ``.hgsub`` does not exist by default in Mercurial repositories, you have to create and add it to the parent