author | Matt Mackall <mpm@selenic.com> |
Wed, 02 Apr 2008 18:51:06 -0500 | |
changeset 6454 | eec89a03db08 |
parent 6424 | d8f44384c3ee |
child 6489 | 204a2ca249b6 |
permissions | -rwxr-xr-x |
6424 | 1 |
#!/bin/bash |
2 |
||
3 |
for i in aaa zzz; do |
|
4 |
hg init t |
|
5 |
cd t |
|
6 |
||
7 |
echo "-- With $i" |
|
8 |
||
9 |
touch file |
|
10 |
hg add file |
|
11 |
hg ci -m "Add" |
|
12 |
||
13 |
hg cp file $i |
|
14 |
hg ci -m "a -> $i" |
|
15 |
||
16 |
hg cp $i other-file |
|
17 |
echo "different" >> $i |
|
18 |
hg ci -m "$i -> other-file" |
|
19 |
||
20 |
hg cp other-file somename |
|
21 |
||
22 |
echo "Status": |
|
23 |
hg st -C |
|
24 |
echo |
|
25 |
echo "Diff:" |
|
26 |
hg diff -g |
|
27 |
echo |
|
28 |
||
29 |
cd .. |
|
30 |
rm -rf t |
|
31 |
done |