mercurial/commands.py
changeset 23537 f1b06a8aad42
parent 23533 891aaa7c0c70
child 23538 ccfb56450f21
equal deleted inserted replaced
23536:fcbc66b5da6a 23537:f1b06a8aad42
   234     except ValueError:
   234     except ValueError:
   235         raise util.Abort(_('similarity must be a number'))
   235         raise util.Abort(_('similarity must be a number'))
   236     if sim < 0 or sim > 100:
   236     if sim < 0 or sim > 100:
   237         raise util.Abort(_('similarity must be between 0 and 100'))
   237         raise util.Abort(_('similarity must be between 0 and 100'))
   238     matcher = scmutil.match(repo[None], pats, opts)
   238     matcher = scmutil.match(repo[None], pats, opts)
   239     return scmutil.addremove(repo, matcher, opts, similarity=sim / 100.0)
   239     return scmutil.addremove(repo, matcher, "", opts, similarity=sim / 100.0)
   240 
   240 
   241 @command('^annotate|blame',
   241 @command('^annotate|blame',
   242     [('r', 'rev', '', _('annotate the specified revision'), _('REV')),
   242     [('r', 'rev', '', _('annotate the specified revision'), _('REV')),
   243     ('', 'follow', None,
   243     ('', 'follow', None,
   244      _('follow copies/renames and list the filename (DEPRECATED)')),
   244      _('follow copies/renames and list the filename (DEPRECATED)')),