comparison doc/hg.1.txt @ 588:0c3bae18403b

[PATCH] hg revert -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] hg revert From: Bryan O'Sullivan <bos@serpentine.com> Add revert command. manifest hash: 0094e6bf421f34bd0492a33f95400b1b095a6bdc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCx2BaywK+sNU5EO8RAigMAKCrvgTtIDuirCsMVlbiTMqaJy3UNgCdEcTL hMN1X8FZi6sH+NjUdr9sYBg= =i58L -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sat, 02 Jul 2005 19:49:46 -0800
parents 353a2ce50423
children c2c2c6d617bd
comparison
equal deleted inserted replaced
587:62a7b679a9ca 588:0c3bae18403b
251 This only removes files from the current branch, not from the 251 This only removes files from the current branch, not from the
252 entire project history. 252 entire project history.
253 253
254 aliases: rm 254 aliases: rm
255 255
256 revert [names ...]::
257 Revert any uncommitted modifications made to the named files or
258 directories. This restores the contents of the affected files to
259 an unmodified state.
260
261 If a file has been deleted, it is recreated. If the executable
262 mode of a file was changed, it is reset.
263
264 If a directory is given, all files in that directory and its
265 subdirectories are reverted.
266
267 If no arguments are given, all files in the current directory and
268 its subdirectories are reverted.
269
270 options:
271 -r, --rev <rev> revision to revert to
272 -n, --nonrecursive do not recurse into subdirectories
273
256 root:: 274 root::
257 Print the root directory of the current repository. 275 Print the root directory of the current repository.
258 276
259 serve [-a addr -n name -p port -t templatedir]:: 277 serve [-a addr -n name -p port -t templatedir]::
260 Start a local HTTP repository browser and pull server. 278 Start a local HTTP repository browser and pull server.