tests/test-gpg
author Brodie Rao <me+hg@dackz.net>
Sat, 13 Feb 2010 23:34:15 -0500
changeset 10453 7edc649f9f7e
parent 9041 6e5e548452de
permissions -rwxr-xr-x
progress: make determinate bar more like wget progress bar foo [ ] 0/58 foo [> ] 1/58 foo [=> ] 2/58 ... foo [=======================================================> ] 56/58 foo [========================================================> ] 57/58 foo [=========================================================>] 58/58 The bar now has a '>' character at the end. This indicates the direction, is consistent with the indeterminate '<=>' bar, and looks much nicer.

#!/bin/sh

"$TESTDIR/hghave" gpg || exit 80

cat <<EOF >> $HGRCPATH
[extensions]
gpg=

[gpg]
cmd=gpg --no-permission-warning --no-secmem-warning --homedir $TESTDIR/gpg
EOF

hg init r
cd r
echo foo > foo
hg ci -Amfoo

echo '% no signatures'
hg sigs

echo '% hg sign 0'
hg sign 0

echo '% hg sigs'
hg sigs

echo '% hg sigcheck 0'
hg sigcheck 0