
    6h                     d    S r SSKJr  SSKJrJr  SqS rS rS r	S r
\	" \R                  5      rg)	z*utilities to assist in working with pygit2    )annotations)binsha1nodeconstantsNc                     [         c   SS Kq [         R                    [         $ [         $ ! [        [        4 a     [         $ f = f)Nr   )pygit2_modulepygit2InvalidSpecErrorImportErrorAttributeError     3/usr/lib/python3/dist-packages/hgext/git/gitutil.py
get_pygit2r   
   sE    	*** = ^, 		s   ) A Ac                     [        5       n SnU (       a   U R                  nSUR                  S5      -  $ ! [         a     N f = f)NzN/As   (pygit2 %s)zutf-8)r   __version__r   encode)modvs     r   pygit2_versionr      sI    
,CA
	A AHHW---  		s   5 
AAc                D    [        U 5      S:X  d   eU R                  5       $ )zWrapper to convert a Mercurial binary node to a unicode hexlified node.

pygit2 and sqlite both need nodes as strings, not bytes.
   )lenhexns    r   	togitnoder   #   s    
 q6R<<557Nr   c                :    [        U 5      S:X  d   e[        U 5      $ )zOpposite of togitnode.(   )r   r   r   s    r   fromgitnoder   ,   s    q6R<<q6Mr   )__doc__
__future__r   mercurial.noder   r   r   r   r   r   r   nullidnullgitr   r   r   <module>r%      s:    0 " 1	
. %,,
-r   