Mercurial > hg
view tests/readlink.py @ 24896:9183cb6886ef
changegroup: removed unused 'source' parameter from prune()
The parameter has been unused since it was introduced in 6ea1f858efd9
(bundle: refactor changegroup prune to be its own function,
2013-05-30), and Durham says it is not used by his extension either.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Apr 2015 13:40:00 -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)