##// END OF EJS Templates
test-revset: add tests for missing function output...
test-revset: add tests for missing function output An upcoming change will slightly alter behavior here. Adding the test now so the output change stands out in the later changeset.

File last commit:

r10282:08a0f04b default
r24220:fe195d41 default
Show More
readlink.py
13 lines | 243 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, err:
if err.errno != errno.EINVAL:
raise
print f, 'not a symlink'
sys.exit(0)