Added XML output for hg log
The XML format is based on the one used by Subversion.
Currently the closing "</log>" tag is not written, since cmdutil.py does not support the "footer" template variable.
#!/usr/bin/env python
import errno, os, sys
for f in sys.argv[1:]:
try:
print f, '->', os.readlink(f)
except OSError, err:
if err.errno != errno.EINVAL: raise
print f, 'not a symlink'
sys.exit(0)