commands: more informative description of "!" files in status
This makes the description more similar to the one used by Subversion.
Suggestion by Dennis Brakhane.
#!/usr/bin/env pythonimport errno, os, sysfor 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)