equal
deleted
inserted
replaced
1289 record this change to 'editedfile'? [Ynesfdaq?] e |
1289 record this change to 'editedfile'? [Ynesfdaq?] e |
1290 |
1290 |
1291 abort: error parsing patch: unhandled transition: range -> range |
1291 abort: error parsing patch: unhandled transition: range -> range |
1292 [255] |
1292 [255] |
1293 |
1293 |
|
1294 Exiting editor with status 1, ignores the edit but does not stop the recording |
|
1295 session |
|
1296 |
|
1297 $ HGEDITOR=false hg commit -i <<EOF |
|
1298 > y |
|
1299 > e |
|
1300 > n |
|
1301 > EOF |
|
1302 diff --git a/editedfile b/editedfile |
|
1303 1 hunks, 3 lines changed |
|
1304 examine changes to 'editedfile'? [Ynesfdaq?] y |
|
1305 |
|
1306 @@ -1,3 +1,3 @@ |
|
1307 -This is the first line |
|
1308 -This change will be committed |
|
1309 -This is the third line |
|
1310 +This change will not be committed |
|
1311 +This is the second line |
|
1312 +This line has been added |
|
1313 record this change to 'editedfile'? [Ynesfdaq?] e |
|
1314 |
|
1315 editor exited with exit code 1 |
|
1316 record this change to 'editedfile'? [Ynesfdaq?] n |
|
1317 |
|
1318 no changes to record |
|
1319 |
|
1320 |
1294 random text in random positions is still an error |
1321 random text in random positions is still an error |
1295 |
1322 |
1296 $ cat > editor.sh << '__EOF__' |
1323 $ cat > editor.sh << '__EOF__' |
1297 > sed -e '/^@/i\ |
1324 > sed -e '/^@/i\ |
1298 > other' "$1" > tmp |
1325 > other' "$1" > tmp |