File: //proc/self/root/lib64/python2.7/site-packages/mercurial/txnutil.pyc
�
1�3\c @@ sB d d l m Z d d l Z d d l m Z d � Z d � Z d S( i ( t absolute_importNi ( t encodingc C@ s | t j j d � k S( s[ return whether 'root' may have pending changes, which are
visible to this process.
t
HG_PENDING( R t environt get( t root( ( s7 /usr/lib64/python2.7/site-packages/mercurial/txnutil.pyt mayhavepending s c K@ sk t | � rX y | d | | � t f SWqX t k
rT } | j t j k rU � qU qX Xn | | | � t f S( s� Open 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.pending( R t Truet IOErrort errnot ENOENTt False( R t vfst filenamet kwargst inst( ( s7 /usr/lib64/python2.7/site-packages/mercurial/txnutil.pyt
trypending s
( t
__future__R R t R R R ( ( ( s7 /usr/lib64/python2.7/site-packages/mercurial/txnutil.pyt <module> s