changeset 29962: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 7d053ba73178
children 483003c27938
files tests/test-copy.t
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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