tests/readlink.py
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 15 Nov 2013 23:27:15 -0500
changeset 20223 37e2bd560805
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
discovery: make revlogdag work on filtered repo The revlogdag class is a core part of discovery. We need its initialisation to exclude revision filtered out.

#!/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)