Mercurial > public > mercurial-scm > hg-stable
diff tests/test-subrepo-deep-nested-change.t @ 14281:ccb7240acf32
subrepo: create subrepos using clone instead of pull
Subrepositories used to be created empty and then filled with data
using pull. This is wasteful when you do a clone from a local source
since it means that no hardlinks are created for the subrepos.
This patch make the hgsubrepo._get method check for an empty subrepo
and in that case do a clone instead of a pull. This brings in the same
data as before, but creates hardlinks when possible.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 09 May 2011 17:15:44 +0200 |
parents | 6cc4b14fb76b |
children | e174353e8cda |
line wrap: on
line diff
--- a/tests/test-subrepo-deep-nested-change.t Mon May 09 16:41:45 2011 +0200 +++ b/tests/test-subrepo-deep-nested-change.t Mon May 09 17:15:44 2011 +0200 @@ -27,12 +27,7 @@ $ echo "sub1 = ../sub1" > main/.hgsub $ hg clone sub1 main/sub1 updating to branch default - pulling subrepo sub2 from $TESTTMP/sub2 - requesting all changes - adding changesets - adding manifests - adding file changes - added 1 changesets with 1 changes to 1 files + cloning subrepo sub2 from $TESTTMP/sub2 3 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg add -R main adding main/.hgsub @@ -55,18 +50,8 @@ $ hg clone main cloned updating to branch default - pulling subrepo sub1 from $TESTTMP/sub1 - requesting all changes - adding changesets - adding manifests - adding file changes - added 1 changesets with 3 changes to 3 files - pulling subrepo sub1/sub2 from $TESTTMP/sub2 - requesting all changes - adding changesets - adding manifests - adding file changes - added 1 changesets with 1 changes to 1 files + cloning subrepo sub1 from $TESTTMP/sub1 + cloning subrepo sub1/sub2 from $TESTTMP/sub2 3 files updated, 0 files merged, 0 files removed, 0 files unresolved Checking cloned repo ids