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