##// END OF EJS Templates
test: enforce non-general delta in 'test-generaldelta.t'...
test: enforce non-general delta in 'test-generaldelta.t' If general delta becomes the default, we need to be explicit about what we want to be tested.

File last commit:

r25660:328739ea default
r26866:0f75461a 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)