File: //usr/lib/python3/dist-packages/hgext/__pycache__/pager.cpython-310.pyc
o
�]LbQ
� @ sd d Z ddlmZ ddlmZmZmZmZmZ dZ i Z
e�e
�Zedddd� d � d
d� Zg d�Z
d
S )a browse command output with an external pager (DEPRECATED)
Forcibly enable paging for individual commands that don't typically
request pagination with the attend-<command> option. This setting
takes precedence over ignore options and defaults::
[pager]
attend-cat = false
� )�absolute_import)�cmdutil�commands�dispatch�
extensions� registrars ships-with-hg-core� pager� attendc C s t S )N)�attended� r r �-/usr/lib/python3/dist-packages/hgext/pager.py�<lambda>. s r
)�defaultc C s dd� }t �td|� d S )Nc S s� |d dk}|r_|j s_d}|�dd�}|�dd�}t�|tj�\} }
| D ]$}d| }|�d|d �r:|�d|d�} n||v sD||vrH|sHd} nq$|r[|�dddd� |� d | � n|�
� | ||||�S )
Nr s autoFr s ignores attend-%sT� s extension-via-attend-)�pageractive�
configlistr �findcmdr �table�config�
configbool� setconfig�pager�disablepager)�orig�ui�options�cmd�cmdfunc�auto�usepager�attend�ignore�cmds�_�varr r r �pagecmd3 s(
�zuisetup.<locals>.pagecmds _runcommand)r �wrapfunctionr )r r% r r r �uisetup2 s r'