Mercurial > hg-stable
changeset 17266:4e35dea77e31 stable
addremove: mention --similarity defaults to 100 (issue3430)
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Mon, 23 Jul 2012 19:03:32 +0200 |
parents | c30307eeec4b |
children | 979b107eaea2 |
files | mercurial/commands.py |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jul 25 22:41:26 2012 -0400 +++ b/mercurial/commands.py Mon Jul 23 19:03:32 2012 +0200 @@ -190,15 +190,15 @@ ``.hgignore``. As with add, these changes take effect at the next commit. - Use the -s/--similarity option to detect renamed files. With a - parameter greater than 0, this compares every removed file with - every added file and records those similar enough as renames. This + Use the -s/--similarity option to detect renamed files. This option takes a percentage between 0 (disabled) and 100 (files must - be identical) as its parameter. Detecting renamed files this way + be identical) as its parameter. With a parameter greater than 0, + this compares every removed file with every added file and records + those similar enough as renames. Detecting renamed files this way can be expensive. After using this option, :hg:`status -C` can be - used to check which files were identified as moved or renamed. - If this option is not specified, only renames of identical files - are detected. + used to check which files were identified as moved or renamed. If + not specified, -s/--similarity defaults to 100 and only renames of + identical files are detected. Returns 0 if all files are successfully added. """