diff tests/test-copy.t @ 29958:37a36c05dcc3

copy: document current behavior of 'hg cp --after' I'm about to propose an output change here, but the existing behavior was untested!
author Augie Fackler <augie@google.com>
date Mon, 19 Sep 2016 17:14:43 -0400
parents aa23e02f9415
children 381293e1135e
line wrap: on
line diff
--- a/tests/test-copy.t	Tue Sep 20 10:03:50 2016 -0500
+++ b/tests/test-copy.t	Mon Sep 19 17:14:43 2016 -0400
@@ -224,6 +224,9 @@
 foo was clean:
   $ hg st -AC foo
   C foo
+Trying to copy on top of an existing file fails,
+  $ hg copy -A bar foo
+  foo: not overwriting - file exists
 but it's considered modified after a copy --after --force
   $ hg copy -Af bar foo
   $ hg st -AC foo