diff mercurial/commands.py @ 11551:4484a7b661f2

commands: addremove does similarity 100 by default
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 13 Jul 2010 17:30:29 +0200
parents f4eddec324b7
children 57bdc2239535
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Jul 13 22:56:01 2010 +0900
+++ b/mercurial/commands.py	Tue Jul 13 17:30:29 2010 +0200
@@ -83,7 +83,7 @@
     Returns 0 if all files are successfully added.
     """
     try:
-        sim = float(opts.get('similarity') or 0)
+        sim = float(opts.get('similarity') or 100)
     except ValueError:
         raise util.Abort(_('similarity must be a number'))
     if sim < 0 or sim > 100: