purge extension doesn't need "#!/usr/bin/env python".
(from the Debian package: deb_specific__hgpurge.py.patch)
#!/bin/shhg initecho a > ahg ci -d '0 0' -Amahg an aecho "[ui]" >> $HGRCPATHecho "strict=True" >> $HGRCPATHhg an ahg annotate aecho % should succeed - up is an alias, not an abbreviationhg up