Mercurial > hg > mercurial-crew-with-dirclash
diff doc/hg.1.txt @ 1249:a5355fa5e33a
Fix up copy command to behave more like regular "cp".
In addition to recording changes, copy now updates the working
directory.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 14 Sep 2005 14:29:02 -0700 |
parents | 7a70dafbf4b9 |
children | a45e717c61a8 |
line wrap: on
line diff
--- a/doc/hg.1.txt +++ b/doc/hg.1.txt @@ -164,11 +164,22 @@ commit [options] [files...]:: aliases: ci -copy <source> <dest>:: - Mark <dest> file as a copy or rename of a <source> one +copy <source ...> <dest>:: + Mark dest as having copies of source files. If dest is a + directory, copies are put in that directory. If dest is a file, + there can only be one source. + + By default, this command copies the contents of files as they + stand in the working directory. If invoked with --after, the + operation is recorded, but no copying is performed. This command takes effect for the next commit. + Options: + -A, --after record a copy that has already occurred + -f, --force forcibly copy over an existing managed file + -p, --parents append source path to dest + diff [-a] [-r revision] [-r revision] [files ...]:: Show differences between revisions for the specified files.