copy: document current behavior of 'hg cp --after'
authorAugie Fackler <augie@google.com>
Mon, 19 Sep 2016 17:14:43 -0400
changeset 29958 37a36c05dcc3
parent 29957 7d053ba73178
child 29959 483003c27938
copy: document current behavior of 'hg cp --after' I'm about to propose an output change here, but the existing behavior was untested!
tests/test-copy.t
--- 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