HEX
Server: Apache
System: Linux iad1-shared-b8-33 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: samfetchero1 (10301780)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/mercurial/__pycache__/txnutil.cpython-310.pyc
o

�]Lb�@s4ddlmZddlZddlmZdd�Zdd�ZdS)	�)�absolute_importN�)�encodingcCs|tj�d�kS)z[return whether 'root' may have pending changes, which are
    visible to this process.
    s
HG_PENDING)r�environ�get)�root�r�3/usr/lib/python3/dist-packages/mercurial/txnutil.py�mayhavependingsr
c
Ksjt|�r+z
|d|fi|��dfWSty*}z
|jtjkr �WYd}~nd}~ww||fi|��dfS)z�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.pendingTNF)r
�IOError�errno�ENOENT)r�vfs�filename�kwargs�instrrr	�
trypendings���r)�
__future__rr�rr
rrrrr	�<module>s