403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/option.cpython-313.pyc
�

p��gHY�	���SrSSKrSSKrSSKJr SSKJrJr SSKJr	 "SS\R5rS	rS
r
SrSr"S
S5r"SS\5r"SS\5r"SS\R&5r"SS\R(5rSrSrSrSrSrS\SjrSqSr\"SSS S!9 \"S"S#S$\S%9 \"S&S'S(9 \"S)S*S+\S%9 \"S,\
S-S.S/S09 \"S1S2\S3S49 \"S5\S6S79 \"S8S9S:S;S<S=S>0S?9 \"S@SASBS;SCSD9 \"SE\SFSGSH9 \"SISJSKS!9 \"SLSMS(9 \"SNSOS(9 \"SPSQS(9 \"S.\SRSSSH9 \"STSUS(9 \"SV\SWSX9 \	R>\\4"5r \ RCSYSZS[5 SY\ l"g)]�google�N)�Callable�)�errors�revisionspec)�registryc��\rSrSrSrSrSrg)�BadOptionValue�z,Bad value "%(value)s" for option "%(name)s".c�@�[RRXUS9 g)N)�name�value)r�BzrError�__init__)�selfr
rs   �//usr/lib/python3/dist-packages/breezy/option.pyr�BadOptionValue.__init__!s����� � ��� �>��N)�__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__rrrr
r
s��=�D�?rr
c���/n[R"S5nURU5H:nUR[R
R
U=(d S55 M< U$)a<	This handles a revision string -> revno.

This always returns a list.  The list will have one element for
each revision specifier supplied.

>>> _parse_revision_str('234')
[<RevisionSpec_dwim 234>]
>>> _parse_revision_str('234..567')
[<RevisionSpec_dwim 234>, <RevisionSpec_dwim 567>]
>>> _parse_revision_str('..')
[<RevisionSpec None>, <RevisionSpec None>]
>>> _parse_revision_str('..234')
[<RevisionSpec None>, <RevisionSpec_dwim 234>]
>>> _parse_revision_str('234..')
[<RevisionSpec_dwim 234>, <RevisionSpec None>]
>>> _parse_revision_str('234..456..789') # Maybe this should be an error
[<RevisionSpec_dwim 234>, <RevisionSpec_dwim 456>, <RevisionSpec_dwim 789>]
>>> _parse_revision_str('234....789') #Error ?
[<RevisionSpec_dwim 234>, <RevisionSpec None>, <RevisionSpec_dwim 789>]
>>> _parse_revision_str('revid:test@other.com-234234')
[<RevisionSpec_revid revid:test@other.com-234234>]
>>> _parse_revision_str('revid:test@other.com-234234..revid:test@other.com-234235')
[<RevisionSpec_revid revid:test@other.com-234234>, <RevisionSpec_revid revid:test@other.com-234235>]
>>> _parse_revision_str('revid:test@other.com-234234..23')
[<RevisionSpec_revid revid:test@other.com-234234>, <RevisionSpec_dwim 23>]
>>> _parse_revision_str('date:2005-04-12')
[<RevisionSpec_date date:2005-04-12>]
>>> _parse_revision_str('date:2005-04-12 12:24:33')
[<RevisionSpec_date date:2005-04-12 12:24:33>]
>>> _parse_revision_str('date:2005-04-12T12:24:33')
[<RevisionSpec_date date:2005-04-12T12:24:33>]
>>> _parse_revision_str('date:2005-04-12,12:24:33')
[<RevisionSpec_date date:2005-04-12,12:24:33>]
>>> _parse_revision_str('-5..23')
[<RevisionSpec_dwim -5>, <RevisionSpec_dwim 23>]
>>> _parse_revision_str('-5')
[<RevisionSpec_dwim -5>]
>>> _parse_revision_str('123a')
[<RevisionSpec_dwim 123a>]
>>> _parse_revision_str('abc')
[<RevisionSpec_dwim abc>]
>>> _parse_revision_str('branch:../branch2')
[<RevisionSpec_branch branch:../branch2>]
>>> _parse_revision_str('branch:../../branch2')
[<RevisionSpec_branch branch:../../branch2>]
>>> _parse_revision_str('branch:../../branch2..23')
[<RevisionSpec_branch branch:../../branch2>, <RevisionSpec_dwim 23>]
>>> _parse_revision_str('branch:..\\\\branch2')
[<RevisionSpec_branch branch:..\\branch2>]
>>> _parse_revision_str('branch:..\\\\..\\\\branch2..23')
[<RevisionSpec_branch branch:..\\..\\branch2>, <RevisionSpec_dwim 23>]
z
\.\.(?![\\/])N)�re�compile�split�appendr�RevisionSpec�from_string)�revstr�revs�sep�xs    r�_parse_revision_strr'%sR��l�D�
�*�*�%�
&�C�
�Y�Y�v�
�����L�-�-�9�9�!�)�t�D�E���Krc��[U5n[U5S:�a[R"5e[R
R
SU-5US4$)aLParse the revision string and return a tuple with left-most
parent of the revision.

>>> _parse_change_str('123')
(<RevisionSpec_before before:123>, <RevisionSpec_dwim 123>)
>>> _parse_change_str('123..124')
Traceback (most recent call last):
  ...
breezy.errors.RangeInChangeOption: Option --change does not accept revision ranges
rzbefore:r)r'�lenr�RangeInChangeOptionrr!r")r#r$s  r�_parse_change_strr+csM���v�&�D�
�4�y�1�}��(�(�*�*��%�%�1�1�)�f�2D�E�t�A�w�O�Orc��[U5$�N)�get_merge_type)�
typestrings r�_parse_merge_typer0ts
���*�%�%rc��SSKJn XS$![ar SS-nUR5Vs/sHo2USUSS4-PM Os snfnnSR	U5nSRUU5n[R"U5ef=f)zAAttempt to find the merge class/factory associated with a string.r)�merge_typesz%s%%7s: %%sz            r�
z/No known merge type {}. Supported types are:
{})�merger2�KeyError�items�join�formatr�CommandError)r/r2�templ�f�lines�	type_list�msgs       rr.r.xs���!�
'��&�q�)�)���'���*��2=�2C�2C�2E�F�2E�Q�!�A�$��!��Q���(�2E��F��F��I�I�e�$�	�@�G�G���
���!�!�#�&�&�'�s��!B�A
�	ABc��\rSrSr%Sr0r\\S4\S'0r	\\S4\S'SSjr
SrSrS	r
S
rSrSrS
rSrSrg)�Option�z�Description of a command line option.

