##// END OF EJS Templates
revset: add hint for list error to use or
revset: add hint for list error to use or

File last commit:

r25660:328739ea default
r27517:c60a9c16 default
Show More
readlink.py
13 lines | 245 B | text/x-python | PythonLexer
#!/usr/bin/env python
import errno, os, sys
for f in sys.argv[1:]:
try:
print f, '->', os.readlink(f)
except OSError as err:
if err.errno != errno.EINVAL:
raise
print f, 'not a symlink'
sys.exit(0)