##// END OF EJS Templates
Issue919: add a standard extension to recreate hardlinks between repositories....
Issue919: add a standard extension to recreate hardlinks between repositories. Having to run a standalone Python script from the contrib dir is a nuisance. Also makes various improvements to locking, file discovery, etc. Should also update: http://www.selenic.com/mercurial/wiki/index.cgi/RecreateHardlinksBetweenRepositories

File last commit:

r8424:c5b3d3e3 default
r9729:aa9ccab5 default
Show More
test-committer
36 lines | 725 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/"
Martin Geisler
changelog: refuse to add revisions with empty usernames...
r8424
echo space > asdf
hg commit -d '1000000 0' -u ' ' -m commit-1
true