Mercurial > hg
view tests/readlink.py @ 23160:4f4e6815f286
test-revert: sort by output filename again
Future patches will change how the output of 'gen-revert-cases.py
filelist' is generated, so now we want the order to depend on just the
filename again.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 18 Oct 2014 18:12:54 -0700 |
parents | 08a0f04b56bd |
children | 328739ea70c3 |
line wrap: on
line source
#!/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)