Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 3181:3637d5d17cbc
Documentation fixes for addremove.
- It is no longer deprecated, but the short help still included (DEPRECATED).
- Similarity parameter has to be 0<=s<=100 and not 0<=s<=1.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 27 Sep 2006 21:43:45 +0200 |
parents | 5c93dd0ae413 |
children | fca5ddbaa12a |
comparison
equal
deleted
inserted
replaced
3179:76ab39df0917 | 3181:3637d5d17cbc |
---|---|
572 names.append(abs) | 572 names.append(abs) |
573 if not opts.get('dry_run'): | 573 if not opts.get('dry_run'): |
574 repo.add(names) | 574 repo.add(names) |
575 | 575 |
576 def addremove(ui, repo, *pats, **opts): | 576 def addremove(ui, repo, *pats, **opts): |
577 """add all new files, delete all missing files (DEPRECATED) | 577 """add all new files, delete all missing files |
578 | 578 |
579 Add all new files and remove all missing files from the repository. | 579 Add all new files and remove all missing files from the repository. |
580 | 580 |
581 New files are ignored if they match any of the patterns in .hgignore. As | 581 New files are ignored if they match any of the patterns in .hgignore. As |
582 with add, these changes take effect at the next commit. | 582 with add, these changes take effect at the next commit. |
2665 [('I', 'include', [], _('include names matching the given patterns')), | 2665 [('I', 'include', [], _('include names matching the given patterns')), |
2666 ('X', 'exclude', [], _('exclude names matching the given patterns')), | 2666 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2667 ('n', 'dry-run', None, | 2667 ('n', 'dry-run', None, |
2668 _('do not perform actions, just print output')), | 2668 _('do not perform actions, just print output')), |
2669 ('s', 'similarity', '', | 2669 ('s', 'similarity', '', |
2670 _('guess renamed files by similarity (0<=s<=1)'))], | 2670 _('guess renamed files by similarity (0<=s<=100)'))], |
2671 _('hg addremove [OPTION]... [FILE]...')), | 2671 _('hg addremove [OPTION]... [FILE]...')), |
2672 "^annotate": | 2672 "^annotate": |
2673 (annotate, | 2673 (annotate, |
2674 [('r', 'rev', '', _('annotate the specified revision')), | 2674 [('r', 'rev', '', _('annotate the specified revision')), |
2675 ('f', 'follow', None, _('follow file copies and renames')), | 2675 ('f', 'follow', None, _('follow file copies and renames')), |