Show More
@@ -0,0 +1,24 b'' | |||||
|
1 | $ . "$TESTDIR/remotefilelog-library.sh" | |||
|
2 | ||||
|
3 | $ cat >> $HGRCPATH <<EOF | |||
|
4 | > [extensions] | |||
|
5 | > remotefilelog= | |||
|
6 | > share= | |||
|
7 | > EOF | |||
|
8 | ||||
|
9 | $ hg init master | |||
|
10 | $ cd master | |||
|
11 | $ cat >> .hg/hgrc <<EOF | |||
|
12 | > [remotefilelog] | |||
|
13 | > server=True | |||
|
14 | > EOF | |||
|
15 | $ echo x > x | |||
|
16 | $ hg commit -qAm x | |||
|
17 | ||||
|
18 | $ cd .. | |||
|
19 | ||||
|
20 | ||||
|
21 | $ hgcloneshallow ssh://user@dummy/master source --noupdate -q | |||
|
22 | $ hg share source dest | |||
|
23 | updating working directory | |||
|
24 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
@@ -270,6 +270,7 b' def share(ui, source, dest=None, update=' | |||||
270 | }) |
|
270 | }) | |
271 |
|
271 | |||
272 | postshare(srcrepo, r, defaultpath=defaultpath) |
|
272 | postshare(srcrepo, r, defaultpath=defaultpath) | |
|
273 | r = repository(ui, dest) | |||
273 | _postshareupdate(r, update, checkout=checkout) |
|
274 | _postshareupdate(r, update, checkout=checkout) | |
274 | return r |
|
275 | return r | |
275 |
|
276 |
@@ -560,15 +560,16 b' The newly cloned subrepos contain no wor' | |||||
560 | update: 4 new changesets (update) |
|
560 | update: 4 new changesets (update) | |
561 |
|
561 | |||
562 | Sharing a local repo without the locally referenced subrepo (i.e. it was never |
|
562 | Sharing a local repo without the locally referenced subrepo (i.e. it was never | |
563 |
updated from null), |
|
563 | updated from null) works, but clone fails. | |
564 |
|
564 | |||
565 | $ hg --config progress.disable=True clone -U ../empty ../empty2 |
|
565 | $ hg --config progress.disable=True clone -U ../empty ../empty2 | |
566 |
|
566 | |||
567 | $ hg --config extensions.share= --config progress.disable=True \ |
|
567 | $ hg --config extensions.share= --config progress.disable=True \ | |
568 | > share ../empty2 ../empty_share |
|
568 | > share ../empty2 ../empty_share | |
569 | updating working directory |
|
569 | updating working directory | |
570 |
|
|
570 | sharing subrepo foo from $TESTTMP/empty/foo | |
571 | [255] |
|
571 | sharing subrepo foo/bar from $TESTTMP/empty/foo/bar | |
|
572 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
572 |
|
573 | |||
573 | $ hg --config progress.disable=True clone ../empty2 ../empty_clone |
|
574 | $ hg --config progress.disable=True clone ../empty2 ../empty_clone | |
574 | updating to branch default |
|
575 | updating to branch default |
General Comments 0
You need to be logged in to leave comments.
Login now