equal
deleted
inserted
replaced
75 Use the -s/--similarity option to detect renamed files. With a |
75 Use the -s/--similarity option to detect renamed files. With a |
76 parameter greater than 0, this compares every removed file with |
76 parameter greater than 0, this compares every removed file with |
77 every added file and records those similar enough as renames. This |
77 every added file and records those similar enough as renames. This |
78 option takes a percentage between 0 (disabled) and 100 (files must |
78 option takes a percentage between 0 (disabled) and 100 (files must |
79 be identical) as its parameter. Detecting renamed files this way |
79 be identical) as its parameter. Detecting renamed files this way |
80 can be expensive. |
80 can be expensive. After using this option, :hg:`status -C` can be |
|
81 used to check which files were identified as moved or renamed. |
81 |
82 |
82 Returns 0 if all files are successfully added. |
83 Returns 0 if all files are successfully added. |
83 """ |
84 """ |
84 try: |
85 try: |
85 sim = float(opts.get('similarity') or 0) |
86 sim = float(opts.get('similarity') or 0) |