Mercurial > hg
view tests/readlink.py @ 12497:5d00a35ea2ea
keyword: do not expand at all during diff
Always shrink and never expand keywords during a diff operation.
Avoid user distraction e.g. because of spurious differences
appearing in the commit editor.
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Sun, 26 Sep 2010 19:18:41 +0200 |
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)