Show More
@@ -1,31 +1,51 b'' | |||
|
1 | #!/bin/sh | |
|
2 | ||
|
3 | for i in aaa zzz; do | |
|
4 | hg init t | |
|
5 | cd t | |
|
6 | ||
|
7 | echo "-- With $i" | |
|
8 | ||
|
9 |
|
|
|
10 | hg add file | |
|
11 | hg ci -m "Add" | |
|
12 | ||
|
13 | hg cp file $i | |
|
14 | hg ci -m "a -> $i" | |
|
1 | $ for i in aaa zzz; do | |
|
2 | > hg init t | |
|
3 | > cd t | |
|
4 | > | |
|
5 | > echo | |
|
6 | > echo "-- With $i" | |
|
7 | > | |
|
8 | > touch file | |
|
9 | > hg add file | |
|
10 | > hg ci -m "Add" | |
|
11 | > | |
|
12 | > hg cp file $i | |
|
13 | > hg ci -m "a -> $i" | |
|
14 | > | |
|
15 | > hg cp $i other-file | |
|
16 | > echo "different" >> $i | |
|
17 | > hg ci -m "$i -> other-file" | |
|
18 | > | |
|
19 | > hg cp other-file somename | |
|
20 | > | |
|
21 | > echo "Status": | |
|
22 | > hg st -C | |
|
23 | > echo | |
|
24 | > echo "Diff:" | |
|
25 | > hg diff -g | |
|
26 | > | |
|
27 | > cd .. | |
|
28 | > rm -rf t | |
|
29 | > done | |
|
15 | 30 | |
|
16 | hg cp $i other-file | |
|
17 | echo "different" >> $i | |
|
18 | hg ci -m "$i -> other-file" | |
|
31 | -- With aaa | |
|
32 | Status: | |
|
33 | A somename | |
|
34 | other-file | |
|
19 | 35 | |
|
20 | hg cp other-file somename | |
|
36 | Diff: | |
|
37 | diff --git a/other-file b/somename | |
|
38 | copy from other-file | |
|
39 | copy to somename | |
|
21 | 40 | |
|
22 | echo "Status": | |
|
23 | hg st -C | |
|
24 | echo | |
|
25 | echo "Diff:" | |
|
26 | hg diff -g | |
|
27 | echo | |
|
41 | -- With zzz | |
|
42 | Status: | |
|
43 | A somename | |
|
44 | other-file | |
|
28 | 45 | |
|
29 | cd .. | |
|
30 | rm -rf t | |
|
31 | done | |
|
46 | Diff: | |
|
47 | diff --git a/other-file b/somename | |
|
48 | copy from other-file | |
|
49 | copy to somename | |
|
50 | ||
|
51 |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now