tests/test-commit-amend.t
branchstable
changeset 16552 90ca344a7c55
parent 16539 249542ded278
child 16553 9224cc2e99cc
--- a/tests/test-commit-amend.t	Sun Apr 29 22:25:55 2012 +0200
+++ b/tests/test-commit-amend.t	Mon Apr 30 20:36:29 2012 +0200
@@ -287,6 +287,18 @@
   A f
     d
 
+  $ mv f f.orig
+  $ hg rm -A f
+  $ hg ci -m removef
+  $ hg cp a f
+  $ mv f.orig f
+  $ hg ci --amend -m replacef
+  saved backup bundle to $TESTTMP/.hg/strip-backup/0ce2c92dc50d-amend-backup.hg
+  $ hg st --change . --copies
+  M f
+  $ hg log -r . --template "{file_copies}\n"
+  f (a)
+
 Can't rollback an amend:
 
   $ hg rollback