409
|
1 |
#!/bin/sh -x
|
|
2 |
|
|
3 |
mkdir t
|
|
4 |
cd t
|
|
5 |
hg init
|
|
6 |
echo This is file a1 > a
|
|
7 |
hg add a
|
|
8 |
hg commit -t "commit #0" -d "0 0" -u user
|
|
9 |
echo This is file b1 > b
|
|
10 |
hg add b
|
|
11 |
hg commit -t "commit #1" -d "0 0" -u user
|
|
12 |
rm b
|
|
13 |
hg update 0
|
|
14 |
echo This is file b2 > b
|
|
15 |
hg add b
|
|
16 |
hg commit -t "commit #2" -d "0 0" -u user
|
|
17 |
cd ..; /bin/rm -rf t
|
|
18 |
|
|
19 |
mkdir t
|
|
20 |
cd t
|
|
21 |
hg init
|
|
22 |
echo This is file a1 > a
|
|
23 |
hg add a
|
|
24 |
hg commit -t "commit #0" -d "0 0" -u user
|
|
25 |
echo This is file b1 > b
|
|
26 |
hg add b
|
|
27 |
hg commit -t "commit #1" -d "0 0" -u user
|
|
28 |
rm b
|
|
29 |
hg update 0
|
|
30 |
echo This is file b2 > b
|
|
31 |
hg commit -A -t "commit #2" -d "0 0" -u user
|
|
32 |
cd ..; /bin/rm -rf t
|
|
33 |
|
|
34 |
mkdir t
|
|
35 |
cd t
|
|
36 |
hg init
|
|
37 |
echo This is file a1 > a
|
|
38 |
hg add a
|
|
39 |
hg commit -t "commit #0" -d "0 0" -u user
|
|
40 |
echo This is file b1 > b
|
|
41 |
hg add b
|
|
42 |
hg commit -t "commit #1" -d "0 0" -u user
|
|
43 |
rm b
|
|
44 |
hg remove b
|
|
45 |
hg update 0
|
|
46 |
echo This is file b2 > b
|
|
47 |
hg commit -A -t "commit #2" -d "0 0" -u user
|
|
48 |
cd ..; /bin/rm -rf t
|