equal
deleted
inserted
replaced
|
1 #!/bin/sh |
|
2 |
|
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH |
|
4 echo "[extensions]" >> $HGTMP/.hgrc |
|
5 echo "fetch=" >> $HGTMP/.hgrc |
|
6 |
|
7 hg init a |
|
8 echo a > a/a |
|
9 hg --cwd a commit -d '1 0' -Ama |
|
10 |
|
11 hg clone a b |
|
12 hg clone a c |
|
13 |
|
14 echo b > a/b |
|
15 hg --cwd a commit -d '2 0' -Amb |
|
16 hg --cwd a parents -q |
|
17 |
|
18 echo % should pull one change |
|
19 hg --cwd b fetch ../a |
|
20 hg --cwd b parents -q |
|
21 |
|
22 echo c > c/c |
|
23 hg --cwd c commit -d '3 0' -Amc |
|
24 hg --cwd c fetch ../a |
|
25 ls c |