diff -r a53b87e20132 -r 14cd5290c4e6 mercurial/commands.py --- a/mercurial/commands.py Tue Apr 03 12:16:19 2018 +0530 +++ b/mercurial/commands.py Sat Mar 31 23:49:58 2018 +0530 @@ -253,8 +253,9 @@ raise error.Abort(_('similarity must be a number')) if sim < 0 or sim > 100: raise error.Abort(_('similarity must be between 0 and 100')) + opts['similarity'] = sim / 100.0 matcher = scmutil.match(repo[None], pats, opts) - return scmutil.addremove(repo, matcher, "", opts, similarity=sim / 100.0) + return scmutil.addremove(repo, matcher, "", opts) @command('^annotate|blame', [('r', 'rev', '', _('annotate the specified revision'), _('REV')),