##// END OF EJS Templates
amend: add a test for a simplified version of issue6157...
Valentin Gatien-Baron -
r42865:464aa857 stable
parent child Browse files
Show More
@@ -451,3 +451,20 b' Bad combination of date options:'
451 [255]
451 [255]
452
452
453 $ cd ..
453 $ cd ..
454
455 Corner case of amend from issue6157:
456 - working copy parent has a change to file `a`
457 - working copy has the inverse change
458 - we amend the working copy parent for files other than `a`
459 hg includes the changes to `a` anyway.
460
461 $ hg init 6157; cd 6157
462 $ echo a > a; echo b > b; hg commit -qAm_
463 $ echo a2 > a; hg commit -qm_
464 $ hg diff --stat -c .
465 a | 2 +-
466 1 files changed, 1 insertions(+), 1 deletions(-)
467 $ echo a > a; echo b2 > b; hg amend -q b
468 $ hg diff --stat -c .
469 b | 2 +-
470 1 files changed, 1 insertions(+), 1 deletions(-)
General Comments 0
You need to be logged in to leave comments. Login now