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