##// END OF EJS Templates
revset: move groupbranchiter over from graphmod...
revset: move groupbranchiter over from graphmod This move is to prepare the adaptation of this function into a toposort predicate.

File last commit:

r29175:7bcfb909 default
r29347:98535ad4 default
Show More
readlink.py
15 lines | 295 B | text/x-python | PythonLexer
#!/usr/bin/env python
from __future__ import print_function
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, '->', f, 'not a symlink')
sys.exit(0)