Mercurial > hg
view tests/test-dispatch @ 8281:3e1e499db9d7
util: initialize md5 and sha1 without using extra global variables
This lets the functions skip the "if _sha1 is None" test on each call.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 03 May 2009 00:03:35 +0200 |
parents | 6c82beaaa11a |
children | c88c8d59979f |
line wrap: on
line source
#!/bin/sh # test command parsing and dispatch "$TESTDIR/hghave" no-outer-repo || exit 80 hg init a cd a echo a > a hg ci -Ama echo "# missing arg" hg cat echo '% [defaults]' hg cat a cat >> $HGRCPATH <<EOF [defaults] cat = -v EOF hg cat a echo '% no repo' cd .. hg cat exit 0