Show More
@@ -1211,9 +1211,9 b' def addremove(repo, matcher, prefix, uip' | |||
|
1211 | 1211 | try: |
|
1212 | 1212 | similarity = float(opts.get(b'similarity') or 0) |
|
1213 | 1213 | except ValueError: |
|
1214 |
raise error. |
|
|
1214 | raise error.InputError(_(b'similarity must be a number')) | |
|
1215 | 1215 | if similarity < 0 or similarity > 100: |
|
1216 |
raise error. |
|
|
1216 | raise error.InputError(_(b'similarity must be between 0 and 100')) | |
|
1217 | 1217 | similarity /= 100.0 |
|
1218 | 1218 | |
|
1219 | 1219 | ret = 0 |
@@ -131,13 +131,13 b' should all fail' | |||
|
131 | 131 | |
|
132 | 132 | $ hg addremove -s foo |
|
133 | 133 | abort: similarity must be a number |
|
134 |
[ |
|
|
134 | [10] | |
|
135 | 135 | $ hg addremove -s -1 |
|
136 | 136 | abort: similarity must be between 0 and 100 |
|
137 |
[ |
|
|
137 | [10] | |
|
138 | 138 | $ hg addremove -s 1e6 |
|
139 | 139 | abort: similarity must be between 0 and 100 |
|
140 |
[ |
|
|
140 | [10] | |
|
141 | 141 | |
|
142 | 142 | $ cd .. |
|
143 | 143 |
General Comments 0
You need to be logged in to leave comments.
Login now