equal
deleted
inserted
replaced
51 Add all new files and remove all missing files from the repository. |
51 Add all new files and remove all missing files from the repository. |
52 |
52 |
53 New files are ignored if they match any of the patterns in .hgignore. As |
53 New files are ignored if they match any of the patterns in .hgignore. As |
54 with add, these changes take effect at the next commit. |
54 with add, these changes take effect at the next commit. |
55 |
55 |
56 Use the -s/--similarity option to detect renamed files. With a parameter > |
56 Use the -s/--similarity option to detect renamed files. With a parameter |
57 0, this compares every removed file with every added file and records |
57 greater than 0, this compares every removed file with every added file and |
58 those similar enough as renames. This option takes a percentage between 0 |
58 records those similar enough as renames. This option takes a percentage |
59 (disabled) and 100 (files must be identical) as its parameter. Detecting |
59 between 0 (disabled) and 100 (files must be identical) as its parameter. |
60 renamed files this way can be expensive. |
60 Detecting renamed files this way can be expensive. |
61 """ |
61 """ |
62 try: |
62 try: |
63 sim = float(opts.get('similarity') or 0) |
63 sim = float(opts.get('similarity') or 0) |
64 except ValueError: |
64 except ValueError: |
65 raise util.Abort(_('similarity must be a number')) |
65 raise util.Abort(_('similarity must be a number')) |