Mercurial > hg-stable
view tests/readlink.py @ 6536:dfdef3d560a8
cmdutil: handle and warn about missing copy revisions
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 14 Apr 2008 22:31:33 +0200 |
parents | 396c7010b0cd |
children | 08a0f04b56bd |
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)