Show More
@@ -15,7 +15,7 b' Select no files' | |||||
15 | $ touch empty-rw |
|
15 | $ touch empty-rw | |
16 | $ hg add empty-rw |
|
16 | $ hg add empty-rw | |
17 |
|
17 | |||
18 |
$ hg |
|
18 | $ hg commit -i empty-rw<<EOF | |
19 | > n |
|
19 | > n | |
20 | > EOF |
|
20 | > EOF | |
21 | diff --git a/empty-rw b/empty-rw |
|
21 | diff --git a/empty-rw b/empty-rw | |
@@ -34,7 +34,7 b' Select no files' | |||||
34 |
|
34 | |||
35 | Select files but no hunks |
|
35 | Select files but no hunks | |
36 |
|
36 | |||
37 |
$ hg |
|
37 | $ hg commit -i empty-rw<<EOF | |
38 | > y |
|
38 | > y | |
39 | > n |
|
39 | > n | |
40 | > EOF |
|
40 | > EOF | |
@@ -55,7 +55,7 b' Select files but no hunks' | |||||
55 |
|
55 | |||
56 | Record empty file |
|
56 | Record empty file | |
57 |
|
57 | |||
58 |
$ hg |
|
58 | $ hg commit -i -d '0 0' -m empty empty-rw<<EOF | |
59 | > y |
|
59 | > y | |
60 | > y |
|
60 | > y | |
61 | > EOF |
|
61 | > EOF | |
@@ -85,7 +85,7 b' Summary shows we updated to the new cset' | |||||
85 | Rename empty file |
|
85 | Rename empty file | |
86 |
|
86 | |||
87 | $ hg mv empty-rw empty-rename |
|
87 | $ hg mv empty-rw empty-rename | |
88 |
$ hg |
|
88 | $ hg commit -i -d '1 0' -m rename<<EOF | |
89 | > y |
|
89 | > y | |
90 | > EOF |
|
90 | > EOF | |
91 | diff --git a/empty-rw b/empty-rename |
|
91 | diff --git a/empty-rw b/empty-rename | |
@@ -106,7 +106,7 b' Rename empty file' | |||||
106 | Copy empty file |
|
106 | Copy empty file | |
107 |
|
107 | |||
108 | $ hg cp empty-rename empty-copy |
|
108 | $ hg cp empty-rename empty-copy | |
109 |
$ hg |
|
109 | $ hg commit -i -d '2 0' -m copy<<EOF | |
110 | > y |
|
110 | > y | |
111 | > EOF |
|
111 | > EOF | |
112 | diff --git a/empty-rename b/empty-copy |
|
112 | diff --git a/empty-rename b/empty-copy | |
@@ -127,7 +127,7 b' Copy empty file' | |||||
127 | Delete empty file |
|
127 | Delete empty file | |
128 |
|
128 | |||
129 | $ hg rm empty-copy |
|
129 | $ hg rm empty-copy | |
130 |
$ hg |
|
130 | $ hg commit -i -d '3 0' -m delete<<EOF | |
131 | > y |
|
131 | > y | |
132 | > EOF |
|
132 | > EOF | |
133 | diff --git a/empty-copy b/empty-copy |
|
133 | diff --git a/empty-copy b/empty-copy | |
@@ -149,7 +149,7 b' Add binary file' | |||||
149 | $ hg bundle --base -2 tip.bundle |
|
149 | $ hg bundle --base -2 tip.bundle | |
150 | 1 changesets found |
|
150 | 1 changesets found | |
151 | $ hg add tip.bundle |
|
151 | $ hg add tip.bundle | |
152 |
$ hg |
|
152 | $ hg commit -i -d '4 0' -m binary<<EOF | |
153 | > y |
|
153 | > y | |
154 | > EOF |
|
154 | > EOF | |
155 | diff --git a/tip.bundle b/tip.bundle |
|
155 | diff --git a/tip.bundle b/tip.bundle | |
@@ -173,7 +173,7 b' Change binary file' | |||||
173 |
|
173 | |||
174 | $ hg bundle --base -2 tip.bundle |
|
174 | $ hg bundle --base -2 tip.bundle | |
175 | 1 changesets found |
|
175 | 1 changesets found | |
176 |
$ hg |
|
176 | $ hg commit -i -d '5 0' -m binary-change<<EOF | |
177 | > y |
|
177 | > y | |
178 | > EOF |
|
178 | > EOF | |
179 | diff --git a/tip.bundle b/tip.bundle |
|
179 | diff --git a/tip.bundle b/tip.bundle | |
@@ -197,7 +197,7 b' Rename and change binary file' | |||||
197 | $ hg mv tip.bundle top.bundle |
|
197 | $ hg mv tip.bundle top.bundle | |
198 | $ hg bundle --base -2 top.bundle |
|
198 | $ hg bundle --base -2 top.bundle | |
199 | 1 changesets found |
|
199 | 1 changesets found | |
200 |
$ hg |
|
200 | $ hg commit -i -d '6 0' -m binary-change-rename<<EOF | |
201 | > y |
|
201 | > y | |
202 | > EOF |
|
202 | > EOF | |
203 | diff --git a/tip.bundle b/top.bundle |
|
203 | diff --git a/tip.bundle b/top.bundle | |
@@ -227,7 +227,7 b' Add plain file' | |||||
227 | > done |
|
227 | > done | |
228 |
|
228 | |||
229 | $ hg add plain |
|
229 | $ hg add plain | |
230 |
$ hg |
|
230 | $ hg commit -i -d '7 0' -m plain plain<<EOF | |
231 | > y |
|
231 | > y | |
232 | > y |
|
232 | > y | |
233 | > EOF |
|
233 | > EOF | |
@@ -274,7 +274,7 b' Modify end of plain file with username u' | |||||
274 |
|
274 | |||
275 | $ echo 11 >> plain |
|
275 | $ echo 11 >> plain | |
276 | $ unset HGUSER |
|
276 | $ unset HGUSER | |
277 |
$ hg |
|
277 | $ hg commit -i --config ui.username= -d '8 0' -m end plain | |
278 | abort: no username supplied |
|
278 | abort: no username supplied | |
279 | (use "hg config --edit" to set your username) |
|
279 | (use "hg config --edit" to set your username) | |
280 | [255] |
|
280 | [255] | |
@@ -284,7 +284,7 b' Modify end of plain file, also test that' | |||||
284 |
|
284 | |||
285 | $ HGUSER="test" |
|
285 | $ HGUSER="test" | |
286 | $ export HGUSER |
|
286 | $ export HGUSER | |
287 |
$ hg |
|
287 | $ hg commit -i --config diff.showfunc=true -d '8 0' -m end plain <<EOF | |
288 | > y |
|
288 | > y | |
289 | > y |
|
289 | > y | |
290 | > EOF |
|
290 | > EOF | |
@@ -303,7 +303,7 b' Modify end of plain file, also test that' | |||||
303 | Modify end of plain file, no EOL |
|
303 | Modify end of plain file, no EOL | |
304 |
|
304 | |||
305 | $ hg tip --template '{node}' >> plain |
|
305 | $ hg tip --template '{node}' >> plain | |
306 |
$ hg |
|
306 | $ hg commit -i -d '9 0' -m noeol plain <<EOF | |
307 | > y |
|
307 | > y | |
308 | > y |
|
308 | > y | |
309 | > EOF |
|
309 | > EOF | |
@@ -325,7 +325,7 b' Modify end of plain file, add EOL' | |||||
325 | $ echo >> plain |
|
325 | $ echo >> plain | |
326 | $ echo 1 > plain2 |
|
326 | $ echo 1 > plain2 | |
327 | $ hg add plain2 |
|
327 | $ hg add plain2 | |
328 |
$ hg |
|
328 | $ hg commit -i -d '10 0' -m eol plain plain2 <<EOF | |
329 | > y |
|
329 | > y | |
330 | > y |
|
330 | > y | |
331 | > y |
|
331 | > y | |
@@ -361,7 +361,7 b' changes numbering' | |||||
361 | > done |
|
361 | > done | |
362 | $ echo 2 >> plain2 |
|
362 | $ echo 2 >> plain2 | |
363 |
|
363 | |||
364 |
$ hg |
|
364 | $ hg commit -i -d '10 0' -m begin-and-end plain plain2 <<EOF | |
365 | > y |
|
365 | > y | |
366 | > y |
|
366 | > y | |
367 | > y |
|
367 | > y | |
@@ -437,7 +437,7 b' Trim beginning, modify end' | |||||
437 |
|
437 | |||
438 | Record end |
|
438 | Record end | |
439 |
|
439 | |||
440 |
$ hg |
|
440 | $ hg commit -i -d '11 0' -m end-only plain <<EOF | |
441 | > y |
|
441 | > y | |
442 | > n |
|
442 | > n | |
443 | > y |
|
443 | > y | |
@@ -490,7 +490,7 b' Record end' | |||||
490 |
|
490 | |||
491 | Record beginning |
|
491 | Record beginning | |
492 |
|
492 | |||
493 |
$ hg |
|
493 | $ hg commit -i -d '12 0' -m begin-only plain <<EOF | |
494 | > y |
|
494 | > y | |
495 | > y |
|
495 | > y | |
496 | > EOF |
|
496 | > EOF | |
@@ -536,7 +536,7 b' Add to beginning, trim from end' | |||||
536 |
|
536 | |||
537 | Record end |
|
537 | Record end | |
538 |
|
538 | |||
539 |
$ hg |
|
539 | $ hg commit -i --traceback -d '13 0' -m end-again plain<<EOF | |
540 | > y |
|
540 | > y | |
541 | > n |
|
541 | > n | |
542 | > y |
|
542 | > y | |
@@ -577,7 +577,7 b' Add to beginning, middle, end' | |||||
577 |
|
577 | |||
578 | Record beginning, middle, and test that format-breaking diffopts are ignored |
|
578 | Record beginning, middle, and test that format-breaking diffopts are ignored | |
579 |
|
579 | |||
580 |
$ hg |
|
580 | $ hg commit -i --config diff.noprefix=True -d '14 0' -m middle-only plain <<EOF | |
581 | > y |
|
581 | > y | |
582 | > y |
|
582 | > y | |
583 | > y |
|
583 | > y | |
@@ -641,7 +641,7 b' Record beginning, middle, and test that ' | |||||
641 |
|
641 | |||
642 | Record end |
|
642 | Record end | |
643 |
|
643 | |||
644 |
$ hg |
|
644 | $ hg commit -i -d '15 0' -m end-only plain <<EOF | |
645 | > y |
|
645 | > y | |
646 | > y |
|
646 | > y | |
647 | > EOF |
|
647 | > EOF | |
@@ -683,7 +683,7 b' Record end' | |||||
683 | adding subdir/a |
|
683 | adding subdir/a | |
684 |
|
684 | |||
685 | $ echo a >> a |
|
685 | $ echo a >> a | |
686 |
$ hg |
|
686 | $ hg commit -i -d '16 0' -m subdir-change a <<EOF | |
687 | > y |
|
687 | > y | |
688 | > y |
|
688 | > y | |
689 | > EOF |
|
689 | > EOF | |
@@ -723,7 +723,7 b' Record end' | |||||
723 |
|
723 | |||
724 | Help, quit |
|
724 | Help, quit | |
725 |
|
725 | |||
726 |
$ hg |
|
726 | $ hg commit -i <<EOF | |
727 | > ? |
|
727 | > ? | |
728 | > q |
|
728 | > q | |
729 | > EOF |
|
729 | > EOF | |
@@ -747,7 +747,7 b' Help, quit' | |||||
747 |
|
747 | |||
748 | Skip |
|
748 | Skip | |
749 |
|
749 | |||
750 |
$ hg |
|
750 | $ hg commit -i <<EOF | |
751 | > s |
|
751 | > s | |
752 | > EOF |
|
752 | > EOF | |
753 | diff --git a/subdir/f1 b/subdir/f1 |
|
753 | diff --git a/subdir/f1 b/subdir/f1 | |
@@ -761,7 +761,7 b' Skip' | |||||
761 |
|
761 | |||
762 | No |
|
762 | No | |
763 |
|
763 | |||
764 |
$ hg |
|
764 | $ hg commit -i <<EOF | |
765 | > n |
|
765 | > n | |
766 | > EOF |
|
766 | > EOF | |
767 | diff --git a/subdir/f1 b/subdir/f1 |
|
767 | diff --git a/subdir/f1 b/subdir/f1 | |
@@ -775,7 +775,7 b' No' | |||||
775 |
|
775 | |||
776 | f, quit |
|
776 | f, quit | |
777 |
|
777 | |||
778 |
$ hg |
|
778 | $ hg commit -i <<EOF | |
779 | > f |
|
779 | > f | |
780 | > q |
|
780 | > q | |
781 | > EOF |
|
781 | > EOF | |
@@ -792,7 +792,7 b' f, quit' | |||||
792 |
|
792 | |||
793 | s, all |
|
793 | s, all | |
794 |
|
794 | |||
795 |
$ hg |
|
795 | $ hg commit -i -d '18 0' -mx <<EOF | |
796 | > s |
|
796 | > s | |
797 | > a |
|
797 | > a | |
798 | > EOF |
|
798 | > EOF | |
@@ -822,7 +822,7 b' s, all' | |||||
822 |
|
822 | |||
823 | f |
|
823 | f | |
824 |
|
824 | |||
825 |
$ hg |
|
825 | $ hg commit -i -d '19 0' -my <<EOF | |
826 | > f |
|
826 | > f | |
827 | > EOF |
|
827 | > EOF | |
828 | diff --git a/subdir/f1 b/subdir/f1 |
|
828 | diff --git a/subdir/f1 b/subdir/f1 | |
@@ -851,7 +851,7 b' Preserve chmod +x' | |||||
851 |
|
851 | |||
852 | $ chmod +x f1 |
|
852 | $ chmod +x f1 | |
853 | $ echo a >> f1 |
|
853 | $ echo a >> f1 | |
854 |
$ hg |
|
854 | $ hg commit -i -d '20 0' -mz <<EOF | |
855 | > y |
|
855 | > y | |
856 | > y |
|
856 | > y | |
857 | > y |
|
857 | > y | |
@@ -890,7 +890,7 b' Preserve chmod +x' | |||||
890 | Preserve execute permission on original |
|
890 | Preserve execute permission on original | |
891 |
|
891 | |||
892 | $ echo b >> f1 |
|
892 | $ echo b >> f1 | |
893 |
$ hg |
|
893 | $ hg commit -i -d '21 0' -maa <<EOF | |
894 | > y |
|
894 | > y | |
895 | > y |
|
895 | > y | |
896 | > y |
|
896 | > y | |
@@ -928,7 +928,7 b' Preserve chmod -x' | |||||
928 |
|
928 | |||
929 | $ chmod -x f1 |
|
929 | $ chmod -x f1 | |
930 | $ echo c >> f1 |
|
930 | $ echo c >> f1 | |
931 |
$ hg |
|
931 | $ hg commit -i -d '22 0' -mab <<EOF | |
932 | > y |
|
932 | > y | |
933 | > y |
|
933 | > y | |
934 | > y |
|
934 | > y | |
@@ -974,7 +974,7 b' Slightly bogus tests to get almost same ' | |||||
974 | Mock "Preserve chmod +x" |
|
974 | Mock "Preserve chmod +x" | |
975 |
|
975 | |||
976 | $ echo a >> f1 |
|
976 | $ echo a >> f1 | |
977 |
$ hg |
|
977 | $ hg commit -i -d '20 0' -mz <<EOF | |
978 | > y |
|
978 | > y | |
979 | > y |
|
979 | > y | |
980 | > y |
|
980 | > y | |
@@ -1009,7 +1009,7 b' Mock "Preserve chmod +x"' | |||||
1009 | Mock "Preserve execute permission on original" |
|
1009 | Mock "Preserve execute permission on original" | |
1010 |
|
1010 | |||
1011 | $ echo b >> f1 |
|
1011 | $ echo b >> f1 | |
1012 |
$ hg |
|
1012 | $ hg commit -i -d '21 0' -maa <<EOF | |
1013 | > y |
|
1013 | > y | |
1014 | > y |
|
1014 | > y | |
1015 | > y |
|
1015 | > y | |
@@ -1047,7 +1047,7 b' Mock "Preserve chmod -x"' | |||||
1047 |
|
1047 | |||
1048 | $ chmod -x f1 |
|
1048 | $ chmod -x f1 | |
1049 | $ echo c >> f1 |
|
1049 | $ echo c >> f1 | |
1050 |
$ hg |
|
1050 | $ hg commit -i -d '22 0' -mab <<EOF | |
1051 | > y |
|
1051 | > y | |
1052 | > y |
|
1052 | > y | |
1053 | > y |
|
1053 | > y | |
@@ -1107,7 +1107,7 b' Abort early when a merge is in progress' | |||||
1107 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1107 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1108 | (branch merge, don't forget to commit) |
|
1108 | (branch merge, don't forget to commit) | |
1109 |
|
1109 | |||
1110 |
$ hg |
|
1110 | $ hg commit -i -m'will abort' | |
1111 | abort: cannot partially commit a merge (use "hg commit" instead) |
|
1111 | abort: cannot partially commit a merge (use "hg commit" instead) | |
1112 | [255] |
|
1112 | [255] | |
1113 |
|
1113 | |||
@@ -1133,7 +1133,7 b' Editing patch (and ignoring trailing tex' | |||||
1133 | > This change will be committed |
|
1133 | > This change will be committed | |
1134 | > This is the third line |
|
1134 | > This is the third line | |
1135 | > __EOF__ |
|
1135 | > __EOF__ | |
1136 |
$ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg |
|
1136 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i -d '23 0' -medit-patch-2 <<EOF | |
1137 | > y |
|
1137 | > y | |
1138 | > e |
|
1138 | > e | |
1139 | > EOF |
|
1139 | > EOF | |
@@ -1162,7 +1162,7 b' Editing patch (and ignoring trailing tex' | |||||
1162 | Trying to edit patch for whole file |
|
1162 | Trying to edit patch for whole file | |
1163 |
|
1163 | |||
1164 | $ echo "This is the fourth line" >> editedfile |
|
1164 | $ echo "This is the fourth line" >> editedfile | |
1165 |
$ hg |
|
1165 | $ hg commit -i <<EOF | |
1166 | > e |
|
1166 | > e | |
1167 | > q |
|
1167 | > q | |
1168 | > EOF |
|
1168 | > EOF | |
@@ -1186,7 +1186,7 b' Removing changes from patch' | |||||
1186 | > sed -e 's/^[-+]/ /' "$1" > tmp |
|
1186 | > sed -e 's/^[-+]/ /' "$1" > tmp | |
1187 | > mv tmp "$1" |
|
1187 | > mv tmp "$1" | |
1188 | > __EOF__ |
|
1188 | > __EOF__ | |
1189 |
$ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg |
|
1189 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i <<EOF | |
1190 | > y |
|
1190 | > y | |
1191 | > e |
|
1191 | > e | |
1192 | > EOF |
|
1192 | > EOF | |
@@ -1223,7 +1223,7 b' Invalid patch' | |||||
1223 | > sed s/This/That/ "$1" > tmp |
|
1223 | > sed s/This/That/ "$1" > tmp | |
1224 | > mv tmp "$1" |
|
1224 | > mv tmp "$1" | |
1225 | > __EOF__ |
|
1225 | > __EOF__ | |
1226 |
$ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg |
|
1226 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i <<EOF | |
1227 | > y |
|
1227 | > y | |
1228 | > e |
|
1228 | > e | |
1229 | > EOF |
|
1229 | > EOF | |
@@ -1270,7 +1270,7 b' Malformed patch - error handling' | |||||
1270 | > sed -e '/^@/p' "$1" > tmp |
|
1270 | > sed -e '/^@/p' "$1" > tmp | |
1271 | > mv tmp "$1" |
|
1271 | > mv tmp "$1" | |
1272 | > __EOF__ |
|
1272 | > __EOF__ | |
1273 |
$ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg |
|
1273 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i <<EOF | |
1274 | > y |
|
1274 | > y | |
1275 | > e |
|
1275 | > e | |
1276 | > EOF |
|
1276 | > EOF | |
@@ -1297,7 +1297,7 b' random text in random positions is still' | |||||
1297 | > other' "$1" > tmp |
|
1297 | > other' "$1" > tmp | |
1298 | > mv tmp "$1" |
|
1298 | > mv tmp "$1" | |
1299 | > __EOF__ |
|
1299 | > __EOF__ | |
1300 |
$ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg |
|
1300 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i <<EOF | |
1301 | > y |
|
1301 | > y | |
1302 | > e |
|
1302 | > e | |
1303 | > EOF |
|
1303 | > EOF | |
@@ -1337,7 +1337,7 b' Ignore win32text deprecation warning for' | |||||
1337 | $ echo 'warn = no' >> .hg/hgrc |
|
1337 | $ echo 'warn = no' >> .hg/hgrc | |
1338 |
|
1338 | |||
1339 | $ echo d >> subdir/f1 |
|
1339 | $ echo d >> subdir/f1 | |
1340 |
$ hg |
|
1340 | $ hg commit -i -d '24 0' -mw1 <<EOF | |
1341 | > y |
|
1341 | > y | |
1342 | > y |
|
1342 | > y | |
1343 | > EOF |
|
1343 | > EOF | |
@@ -1374,7 +1374,7 b' Ignore win32text deprecation warning for' | |||||
1374 | Test --user when ui.username not set |
|
1374 | Test --user when ui.username not set | |
1375 | $ unset HGUSER |
|
1375 | $ unset HGUSER | |
1376 | $ echo e >> subdir/f1 |
|
1376 | $ echo e >> subdir/f1 | |
1377 |
$ hg |
|
1377 | $ hg commit -i --config ui.username= -d '8 0' --user xyz -m "user flag" <<EOF | |
1378 | > y |
|
1378 | > y | |
1379 | > y |
|
1379 | > y | |
1380 | > EOF |
|
1380 | > EOF | |
@@ -1407,7 +1407,7 b' Editing patch of newly added file' | |||||
1407 | > This is the third line |
|
1407 | > This is the third line | |
1408 | > __EOF__ |
|
1408 | > __EOF__ | |
1409 | $ hg add newfile |
|
1409 | $ hg add newfile | |
1410 |
$ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg |
|
1410 | $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i -d '23 0' -medit-patch-new <<EOF | |
1411 | > y |
|
1411 | > y | |
1412 | > e |
|
1412 | > e | |
1413 | > EOF |
|
1413 | > EOF |
General Comments 0
You need to be logged in to leave comments.
Login now