Refactor matchpats and walk
Move core match function code to util
Add some comments and whitespace
Simplify options
Use lambdas instead of always and never
#!/bin/sh -x
hg init
echo a > a
hg add a
hg commit -t "test" -u test -d "0 0"
hg history
hg tag -u test -d "0 0" "bleah"
hg history
echo foo >> .hgtags
hg tag -u test -d "0 0" "bleah2" || echo "failed"