Mercurial > hg > mercurial-crew-with-dirclash
diff doc/hg.1.txt @ 1253:a45e717c61a8
Add rename/mv command.
This is the logical equivalent of copy and remove, and is in fact
implemented as such. It doesn't use the remove command directly.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 14 Sep 2005 16:34:22 -0700 |
parents | a5355fa5e33a |
children | e6560042b7b8 |
line wrap: on
line diff
--- a/doc/hg.1.txt +++ b/doc/hg.1.txt @@ -173,13 +173,15 @@ copy <source ...> <dest>:: 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. + This command takes effect in 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 + aliases: cp + diff [-a] [-r revision] [-r revision] [files ...]:: Show differences between revisions for the specified files. @@ -448,6 +450,24 @@ remove [options] [files ...]:: aliases: rm +rename <source ...> <dest>:: + Mark dest as copies of sources; mark sources for deletion. 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 in the next commit. + + Options: + -A, --after record a rename that has already occurred + -f, --force forcibly copy over an existing managed file + -p, --parents append source path to dest + + aliases: mv + revert [names ...]:: Revert any uncommitted modifications made to the named files or directories. This restores the contents of the affected files to