tests/readlink.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Fri, 17 Oct 2014 12:19:24 -0700
changeset 23180 116b80d63815
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
push: send highest changegroup format supported by both side When using bundle2, we find the common subset of supported changegroup-packers and we pick the max of them. This allow to use generaldelta aware changegroups through bundle2.

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