330 record change 1/2 to 'plain'? [Ynesfdaq?] y |
345 record change 1/2 to 'plain'? [Ynesfdaq?] y |
331 |
346 |
332 diff --git a/plain2 b/plain2 |
347 diff --git a/plain2 b/plain2 |
333 new file mode 100644 |
348 new file mode 100644 |
334 examine changes to 'plain2'? [Ynesfdaq?] y |
349 examine changes to 'plain2'? [Ynesfdaq?] y |
|
350 |
|
351 @@ -0,0 +1,1 @@ |
|
352 +1 |
|
353 record change 2/2 to 'plain2'? [Ynesfdaq?] y |
335 |
354 |
336 Modify beginning, trim end, record both, add another file to test |
355 Modify beginning, trim end, record both, add another file to test |
337 changes numbering |
356 changes numbering |
338 |
357 |
339 $ rm plain |
358 $ rm plain |
1404 tag: tip |
1423 tag: tip |
1405 user: test |
1424 user: test |
1406 date: Thu Jan 01 00:00:23 1970 +0000 |
1425 date: Thu Jan 01 00:00:23 1970 +0000 |
1407 summary: moving_files |
1426 summary: moving_files |
1408 |
1427 |
|
1428 Editing patch of newly added file |
|
1429 |
|
1430 $ hg update -C . |
|
1431 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1432 $ cat > editor.sh << '__EOF__' |
|
1433 > cat "$1" | sed "s/first/very/g" > tt |
|
1434 > mv tt "$1" |
|
1435 > __EOF__ |
|
1436 $ cat > newfile << '__EOF__' |
|
1437 > This is the first line |
|
1438 > This is the second line |
|
1439 > This is the third line |
|
1440 > __EOF__ |
|
1441 $ hg add newfile |
|
1442 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg commit -i -d '23 0' -medit-patch-new <<EOF |
|
1443 > y |
|
1444 > e |
|
1445 > EOF |
|
1446 diff --git a/newfile b/newfile |
|
1447 new file mode 100644 |
|
1448 examine changes to 'newfile'? [Ynesfdaq?] y |
|
1449 |
|
1450 @@ -0,0 +1,3 @@ |
|
1451 +This is the first line |
|
1452 +This is the second line |
|
1453 +This is the third line |
|
1454 record this change to 'newfile'? [Ynesfdaq?] e |
|
1455 |
|
1456 $ hg cat -r tip newfile |
|
1457 This is the very line |
|
1458 This is the second line |
|
1459 This is the third line |
|
1460 |
|
1461 $ cat newfile |
|
1462 This is the first line |
|
1463 This is the second line |
|
1464 This is the third line |
1409 $ cd .. |
1465 $ cd .. |