##// END OF EJS Templates
amend: add test showing poor behavior when copies are involved...
Kyle Lippincott -
r50073:dc342071 stable
parent child Browse files
Show More
@@ -609,3 +609,20 b' Modifying a file while the editor is ope'
609 > hg status
609 > hg status
610 > fi
610 > fi
611 OK.
611 OK.
612
613 Amending a commit that has copies but not specifying those copies shouldn't
614 cause them to be lost
615
616 $ cd $TESTTMP
617 $ hg init dont-lose-copies; cd dont-lose-copies
618 $ echo r0 > r0; hg commit -qAm "r0"
619 $ hg cp r0 r0_copied; hg commit -qm "copy r0"
620 $ echo hi > new_file_amend_me
621 $ hg status --change . --copies
622 A r0_copied
623 r0
624 $ hg amend -qA new_file_amend_me
625 $ hg status --change . --copies
626 A new_file_amend_me
627 A r0_copied
628 r0 (missing-correct-output !)
General Comments 0
You need to be logged in to leave comments. Login now