File: //usr/lib/python3/dist-packages/hgext/__pycache__/show.cpython-310.pyc
o
�]Lb�? � @ s6 d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZ dZi Ze�e�Ze�� ZG dd� dej�Ze� Zed d
ddd
ed�fged�ejd�d)dd��Zeddd�dd� �Zeddd�dd� �Zed�dd� �Z eddd�d d!� �Z!d"d#� Z"d*d%d&�Z#d'd(� Z$e$� dS )+aj unified command to show various repository information (EXPERIMENTAL)
This extension provides the :hg:`show` command, which provides a central
command for displaying commonly-accessed repository data and views of that
data.
The following config options can influence operation.
``commands``
------------
``show.aliasprefix``
List of strings that will register aliases for views. e.g. ``s`` will
effectively set config options ``alias.s<view> = show <view>`` for all
views. i.e. `hg swork` would execute `hg show work`.
Aliases that would conflict with existing registrations will not be
performed.
� )�absolute_import)�_)�nullrev)
�cmdutil�commands�destutil�error� formatter�graphmod�
logcmdutil�phases�pycompat� registrar�revset�
revsetlang�scmutils ships-with-hg-corec @ s e Zd ZdZdZddd�ZdS )�showcmdfuncz;Register a function to be invoked for an `hg show <thing>`.s %s -- %sNc C s ||_ ||_dS )a Called with decorator arguments to register a show view.
``name`` is the sub-command name.
``func`` is the function being decorated.
``fmtopic`` is the topic in the style that will be rendered for
this view.
``csettopic`` is the topic in the style to be used for a changeset
printer.
If ``fmtopic`` is specified, the view function will receive a
formatter instance. If ``csettopic`` is specified, the view
function will receive a changeset printer.
N)�_fmtopic�
_csettopic)�self�name�func�fmtopic� csettopic� r �,/usr/lib/python3/dist-packages/hgext/show.py�_extrasetupB s
zshowcmdfunc._extrasetup�NN)�__name__�
__module__�__qualname__�__doc__�
_docformatr r r r r r <