Show More
@@ -1,42 +1,43 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | echo "[extensions]" >> $HGRCPATH |
|
4 | 4 | echo "share = " >> $HGRCPATH |
|
5 | 5 | |
|
6 | 6 | echo % prepare repo1 |
|
7 | 7 | hg init repo1 |
|
8 | 8 | cd repo1 |
|
9 | 9 | echo a > a |
|
10 | 10 | hg commit -A -m'init' |
|
11 | 11 | |
|
12 | 12 | echo % share it |
|
13 | 13 | cd .. |
|
14 | 14 | hg share repo1 repo2 |
|
15 | 15 | |
|
16 | 16 | echo % contents of repo2/.hg |
|
17 | 17 | cd repo2 |
|
18 | 18 | [ -d .hg/store ] \ |
|
19 | 19 | && echo "fail: .hg/store should not exist" \ |
|
20 | 20 | || echo "pass: .hg/store does not exist" |
|
21 | cat .hg/sharedpath | sed "s:$HGTMP:*HGTMP*:"; echo | |
|
21 | # sed appends a newline to the stream if none, GNU sed does not | |
|
22 | sed "s:$HGTMP:*HGTMP*:" .hg/sharedpath | tr -d '\n'; echo | |
|
22 | 23 | |
|
23 | 24 | echo % commit in shared clone |
|
24 | 25 | echo a >> a |
|
25 | 26 | hg commit -m'change in shared clone' |
|
26 | 27 | |
|
27 | 28 | echo % check original |
|
28 | 29 | cd ../repo1 |
|
29 | 30 | hg log |
|
30 | 31 | hg update |
|
31 | 32 | cat a # should be two lines of "a" |
|
32 | 33 | |
|
33 | 34 | echo % commit in original |
|
34 | 35 | echo b > b |
|
35 | 36 | hg commit -A -m'another file' |
|
36 | 37 | |
|
37 | 38 | echo % check in shared clone |
|
38 | 39 | cd ../repo2 |
|
39 | 40 | hg log |
|
40 | 41 | hg update |
|
41 | 42 | cat b # should exist with one "b" |
|
42 | 43 |
General Comments 0
You need to be logged in to leave comments.
Login now