# HG changeset patch # User Augie Fackler # Date 1474319683 14400 # Node ID 37a36c05dcc3ab325989e13622b6815bad93da7f # Parent 7d053ba73178261679db49dfec2b4ba77aa1c162 copy: document current behavior of 'hg cp --after' I'm about to propose an output change here, but the existing behavior was untested! diff -r 7d053ba73178 -r 37a36c05dcc3 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