Mercurial > hg
comparison tests/test-subrepo.t @ 17938:fd903f89e42b
share: always set default path to work with subrepos (issue3518)
set the default path in any case because creating subrepo looks this up.
Subrepos are cloned, not shared.
author | simon@laptop-tosh |
---|---|
date | Sat, 27 Oct 2012 12:38:59 +0200 |
parents | ce2c709a8e90 |
children | 9e3910db4e78 |
comparison
equal
deleted
inserted
replaced
17937:3cb032d50447 | 17938:fd903f89e42b |
---|---|
716 $ hg add .hgsub | 716 $ hg add .hgsub |
717 $ hg ci -m 'Added subrepos' | 717 $ hg ci -m 'Added subrepos' |
718 committing subrepository subrepo-2 | 718 committing subrepository subrepo-2 |
719 $ hg st subrepo-2/file | 719 $ hg st subrepo-2/file |
720 | 720 |
721 Check that share works with subrepo | |
722 $ hg --config extensions.share= share . ../shared | |
723 updating working directory | |
724 cloning subrepo subrepo-2 from $TESTTMP/subrepo-status/subrepo-2 | |
725 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
726 $ test -f ../shared/subrepo-1/.hg/sharedpath | |
727 [1] | |
728 | |
721 Check hg update --clean | 729 Check hg update --clean |
722 $ cd $TESTTMP/t | 730 $ cd $TESTTMP/t |
723 $ rm -r t/t.orig | 731 $ rm -r t/t.orig |
724 $ hg status -S --all | 732 $ hg status -S --all |
725 C .hgsub | 733 C .hgsub |