##// END OF EJS Templates
remove: rewrite to be ~400x faster, bit more friendly...
remove: rewrite to be ~400x faster, bit more friendly old remove code called localrepo.changes for each file. was very expensive: $ hg --time rm arch>/dev/null Time: real 1066.120 secs (user 1014.450+0.000 sys 18.090+0.000) new code, same files: $ hg --time rm arch>/dev/null Time: real 2.770 secs (user 2.190+0.000 sys 0.580+0.000) also mention "-f" if not removing files. also allow "-f" to forget added files. make test a bit better.

File last commit:

r2309:b2f37c70 default
r2309:b2f37c70 default
Show More
test-remove
32 lines | 371 B | text/plain | TextLexer
mpm@selenic.com
Add a simple remove test
r936 #!/bin/sh
hg init a
cd a
echo a > foo
Vadim Gelfer
remove: rewrite to be ~400x faster, bit more friendly...
r2309 hg rm foo
mpm@selenic.com
Add a simple remove test
r936 hg add foo
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m 1 -d "1000000 0"
Vadim Gelfer
make test-remove check some more cases.
r2180 hg remove
mpm@selenic.com
Add a simple remove test
r936 rm foo
hg remove foo
Vadim Gelfer
make test-remove check some more cases.
r2180 hg revert
rm foo
hg remove --after
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m 2 -d "1000000 0"
TK Soh
change default strftime format for better portability...
r1953 hg export 0
hg export 1
hg log -p -r 0
hg log -p -r 1
mpm@selenic.com
Add a simple remove test
r936
Vadim Gelfer
remove: rewrite to be ~400x faster, bit more friendly...
r2309 echo a > a
hg add a
hg rm a
hg rm -f a
echo b > b
hg ci -A -m 3 -d "1000001 0"
echo c >> b
hg rm b
hg rm -f b
mpm@selenic.com
Add a simple remove test
r936 cd ..
hg clone a b