
    q&fi
                     (    d  Z dddddddZd Zd Zy)	c                 \    d}| j                  d      D ]  }|dz  }|t        |      z   } |S )N    .i  )splitint)vstrresns      I/usr/lib/python3/dist-packages/hgext/fsmonitor/pywatchman/capabilities.pyparse_versionr      s;    
CZZ_ DjCFl J    z3.1.1z3.1z3.3z3.7)zcmd-watch-del-allzcmd-watch-projectrelative_rootzterm-dirnamezterm-idirname	wildmatchc                 >    |t         v r| t        t         |         k\  S y)NF)cap_versionsr   )versionnames     r
   checkr   0   s"    |-T(:;;;r   c                     t        | d         }i | d<   |d   D ]  }t        ||      | d   |<    |d   D ]$  }t        ||      }|| d   |<   |rd|z   dz   | d<   & | S )z}Synthesize a capability enabled version response
    This is a very limited emulation for relatively recent feature sets
    r   capabilitiesoptionalrequiredzclient required capability `z!` is not supported by this servererror)r   r   )versoptsparsed_versionr   haves        r
   
synthesizer   6   s     #4	?3NDZ  A%*>4%@^T"A Z  ^T*%)^T".56 M	 Kr   N)r   r   r   r    r   r
   <module>r      s/   < !r   