comparison mercurial/commands.py @ 14321:003d63bb4fa5

scmutil: drop some aliases in cmdutil
author Matt Mackall <mpm@selenic.com>
date Fri, 13 May 2011 14:48:48 -0500
parents b33f3e35efb0
children a90131b85fd8
comparison
equal deleted inserted replaced
14320:3438417a6657 14321:003d63bb4fa5
193 sim = float(opts.get('similarity') or 100) 193 sim = float(opts.get('similarity') or 100)
194 except ValueError: 194 except ValueError:
195 raise util.Abort(_('similarity must be a number')) 195 raise util.Abort(_('similarity must be a number'))
196 if sim < 0 or sim > 100: 196 if sim < 0 or sim > 100:
197 raise util.Abort(_('similarity must be between 0 and 100')) 197 raise util.Abort(_('similarity must be between 0 and 100'))
198 return cmdutil.addremove(repo, pats, opts, similarity=sim / 100.0) 198 return scmutil.addremove(repo, pats, opts, similarity=sim / 100.0)
199 199
200 @command('^annotate|blame', 200 @command('^annotate|blame',
201 [('r', 'rev', '', _('annotate the specified revision'), _('REV')), 201 [('r', 'rev', '', _('annotate the specified revision'), _('REV')),
202 ('', 'follow', None, 202 ('', 'follow', None,
203 _('follow copies/renames and list the filename (DEPRECATED)')), 203 _('follow copies/renames and list the filename (DEPRECATED)')),