##// END OF EJS Templates
don't return uninitialized memory from bdiff.blocks()...
don't return uninitialized memory from bdiff.blocks() bdiff.blocks() returns a dummy match at the end of both files; the length of that chunk is never set, so it will sometimes contain random heap garbage. There are apparently workarounds for this elsewhere: # bdiff sometimes gives huge matches past eof, this check eats them,

File last commit:

r4044:78a0dd93 default
r4131:1ca664c9 default
Show More
test-committer
31 lines | 656 B | text/plain | TextLexer
Andrew Thompson
Add tests/test-committer...
r2104 #!/bin/sh
unset HGUSER
EMAIL="My Name <myname@example.com>"
export EMAIL
hg init test
cd test
touch asdf
hg add asdf
hg commit -d '1000000 0' -m commit-1
hg tip
Benoit Boissinot
makes username mandatory
r3466
unset EMAIL
Benoit Boissinot
only print a warning when no username is specified...
r3721 echo 1234 > asdf
Benoit Boissinot
makes username mandatory
r3466 hg commit -d '1000000 0' -u "foo@bar.com" -m commit-1
hg tip
echo "[ui]" >> .hg/hgrc
echo "username = foobar <foo@bar.com>" >> .hg/hgrc
echo 12 > asdf
hg commit -d '1000000 0' -m commit-1
hg tip
echo 1 > asdf
hg commit -d '1000000 0' -u "foo@bar.com" -m commit-1
hg tip
Benoit Boissinot
only print a warning when no username is specified...
r3721 echo 123 > asdf
Thomas Arendsen Hein
Abort on empty username so specifying a username can be forced....
r4044 echo "[ui]" > .hg/hgrc
echo "username = " >> .hg/hgrc
hg commit -d '1000000 0' -m commit-1
Benoit Boissinot
only print a warning when no username is specified...
r3721 rm .hg/hgrc
Thomas Arendsen Hein
Make sed expression in test-committer compatible with GNU sed 3.x.
r3722 hg commit -d '1000000 0' -m commit-1 2>&1 | sed -e "s/'[^']*'/user@host/"