fix backtrace printed when cannot get lock.
change lock error handling code so exceptions have useful info and
exception handling in one place.
add test case for when cannot get lock.
syntax: glob
*.elc
*.orig
*.rej
*~
*.so
*.pyc
*.swp
*.prof
tests/*.err
build
dist
doc/*.[0-9]
doc/*.[0-9].gendoc.txt
doc/*.[0-9].{x,ht}ml
MANIFEST
patches
mercurial/__version__.py
syntax: regexp
^\.pc/