Attributes:
  _short_name: If this option has a single-letter name, this is it.
     Otherwise None.
�STD_OPTIONS�OPTIONSNc	���XlX lX0lXPlUcU(a[	S5eOUcSnX@lUc"URR
SS5UlOX`lXplX�l	g)aIMake a new command option.

Args:
  name: regular name of the command, used in the double-dash
    form and also as the parameter to the command's run()
    method (unless param_name is specified).
  help: help message displayed in command help
  type: function called to parse the option argument, or
    None (default) if this option doesn't take an argument.
  argname: name of option argument, if any
  short_name: short option code for use with a single -, e.g.
    short_name="v" to enable parsing of -v.
  param_name: name of the parameter which will be passed to
    the command's run() method.
  custom_callback: a callback routine to be called after normal
    processing. The signature of the callback routine is
    (option, name, new_value, parser).
  hidden: If True, the option should be hidden in help and
    documentation.
Nzargname not valid for booleans�ARG�-�_)
r
�help�type�_short_name�
ValueError�argname�replace�_param_name�custom_callback�hidden)	rr
rHrIrL�
short_name�
param_namerOrPs	         rr�Option.__init__�sq��>�	��	��	�%���<�� �!A�B�B��
�_��G�����#�y�y�0�0��c�:�D��)��.���rc�>�UR(aUR$gr-�rJ�rs rrQ�Option.short_name�s������#�#�#�rc��Xlgr-rU)rrQs  r�set_short_name�Option.set_short_name�s��%�rc�~�URRS5(aURSS$SUR-$)Nzno-�)r
�
startswithrVs r�get_negation_name�Option.get_negation_name�s6���9�9����&�&��9�9�Q�R�=� ��4�9�9�$�$rc
�d�SRUR5/nUb URSRU55 UR(a[R
nOURnURnUcmUR"USURSUS.6 SRUR55/nUR"USURS[R
S.6 gUR"USURSURR5U[RS	.6 g)
�&Add this option to an Optparse parser.�--{}N�-{}�callback)T)�actionrd�
callback_argsrH)F�string)rerdrI�metavarrH�default)r8r
r rP�optparse�
SUPPRESS_HELPrHrI�
add_option�_optparse_bool_callbackr^�_optparse_callbackrL�upper�OptionParser�
DEFAULT_VALUE)r�parserrQ�option_stringsrH�optargfn�negation_stringss       rrl�Option.add_option�s�� �-�-��	�	�2�3���!��!�!�%�,�,�z�":�;��;�;��)�)�D��9�9�D��9�9�������
 �	"��5�5�%��	
�!'�
�
�d�.D�.D�.F� G�H�����
"�	"��5�5�&��+�+�	
�
��� �
"��0�0�����*�*�,��$�2�2�

rc��[URURU5 URbURXRXT5 ggr-)�setattr�valuesrNrO)r�option�opt_strrrr�bool_vs      rrm�Option._optparse_bool_callback�s?����
�
�t�/�/��8����+�� � ��)9�)9�6�J�,rc�$�URU5n[URURU5 URbURXRXT5 gg![a& [R"SR	X55ef=f)Nzinvalid value for option {}: {})
rIrKrj�OptionValueErrorr8rxryrNrOr
)rrz�optrrr�vs      rrn�Option._optparse_callbacks���	��	�	�%� �A�
	��
�
�t�/�/��3����+�� � ����A�>�,���	��+�+�1�8�8��G��
�	�s�A�0Bc#�# �URnUbUR5nURUR5XR4v� g7f�zxIterate through the list of switches provided by the option.

:return: an iterator of (name, short_name, argname, help)
N)rLror
rQrH)rrLs  r�
iter_switches�Option.iter_switchess=���
�,�,�����m�m�o�G��i�i����*�G�Y�Y�>�>�s�A
Ac��UR$r-)rP�rr
s  r�	is_hidden�Option.is_hiddens���{�{�r)rNrJrLrOrHrPr
rI)�NNNNNF)rrrr�__doc__rB�dict�str�__annotations__rCrrQrYr^rlrmrnr�r�rrrrr@r@�sx���(*�K��c�8�m�$�)�
$&�G�T�#�x�-�
 �%�
�
������.�`$�&�%�#�JK�
	?�?�rr@c�$�\rSrSrSrSrSrSrg)�
ListOptioniaLOption used to provide a list of values.

On the command line, arguments are specified by a repeated use of the
option. '-' is a special argument that resets the list. For example,
  --foo=a --foo=b
sets the value of the 'foo' option to ['a', 'b'], and
  --foo=a --foo=b --foo=- --foo=c
sets the value of the 'foo' option to ['c'].
c��SRUR5/nUb URSRU55 UR"USURSUR
R
5URUR/S.6 g)rarbNrcrdrg)rerdrIrhrH�destri)	r8r
r rlrnrLrorHrN)rrrrQrss    rrl�ListOption.add_option$s{�� �-�-��	�	�2�3���!��!�!�%�,�,�z�":�;�������,�,���L�L�&�&�(�����!�!��		
rc���[URUR5nUS:XaUSS2	O URUR	U55 UR
bURXRXT5 gg)NrF)�getattrryrNr rIrO)rrzr�rrrrys      rrn�ListOption._optparse_callback4sb�������(8�(8�9���C�<��q�	��M�M�$�)�)�E�*�+����+�� � ��)9�)9�6�J�,rrN)rrrrr�rlrnrrrrr�r�s���
� Krr�c��\rSrSrSrSrSrSSjr\S5r	\
SSj5rS	rS
r
SrSrS
rSrg)�RegistryOptioni>z�Option based on a registry.

