tests/test-amend.t
branchstable
changeset 49178 dc342071297f
parent 47554 c8f8d2dba6c7
child 49179 df68d64b0d50
equal deleted inserted replaced
49166:77b5a190571c 49178:dc342071297f
   607   >   echo "Diff and status after rebuild:"
   607   >   echo "Diff and status after rebuild:"
   608   >   hg diff
   608   >   hg diff
   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 !)