Show More
@@ -28,6 +28,6 b' writing tests:' | |||||
28 |
|
28 | |||
29 | - diff will show the current time |
|
29 | - diff will show the current time | |
30 |
|
30 | |||
31 |
use hg diff | sed "s/\( |
|
31 | use hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
32 | dates |
|
32 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
33 |
|
33 | to strip dates |
@@ -8,22 +8,26 b" hg ci -Amstart -d '0 0'" | |||||
8 | echo new > new |
|
8 | echo new > new | |
9 | hg ci -Amnew -d '0 0' |
|
9 | hg ci -Amnew -d '0 0' | |
10 | echo '% new file' |
|
10 | echo '% new file' | |
11 |
hg diff --git -r 0 | sed "s/\( |
|
11 | hg diff --git -r 0 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
12 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |||
12 |
|
13 | |||
13 | hg cp new copy |
|
14 | hg cp new copy | |
14 | hg ci -mcopy -d '0 0' |
|
15 | hg ci -mcopy -d '0 0' | |
15 | echo '% copy' |
|
16 | echo '% copy' | |
16 |
hg diff --git -r 1:tip | sed "s/\( |
|
17 | hg diff --git -r 1:tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
18 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |||
17 |
|
19 | |||
18 | hg mv copy rename |
|
20 | hg mv copy rename | |
19 | hg ci -mrename -d '0 0' |
|
21 | hg ci -mrename -d '0 0' | |
20 | echo '% rename' |
|
22 | echo '% rename' | |
21 |
hg diff --git -r 2:tip | sed "s/\( |
|
23 | hg diff --git -r 2:tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
24 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |||
22 |
|
25 | |||
23 | hg rm rename |
|
26 | hg rm rename | |
24 | hg ci -mdelete -d '0 0' |
|
27 | hg ci -mdelete -d '0 0' | |
25 | echo '% delete' |
|
28 | echo '% delete' | |
26 |
hg diff --git -r 3:tip | sed "s/\( |
|
29 | hg diff --git -r 3:tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
30 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |||
27 |
|
31 | |||
28 | cat > src <<EOF |
|
32 | cat > src <<EOF | |
29 | 1 |
|
33 | 1 | |
@@ -36,11 +40,13 b" hg ci -Amsrc -d '0 0'" | |||||
36 | chmod +x src |
|
40 | chmod +x src | |
37 | hg ci -munexec -d '0 0' |
|
41 | hg ci -munexec -d '0 0' | |
38 | echo '% chmod 644' |
|
42 | echo '% chmod 644' | |
39 |
hg diff --git -r 5:tip | sed "s/\( |
|
43 | hg diff --git -r 5:tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
44 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |||
40 |
|
45 | |||
41 | hg mv src dst |
|
46 | hg mv src dst | |
42 | chmod -x dst |
|
47 | chmod -x dst | |
43 | echo a >> dst |
|
48 | echo a >> dst | |
44 | hg ci -mrenamemod -d '0 0' |
|
49 | hg ci -mrenamemod -d '0 0' | |
45 | echo '% rename+mod+chmod' |
|
50 | echo '% rename+mod+chmod' | |
46 |
hg diff --git -r 6:tip | sed "s/\( |
|
51 | hg diff --git -r 6:tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
52 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
@@ -141,12 +141,14 b' echo foo > new' | |||||
141 | chmod +x new |
|
141 | chmod +x new | |
142 | hg add new |
|
142 | hg add new | |
143 | hg qrefresh |
|
143 | hg qrefresh | |
144 |
sed -e "s/\( |
|
144 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
145 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" .hg/patches/new | |||
145 |
|
146 | |||
146 | hg qnew -m'copy file' copy |
|
147 | hg qnew -m'copy file' copy | |
147 | hg cp new copy |
|
148 | hg cp new copy | |
148 | hg qrefresh |
|
149 | hg qrefresh | |
149 |
sed -e "s/\( |
|
150 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
|
151 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" .hg/patches/copy | |||
150 |
|
152 | |||
151 | hg qpop |
|
153 | hg qpop | |
152 | hg qpush |
|
154 | hg qpush |
General Comments 0
You need to be logged in to leave comments.
Login now