Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1248:2534b41ce0c5 | 1249:a5355fa5e33a |
---|---|
162 -d, --date <datecode> record datecode as commit date | 162 -d, --date <datecode> record datecode as commit date |
163 -u, --user <user> record user as commiter | 163 -u, --user <user> record user as commiter |
164 | 164 |
165 aliases: ci | 165 aliases: ci |
166 | 166 |
167 copy <source> <dest>:: | 167 copy <source ...> <dest>:: |
168 Mark <dest> file as a copy or rename of a <source> one | 168 Mark dest as having copies of source files. If dest is a |
169 directory, copies are put in that directory. If dest is a file, | |
170 there can only be one source. | |
171 | |
172 By default, this command copies the contents of files as they | |
173 stand in the working directory. If invoked with --after, the | |
174 operation is recorded, but no copying is performed. | |
169 | 175 |
170 This command takes effect for the next commit. | 176 This command takes effect for the next commit. |
171 | 177 |
178 Options: | |
179 -A, --after record a copy that has already occurred | |
180 -f, --force forcibly copy over an existing managed file | |
181 -p, --parents append source path to dest | |
182 | |
172 diff [-a] [-r revision] [-r revision] [files ...]:: | 183 diff [-a] [-r revision] [-r revision] [files ...]:: |
173 Show differences between revisions for the specified files. | 184 Show differences between revisions for the specified files. |
174 | 185 |
175 Differences between files are shown using the unified diff format. | 186 Differences between files are shown using the unified diff format. |
176 | 187 |