hgext/fsmonitor/pywatchman/capabilities.py
changeset 41365 876494fd967d
parent 30656 16f4b341288d
child 43385 6469c23a40a2
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
    60     """
    60     """
    61     parsed_version = parse_version(vers['version'])
    61     parsed_version = parse_version(vers['version'])
    62     vers['capabilities'] = {}
    62     vers['capabilities'] = {}
    63     for name in opts['optional']:
    63     for name in opts['optional']:
    64         vers['capabilities'][name] = check(parsed_version, name)
    64         vers['capabilities'][name] = check(parsed_version, name)
    65     failed = False
       
    66     for name in opts['required']:
    65     for name in opts['required']:
    67         have = check(parsed_version, name)
    66         have = check(parsed_version, name)
    68         vers['capabilities'][name] = have
    67         vers['capabilities'][name] = have
    69         if not have:
    68         if not have:
    70             vers['error'] = 'client required capability `' + name + \
    69             vers['error'] = 'client required capability `' + name + \