Show More
@@ -1,12 +1,14 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init |
|
3 | hg init | |
4 | touch a |
|
4 | touch a | |
5 | hg add a |
|
5 | hg add a | |
6 | hg ci -m "a" -d "0 0" |
|
6 | hg ci -m "a" -d "0 0" | |
7 |
|
7 | |||
8 | echo 123 > b |
|
8 | echo 123 > b | |
9 | hg add b |
|
9 | hg add b | |
10 |
hg diff | sed "s/\( |
|
10 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
11 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |||
11 |
|
12 | |||
12 |
hg diff -r tip | sed "s/\( |
|
13 | hg diff -r tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
14 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
@@ -1,46 +1,47 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | mkdir t |
|
3 | mkdir t | |
4 | cd t |
|
4 | cd t | |
5 | hg init |
|
5 | hg init | |
6 | echo "added file1" > file1 |
|
6 | echo "added file1" > file1 | |
7 | echo "another line of text" >> file1 |
|
7 | echo "another line of text" >> file1 | |
8 | echo "added file2" > file2 |
|
8 | echo "added file2" > file2 | |
9 | hg add file1 file2 |
|
9 | hg add file1 file2 | |
10 | hg commit -m "added file1 and file2" -d "0 0" -u user |
|
10 | hg commit -m "added file1 and file2" -d "0 0" -u user | |
11 | echo "changed file1" >> file1 |
|
11 | echo "changed file1" >> file1 | |
12 | hg commit -m "changed file1" -d "0 0" -u user |
|
12 | hg commit -m "changed file1" -d "0 0" -u user | |
13 | hg -q log |
|
13 | hg -q log | |
14 | hg id |
|
14 | hg id | |
15 | hg update -C 0 |
|
15 | hg update -C 0 | |
16 | hg id |
|
16 | hg id | |
17 | echo "changed file1" >> file1 |
|
17 | echo "changed file1" >> file1 | |
18 | hg id |
|
18 | hg id | |
19 | hg revert |
|
19 | hg revert | |
20 | hg diff |
|
20 | hg diff | |
21 | hg status |
|
21 | hg status | |
22 | hg id |
|
22 | hg id | |
23 | hg update |
|
23 | hg update | |
24 | hg diff |
|
24 | hg diff | |
25 | hg status |
|
25 | hg status | |
26 | hg id |
|
26 | hg id | |
27 | hg update -C 0 |
|
27 | hg update -C 0 | |
28 | echo "changed file1 different" >> file1 |
|
28 | echo "changed file1 different" >> file1 | |
29 | HGMERGE=merge hg update |
|
29 | HGMERGE=merge hg update | |
30 |
hg diff | sed -e "s/\( |
|
30 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" -e "s/\(<<<<<<<\) .*/\1/" \ | |
|
31 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" -e "s/\(>>>>>>>\) .*/\1/" | |||
31 | hg status |
|
32 | hg status | |
32 | hg id |
|
33 | hg id | |
33 | hg revert |
|
34 | hg revert | |
34 | hg diff |
|
35 | hg diff | |
35 | hg status |
|
36 | hg status | |
36 | hg id |
|
37 | hg id | |
37 | hg revert -r tip |
|
38 | hg revert -r tip | |
38 | hg diff |
|
39 | hg diff | |
39 | hg status |
|
40 | hg status | |
40 | hg id |
|
41 | hg id | |
41 | hg update -C |
|
42 | hg update -C | |
42 | hg diff |
|
43 | hg diff | |
43 | hg status |
|
44 | hg status | |
44 | hg id |
|
45 | hg id | |
45 | cd ..; /bin/rm -rf t |
|
46 | cd ..; /bin/rm -rf t | |
46 |
|
47 |
@@ -1,33 +1,33 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | set -e |
|
3 | set -e | |
4 | mkdir r1 |
|
4 | mkdir r1 | |
5 | cd r1 |
|
5 | cd r1 | |
6 | hg init |
|
6 | hg init | |
7 | echo a > a |
|
7 | echo a > a | |
8 | hg addremove |
|
8 | hg addremove | |
9 | hg commit -m "1" -d "0 0" |
|
9 | hg commit -m "1" -d "0 0" | |
10 |
|
10 | |||
11 | hg clone . ../r2 |
|
11 | hg clone . ../r2 | |
12 | cd ../r2 |
|
12 | cd ../r2 | |
13 | hg up |
|
13 | hg up | |
14 | echo abc > a |
|
14 | echo abc > a | |
15 | hg diff > ../d |
|
15 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
16 |
|
|
16 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
17 |
|
17 | |||
18 | cd ../r1 |
|
18 | cd ../r1 | |
19 | echo b > b |
|
19 | echo b > b | |
20 | echo a2 > a |
|
20 | echo a2 > a | |
21 | hg addremove |
|
21 | hg addremove | |
22 | hg commit -m "2" -d "0 0" |
|
22 | hg commit -m "2" -d "0 0" | |
23 |
|
23 | |||
24 | cd ../r2 |
|
24 | cd ../r2 | |
25 | hg -q pull ../r1 |
|
25 | hg -q pull ../r1 | |
26 | hg status |
|
26 | hg status | |
27 | hg --debug up |
|
27 | hg --debug up | |
28 | hg --debug up -m |
|
28 | hg --debug up -m | |
29 | hg parents |
|
29 | hg parents | |
30 | hg -v history |
|
30 | hg -v history | |
31 | hg diff > ../d |
|
31 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
32 |
|
|
32 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
33 |
|
33 |
General Comments 0
You need to be logged in to leave comments.
Login now