The values for the options correspond to entries in the registry.  Input
must be a registry key.  After validation, it is converted into an object
using Registry.get or a caller-provided converter.
c�N�XR;a[URU5eg)zValidate a value name.N)rr
r
�rrs  r�validate_value�RegistryOption.validate_valueFs"���
�
�%� ����E�2�2�&rc��URU5 URcURRU5$URU5$)z)Convert a value name into an output type.)r��	converterr�getr�s  r�convert�RegistryOption.convertKs>�����E�"��>�>�!��=�=�$�$�U�+�+��>�>�%�(�(rNc�2�[RXX RU	S9 X0lUc&Uc[	S5e[
R"U6UlUbUb[	S5eXlX@l	XPl
XplX�lX`l
URcXl
gg)a�Constructor.

Args:
  name: The option name.
  help: Help for the option.
  registry: A Registry containing the values
  converter: Callable to invoke with the value name to produce
    the value.  If not supplied, self.registry.get is used.
  value_switches: If true, each possible value is assigned its
    own switch.  For example, instead of '--format knit',
    '--knit' can be used interchangeably.
  enum_switch: If true, a switch is provided with the option name,
    which takes a value.
  lazy_registry: A tuple of (module name, attribute name) for a
    registry to be lazily loaded.
  short_name: The short name for the enum switch, if any
  short_value_switches: A dict mapping values to short names
�rIrQNz/One of registry or lazy_registry must be given.z1registry and lazy_registry are mutually exclusive)r@rr��	_registry�AssertionError�
_mod_registry�_LazyObjectGetter�_lazy_registryr
r��value_switches�enum_switch�short_value_switches�title)rr
rHrr�r�r�r��
lazy_registryrQr�s           rr�RegistryOption.__init__Ss���>	����D�|�|�
��S�!�����$�$�%V�W�W�"/�"A�"A�=�"Q�D����M�$=� �!T�U�U��	�"��,��&��$8�!��
��:�:���J�rc�r�URcURR5UlUR$r-)r�r��get_objrVs rr�RegistryOption.registry�s,���>�>�!�!�0�0�8�8�:�D�N��~�~�rc	�8�[R"5n[UR55H[upxUR	SS5nURXwUS9 U(aM0US-U-S-U-nUR
S5(aMVUS-nM] [UUUUUUS9$)aConvenience method to generate string-map registry options.

name, help, value_switches and enum_switch are passed to the
RegistryOption constructor.  Any other keyword arguments are treated
as values for the option, and their value is treated as the help.
rGrF�rHz  "z": �.)r�r�r�)r��Registry�sortedr6rM�register�endswithr�)	�name_rHr�r�r��kwargs�regr
�switch_helps	         r�from_kwargs�RegistryOption.from_kwargs�s����$�$�&��!'�����!7��D��<�<��S�)�D��L�L��+�L�6�!�>��e�|�d�*�U�2�[�@���}�}�S�)�)��#�:�D�
"8������)�#�

�	
rc��UR(aURUR5nUR(a[RXU5 UR(GamURR5nURR5GH3nX@RR5;aM#U/URU/5Vs/sHnURU5(aMUPM sn-Vs/sHnSRU5PM nnURU5(a[RnOURRU5nUR (a<X@R ;a-UR#SRUR U55 UR
"USUR%U5US.6 GM6 ggs snfs snf)rarbrcrd)rerdrHN)r��add_option_groupr�r�r@rlr�	alias_map�keys�aliasesr�r�r8rjrk�get_helpr�r �_optparse_value_callback)	rrrrQr��key�aliasr
rsrHs	         rrl�RegistryOption.add_option�s�������,�,�T�Z�Z�8�F�������d�J�7������
�
�/�/�1�I��}�}�)�)�+���-�-�/�/�1�1��"%��&/�]�]�3��%;��%;�E�#�~�~�e�4��%;��!�"�!���]�]�4�(�!��"��>�>�#�&�&�#�1�1�D��=�=�1�1�#�6�D��,�,��8Q�8Q�1Q�"�)�)�%�,�,�t�7P�7P�QT�7U�*V�W��!�!�$�&�!�:�:�3�?���%,�����"s�G�1G�>Gc�^^�UU4SjnU$)Nc�>�TRT5n[URTRU5 TRbTR	UTRXC5 ggr-)rIrxryrNrO)rzr�rrrr��cb_valuers     ��r�cb�3RegistryOption._optparse_value_callback.<locals>.cb�sP����	�	�(�#�A��F�M�M�4�#3�#3�Q�7��#�#�/��$�$�V�T�-=�-=�q�I�0rr)rr�r�s`` rr��'RegistryOption._optparse_value_callback�s���	J��	rc#�# �[RU5Shv�N UR(aL[URR55H$nUSSURR
U54v� M& ggNb7fr�)r@r�r�r�rr�r�)rr�s  rr��RegistryOption.iter_switches�sh���
�'�'��-�-�-�����d�m�m�0�0�2�3���4��t�}�}�'=�'=�c�'B�B�B�4��	.�s�B�A>�A#Bc�Z�XR:XagXRR5;$)z.Check whether a particular format is an alias.F)r
rr�r�s  r�is_alias�RegistryOption.is_alias�s%���9�9����}�}�,�,�.�.�.rc��XR:Xa[RX5$[URRU5SS5$)NrPF)r
r@r�r�r�get_infor�s  rr��RegistryOption.is_hidden�s;���9�9���#�#�D�/�/��t�}�}�-�-�d�3�X�u�E�Er)r�r�r�r�r
r�r�r�)NNFNTNNN)NNFT)rrrrr�r�r�r�propertyr�staticmethodr�rlr�r�r�r�rrrrr�r�>sx���3�
)��������!�.�`����
�HL�
��
�4�B�C�/�Frr�c�2�\rSrSrSr\"5rSrSrSr	g)rpi�z7OptionParser that raises exceptions instead of exiting.c�`�[RRU5 [5Ulgr-)rjrpr�GettextIndentedHelpFormatter�	formatterrVs rr�OptionParser.__init__�s �����&�&�t�,�5�7��rc�.�[R"U5er-)rr9)r�messages  r�error�OptionParser.error�s���!�!�'�*�*r)r�N)
rrrrr��objectrqrr�rrrrrprp�s��A��H�M�8�+rrpc�$�\rSrSrSrSrSrSrg)r�i�z'Adds gettext() call to format_option().c�B�[RRU5 gr-)rj�IndentedHelpFormatterrrVs rr�%GettextIndentedHelpFormatter.__init__�s���&�&�/�/��5rc��UR(aSSKJn U"UR5Ul[RRX5$)z%Code taken from Python's optparse.py.r)�gettext)rH�i18nr�rjr��
format_option)rrzr�s   rr��*GettextIndentedHelpFormatter.format_option�s3���;�;�%�!�&�+�+�.�F�K��-�-�;�;�D�I�IrrN)rrrrr�rr�rrrrr�r��s��1�6�Jrr�c��[5nURS5 UH"nURXR55 M$ U$)z5Generate an optparse parser for breezy-style options.z--help)rp�
remove_optionrlrQ)�optionsrrrzs   r�
get_optparserr�s=��
�^�F�
����"������&�"3�"3�"5�6���Mrc�^�SSKnUR[RU5nXlU$)z*Clone a common option overriding the help.rN)�copyr@rCrH)r
rHr��os    r�custom_helpr�	s&����	�	�&�.�.��&�'�A�
�F��Hrc��[U40UD6[RU'[RU[RU'g�zRegister a standard option.N)r@rBrC�r
r�s  r�_standard_optionr�s7�� &�d�5�f�5�F���t��!�-�-�d�3�F�N�N�4�rc��[U40UD6[RU'[RU[RU'gr�)r�r@rBrCr�s  r�_standard_list_optionr�s7�� *�$�9�&�9�F���t��!�-�-�d�3�F�N�N�4�rc�>�[U40UD6[RU'g)zRegister a global option.N)r@rCr�s  r�_global_optionr� s��!�$�1�&�1�F�N�N�4�rc�@�[XU40UD6[RU'gr-)r�r@rC)r
rHrr�s    r�_global_registry_optionr�%s��)�$�h�I�&�I�F�N�N�4�rc�~�U(dSqgUS:Xa[S:�a
[S-
qgSqg[S:a
[S-qgSqg)Nr�verboser���)�_verbosity_level)rzr{rrrs    r�_verbosity_level_callbackr4sE�����	�I�	��a����!�� ���a����!��!�rrH�hzShow help message.)rQrH�quiet�qz!Only display errors and warnings.)rQrHrO�usagezShow usage message and options.r�rr�zDisplay more information.�change�c�revisionzRSelect changes introduced by the specified revision. See also "help revisionspec".)rIrQrRrH�	directory�dz3Branch to operate on, instead of working directory.)rQrIrH�file�Fr�z
log-formatzUse specified log format.)z
breezy.log�log_formatter_registryTz
Log format�short�S)r�r�r�r�z
merge-typez$Select a particular merge algorithm.)zbreezy.merge�merge_type_registryzMerge algorithm)r�r�r�r��mzMessage string.)rIrQrH�null�0z6Use an ASCII NUL (\0) separator rather than a newline.�	overwritezBIgnore differences between branches and overwrite unconditionally.�rememberz-Remember the specified location as a default.�	reprocessz'Reprocess to reduce spurious conflicts.�rz$See "help revisionspec" for details.zshow-idszShow internal object ids.�timezonez,Display timezone as local, original, or utc.)rIrH�plainc��U$r-r)r&s r�<lambda>r�s��rzPlaintext diff output.r-)#�
__docformat__rjr�typingrr�rrrr�rr
r'r+r0r.r@r�r�rpr�r�r�r�r�r�r�r�rrr�r��diff_writer_registryr��default_keyrrr�<module>r"s)��(�
��	��"�'�?�V�_�_�?�;�|P�"&�'�"M�M�`"K��"K�JcF�V�cF�L
+�8�(�(�
+�J�8�#A�#A�J��
�4�4�2�
J���"�$��C�.B�C����	,�-�	���@�A��
��	$�-�	���	���	]�����	�	>�	��v�C�C�0����:��
�!�3��
���*�9��
���y�s�s�9J�K��
��	B��
��	M���z� O�P��{�!J�K���	��	/�	��z� ;�<���S�M��%�-�-�c�8�m�<�>�����g�{�4L�M�#*�� r

Youez - 2016 - github.com/yon3zu
LinuXploit