Show More
@@ -83,7 +83,7 b' def addremove(ui, repo, *pats, **opts):' | |||||
83 | Returns 0 if all files are successfully added. |
|
83 | Returns 0 if all files are successfully added. | |
84 | """ |
|
84 | """ | |
85 | try: |
|
85 | try: | |
86 | sim = float(opts.get('similarity') or 0) |
|
86 | sim = float(opts.get('similarity') or 100) | |
87 | except ValueError: |
|
87 | except ValueError: | |
88 | raise util.Abort(_('similarity must be a number')) |
|
88 | raise util.Abort(_('similarity must be a number')) | |
89 | if sim < 0 or sim > 100: |
|
89 | if sim < 0 or sim > 100: |
@@ -35,7 +35,7 b' chmod -x unsetexec' | |||||
35 | python -c "file('binary', 'wb').write('\0\0')" |
|
35 | python -c "file('binary', 'wb').write('\0\0')" | |
36 | python -c "file('newbinary', 'wb').write('\0')" |
|
36 | python -c "file('newbinary', 'wb').write('\0')" | |
37 | rm rmbinary |
|
37 | rm rmbinary | |
38 | hg addremove |
|
38 | hg addremove -s 0 | |
39 |
|
39 | |||
40 | echo '% git=no: regular diff for all files' |
|
40 | echo '% git=no: regular diff for all files' | |
41 | hg autodiff --git=no |
|
41 | hg autodiff --git=no |
@@ -56,7 +56,7 b' mkdir a' | |||||
56 | echo a > a/a |
|
56 | echo a > a/a | |
57 | echo b > b |
|
57 | echo b > b | |
58 |
|
58 | |||
59 | hg addremove |
|
59 | hg addremove -s 0 | |
60 | hg st |
|
60 | hg st | |
61 |
|
61 | |||
62 | echo % commit |
|
62 | echo % commit |
@@ -26,7 +26,7 b' rm d2/c' | |||||
26 |
|
26 | |||
27 | echo '# rename --after a single file when src and tgt already tracked' |
|
27 | echo '# rename --after a single file when src and tgt already tracked' | |
28 | mv d1/d11/a1 d2/c |
|
28 | mv d1/d11/a1 d2/c | |
29 | hg addrem |
|
29 | hg addrem -s 0 | |
30 | hg rename --after d1/d11/a1 d2/c |
|
30 | hg rename --after d1/d11/a1 d2/c | |
31 | hg status -C |
|
31 | hg status -C | |
32 | hg update -C |
|
32 | hg update -C |
General Comments 0
You need to be logged in to leave comments.
Login now