
    q&f                         d dl mZ d Zd Zy)   )encodingc                 F    | t         j                  j                  d      k(  S )z[return whether 'root' may have pending changes, which are
    visible to this process.
    s
   HG_PENDING)r   environget)roots    3/usr/lib/python3/dist-packages/mercurial/txnutil.pymayhavependingr	      s      8##''666    c                 j    t        |       r	  |d|z  fi |dfS  ||fi |dfS # t        $ r Y w xY w)zOpen  file to be read according to HG_PENDING environment variable

    This opens '.pending' of specified 'filename' only when HG_PENDING
    is equal to 'root'.

    This returns '(fp, is_pending_opened)' tuple.
    s
   %s.pendingTF)r	   FileNotFoundError)r   vfsfilenamekwargss       r   
trypendingr      sV     d	0;F;TBB #F#U++ ! 		s   & 	22N) r   r	   r    r
   r   <module>r      s    7,r
   