purge extension doesn't need "#!/usr/bin/env python".
(from the Debian package: deb_specific__hgpurge.py.patch)
abort: repository a not found!
255
abort: error: Connection refused
255
abort: repository a not found!
255
abort: destination '../a' already exists
255
abort: repository a not found!
255
destination directory: q
abort: destination 'q' already exists