def parseDiffTreeEntry(entry):

    match = diffTreePattern().next().match(entry)
    if match:
        return {
            'src_mode': match.group(1),
            'dst_mode': match.group(2),
            'src_sha1': match.group(3),
            'dst_sha1': match.group(4),
            'status': match.group(5),
            'status_score': match.group(6),
            'src': match.group(7),
            'dst': match.group(10)
        }
    return None
Parses a single diff tree entry into its component elements.
dataset/ETHPy150Open zulip/zulip/api/integrations/perforce/git_p4.py/parseDiffTreeEntry