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 | |||
15 |
|
30 | |||
16 | hg cp $i other-file |
|
31 | -- With aaa | |
17 | echo "different" >> $i |
|
32 | Status: | |
18 | hg ci -m "$i -> other-file" |
|
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": |
|
41 | -- With zzz | |
23 | hg st -C |
|
42 | Status: | |
24 | echo |
|
43 | A somename | |
25 | echo "Diff:" |
|
44 | other-file | |
26 | hg diff -g |
|
|||
27 | echo |
|
|||
28 |
|
45 | |||
29 | cd .. |
|
46 | Diff: | |
30 | rm -rf t |
|
47 | diff --git a/other-file b/somename | |
31 | done |
|
48 | copy from other-file | |
|
49 | copy to somename | |||
|
50 | ||||
|
51 |
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