403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/proc/self/root/usr/lib/python3/dist-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/self/root/usr/lib/python3/dist-packages/hgext/__pycache__/mq.cpython-313.pyc
�

6�ho=����SrSSKJr SSKrSSKrSSKrSSKrSSKJr SSK	J
r
JrJrJ
r
 SSKJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJ r J!r!J"r"J#r#J$r% SSK&J'r'J(r(J)r) \RTr*SS	S\"S
54/r+0r,\RZ"\,5r-Sr.0r/\R`"\/5r0\0"SS
SS9 \0"SSSS9 \0"SSSS9 \0"SSSS9 \Rb"S5 \!RBr!GSSjr5\#Rlr7"SS5r8/SQr9SSSS.r:Sr;S r<"S!S"5r=S#r>"S$S%\R~5r@"S&S'5rAS(rB\-"S)S*S+S\"S,54S-S./\"S/5\"S054/\"S15\-R�S29S35rD\-"S4S5S6S\"S754/\+-\"S85\-R�S29GSS9j5rE\-"S:S5S;S\"S<54/\+-\"S=5\-R�S29GSS>j5rF\-"S?S@SAS\"SB54SCSDS\"SE5\"SF54SGSHS\"SI54S-S./\"SJ5\"S054SKS
S\"SL54SMSNS\"SO54/\"SP5\-R�S29SQ5rHSRrI\-"SSSTSUS\"SV54/\"SW5\-R�SXSY9SZ5rK\-"S[SS\S\"S]54S^S_S\"S`54SSaS\"Sb54ScSdS\"Se5\"Sf54/\R�-\"Sg5\-R�SXSh9GSSij5rM\-"Sj\R�SkS\"Sl5\-R�SXSm9Sn5rP\-"SoSpSqS\"Sr54/\+-\"Ss5\-R�S29St5rQ\-"Su\+\"Sv5\-R�S29Sw5rR\-"Sx\+\"Sy5\-R�S29Sz5rS\-"S{\+\"S|5\-R�S29S}5rTS~rU\-"SS@S�S\"S�54SGSHS\"S�54SKS
S\"SL54S^S�S\"S�54S�S�S\"S�5\"S�54S�S�S\"S�54S�S�S\"S�5\"S�54/\R�-\R�-\"S�5\-R�SXSXS�9S�5rX\-"S�S@S�S\"S�54SKS
S\"SL54SS�S\"S�54S^S�S\"S�54S�S�S\"S�5\"S�54S�S�S\"S�54S�S�S\"S�5\"S�54/\R�-\R�-\"S�5\-R�SXSXS�9S�5rY\-"S�\R�\R�-\R�-\"S�5\-R�SXSXS�9S�5r]\-"S�S@S�S\"S�54S*S+S\"S�54/\R�-\"S�5\-R�S29S�5r_\-"S�SS�S\"S�54SGSHS\"S�54SS�S\"S�54/\"S�5\-R�S29S�5r`\-"S�S�S�S\"S�54SCS�S\"S�54/\"S�5\-R�S29S�5ra\-"S�/\"S�5\-R�S29GSS�j5rbS�rcS�rd\-"S�SS�S\"S�54SGSHS\"S�54S@S�S\"S�54S�S�S\"S�54S�S�S\"S�54SpS�S\"S�54SCSDS\"S�5\"SF54SS�S\"S�54SS�S\"S�54/	\"S�5\-R�SXSY9GSS�j5re\-"S�S�S�S\"S�54SCSDS\"S�5\"SF54SS�S\"S�54SGSHS\"S�54SS�S\"S�54/\"S�5\-R�SXSY9GSS�j5rf\-"S�/\"S�5\-R�S29GSS�j5rg\-"S�S�S�S\"S�54S�S�S\"S�54/\"S�5\-R�S29S�5rh\-"S�STS�S\"S�54SCSDS\"S�5\"SF54S@S�S\"S�54SGSHS\"S�54/\R�-\"S�5\-R�S29S�5ri\-"S�SCS�S\"S�54SS�S\"S�54SS�S\"S�54SS�S\"S�54/\"S�5\-R�S29S�5rj\-"S�S�S�S\"S�54/\"S�5\-R�S29S�5rk\-"S�S�S�S\"S�54SS�S\"S�54STS�S\"S�54SS�S\"S�54SS�S\"S�54SS�S\"S�54/\"S�5\-R�S29GSS�j5rlS�rmS�rnS�roS�rpGSrqGSrr\R�"5rs\s"GS5GS5rt\t/ruGSrvGSGSGSGSGS	GS
GS	GS.rwg!\2a' "SS5r3\Rh"\3"5SS5 GNf=f(
amanage a stack of patches

This extension lets you work with a stack of patches in a Mercurial
repository. It manages two stacks of patches - all known patches, and
applied patches (subset of known patches).

Known patches are represented as patch files in the .hg/patches
directory. Applied patches are both patch files and changesets.

Common tasks (use :hg:`help COMMAND` for more details)::

  create new patch                          qnew
  import existing patch                     qimport

  print patch series                        qseries
  print applied patches                     qapplied

  add known patch to applied stack          qpush
  remove patch from applied stack           qpop
  refresh contents of top applied patch     qrefresh

By default, mq will automatically use git patches when required to
avoid losing file mode changes, copy records, binary files or empty
files creations or deletions. This behavior can be configured with::

  [mq]
  git = auto/keep/yes/no

If set to 'keep', mq will obey the [diff] section configuration while
preserving existing git patches upon qrefresh. If set to 'yes' or
'no', mq will override the [diff] section and always generate git or
regular patches, possibly losing data in the second case.

It may be desirable for mq changesets to be kept in the secret phase (see
:hg:`help phases`), which can be enabled with the following setting::

  [mq]
  secret = True

You will by default be managing a patch queue named "patches". You can
create other, independent patch queues with the :hg:`qqueue` command.

If the working directory contains uncommitted files, qpush, qpop and
qgoto abort immediately. If -f/--force is used, the changes are
discarded. Setting::

  [mq]
  keepchanges = True

make them behave as if --keep-changes were passed, and non-conflicting
local changes will be tolerated and preserved. If incompatible options
such as -f/--force or --exact are passed, this setting is ignored.

This extension used to provide a strip command. This command now lives
in the strip extension.
�)�annotationsN��_)�bin�hex�nullrev�short)�cmdutil�commands�encoding�error�
extensions�hg�	localrepo�lock�
logcmdutil�patch�phases�pycompat�	registrar�
revsetlang�scmutil�smartset�strip�subrepoutil�util�vfs)�dateutil�
stringutil�urlutil�s�summarys print first line of patch headersships-with-hg-core�mq�git�auto)�default�keepchangesF�plain�secretsstripc� �\rSrSrSrSrSrg)�dummyui�c��g�N�)�self�msgs  �*/usr/lib/python3/dist-packages/hgext/mq.py�debug�
dummyui.debug�����c��gr.r/)r0�event�msgfmt�msgargs�optss     r2�log�dummyui.log�r5r6r/N)�__name__�
__module__�__qualname__�__firstlineno__r3r<�__static_attributes__r/r6r2r+r+�s��	�	r6r+r6c�P�/nUSnU(aXnOUR5n[UR5HinURU5R	S5 XTR;d&URU5R5(dMXUR
U5 Mk U$)znreturn list of subrepos at a different revision than substate.
Abort if any subrepos have uncommitted changes.NT)�p1�sorted�substate�sub�
bailifchanged�dirty�append)�repo�baserev�inclsubs�wctx�bctx�ss      r2�
checksubstaterQ�s����H���:�D���}���w�w�y��
�D�M�M�
"�������!�!�$�'��M�M�!�T�X�X�a�[�%6�%6�%8�%8��O�O�A��#��Or6c�h�\rSrSrSrSr\R"\5r\R"\5r	Sr
g)�statusentry�c� �XsUlUlgr.)�node�name)r0rVrWs   r2�__init__�statusentry.__init__�s��#���	�4�9r6c�L�[UR5S-UR-$)N�:)rrVrW�r0s r2�	__bytes__�statusentry.__bytes__�s���4�9�9�~��$�t�y�y�0�0r6)rWrVN)r>r?r@rArXr]r�	strmethod�__str__�__repr__rBr/r6r2rSrS�s.��*�1�� � ��+�G��!�!�)�,�Hr6rS)�# User �# Date s#      �	# Branch �
# Node ID �
# Parent  ��)sfrom�datessubjectc��URS5S-n[RU5n[U5n[U[U55H|nXnUR	S5(d
[XV5n OV[
[5H?up�UR	U	5(dMX�:XaX-X'Us s $X�:�a[XV5n Mz M~ URXQU-5 U$)a;Assuming lines contains a HG patch header, add a header line with value.
>>> try: inserthgheader([], b'# Date ', b'z')
... except ValueError as inst: print("oops")
oops
>>> inserthgheader([b'# HG changeset patch'], b'# Date ', b'z')
['# HG changeset patch', '# Date z']
>>> inserthgheader([b'# HG changeset patch', b''], b'# Date ', b'z')
['# HG changeset patch', '# Date z', '']
>>> inserthgheader([b'# HG changeset patch', b'# User y'], b'# Date ', b'z')
['# HG changeset patch', '# User y', '# Date z']
>>> inserthgheader([b'# HG changeset patch', b'# Date x', b'# User y'],
...                b'# User ', b'z')
['# HG changeset patch', '# Date x', '# User z']
>>> inserthgheader([b'# HG changeset patch', b'# Date y'], b'# Date ', b'z')
['# HG changeset patch', '# Date z']
>>> inserthgheader([b'# HG changeset patch', b'', b'# Date y'],
...                b'# Date ', b'z')
['# HG changeset patch', '# Date z', '', '# Date y']
>>> inserthgheader([b'# HG changeset patch', b'# Parent  y'],
...                b'# Date ', b'z')
['# HG changeset patch', '# Date z', '# Parent  y']
�# HG changeset patchrg�# )�index�	HGHEADERS�len�range�
startswith�min�	enumerate�insert)
�lines�header�value�start�newindex�bestpos�i�line�	lineindex�hs
          r2�inserthgheaderr�s���.
�K�K�/�0�1�4�E����v�&�H��%�j�G�
�5�#�e�*�
%���x�����u�%�%��'�o�G��%�i�0�L�I����q�!�!��(�%�~�E�H� �L��'�!�'�o�G��1�&�
�L�L��5�.�)��Lr6c���[UR5n[U5n[U5H�upVSU;alUR	SS5SR5R5n[R
XsS-5nX�:XaSX4-X'Us $X�:�aXT:aUnMsMuMwU(aURUS5 XT:aUn O URUSX4-5 U$)aFor lines containing a plain patch header, add a header line with value.
>>> insertplainheader([], b'Date', b'z')
['Date: z']
>>> insertplainheader([b''], b'Date', b'z')
['Date: z', '']
>>> insertplainheader([b'x'], b'Date', b'z')
['Date: z', '', 'x']
>>> insertplainheader([b'From: y', b'x'], b'Date', b'z')
['From: y', 'Date: z', '', 'x']
>>> insertplainheader([b' date : x', b' from : y', b''], b'From', b'z')
[' date : x', 'From: z', '']
>>> insertplainheader([b'', b'Date: y'], b'Date', b'z')
['Date: z', '', 'Date: y']
>>> insertplainheader([b'foo: bar', b'DATE: z', b'x'], b'From', b'y')
['From: y', 'foo: bar', 'DATE: z', '', 'x']
r[rgr�%s: %sr6)�PLAINHEADERS�lowerrors�splitr�getrt)	rurvrw�newpriorzr{r|�lheader�lprios	         r2�insertplainheaderr��s���"�6�<�<�>�*�G��%�j�G��U�#����4�<��j�j��q�)�!�,�2�2�4�:�:�<�G� �$�$�W��k�:�E���$���6�������1�;���$/������Q��$��{����$�
�L�L��)�v�o�5�6��Lr6c�f�\rSrSrSSjrSrSrSrSrSr	\
R"\	5rSr
S	rg
)�patchheaderi"c��SnSn/n/nSnSnSn	Sn
SnSnSn
Sn[US5nUGH6nUR5nURS5(dU(aURS5(aSn GO�SnURS5(aS	nMhU
S
:Xa�URS5(aUSSnGO�URS
5(aUSSnGO}URS5(aUSSR5n	GORURS5(aUSSnGO5URS5(aUSSn
GOURS5(dU(aUR	U5 Sn
O�US:Xa/nS
n
O�U
S:wa4URS5(dURS5(aUSSnSn
O�U
S:wa4URS5(dURS5(aUSSnSn
OhU
S:wa4URS5(dURS5(aUSSnSn
O.U
S:Xa	US:XaSn
OU(dU(aUR	U5 UR	U5 GM9 SSS5 U"U5 U"U5 [U5UlU"U5 U"U5 U
(a/U
RS5(aU(aURSU5 XPlX`l	Xpl
X�lX�lX�l
X�lUS	:�UlU=(d2 SUR;=(a [!SUR55Ulg!,(df   N�=f) Nc��U(aVUSnURS5(d,URS5(dURS5(aUS	OgU(aMUgg)N���sdiff -sIndex:s===========�rq)ru�ls  r2�eatdiff�%patchheader.__init__.<locals>.eatdiff$sL����"�I���L�L��+�+��|�|�I�.�.��|�|�N�3�3��b�	���%r6c�`�U(a'USR5(dUS	OgU(aM&gg)Nr�)r)rus r2�eatempty�&patchheader.__init__.<locals>.eatempty0s'����R�y���(�(��b�	��	�%r6r�rb�
diff --gits+++ rhs--- rgshgpatchrb�rcs	# Parent �	rdre�
rlrkstagdones	Subject: �	subject: stag�From: sfrom: ��Date: sdate: r6c3�t# �UH.nURS5=(d URS5v� M0 g7f)r�r�Nr�)�.0�cs  r2�	<genexpr>�'patchheader.__init__.<locals>.<genexpr>�s1����&�A����Y�'�B�1�<�<�	�+B�B�&�s�68)�open�rstriprq�lstriprJro�
diffstartlinert�message�comments�user�date�parent�nodeid�branch�haspatch�any�	plainmode)r0�pfr�r�r�r�r�r�r�r��format�subjectr�r��	diffstart�fpr|s                 r2rX�patchheader.__init__#s��
	�	��������������������	�
�"�d�^�r����{�{�}���?�?�=�1�1��$�/�/�'�":�":� !�I���	��?�?�7�+�+� !�I���z�)����z�2�2�#�A�B�x������4�4�#�A�B�x������6�6�!%��B�"� �&�(������6�6�!%�a�b�������7�7�!%�b�c���!�_�_�U�3�3�����t�,�!%����4�4� �G�'�F��z�)��O�O�L�1�1����|�4�4�"�1�2�h�G�#�F��z�)��O�O�I�.�.�$�/�/�)�2L�2L����8�D�#�F��z�)��O�O�I�.�.�$�/�/�)�2L�2L����8�D�#�F��v�%�$�#�+�(�F����N�N�4�(�����%�k��p	������!��]����������f�'�'��/�/�G��N�N�1�g�&��� �
��	��	�������!�A�
��
��
�&�d�m�m�;���������	
��[�^�s�H>M�
Mc���[URSU5 Xlg![aG UR(a[	URSU5 N;SSU-/nX R-UlNWf=f)NrbsFromrk)rr��
ValueErrorr�r�r�)r0r��tmps   r2�setuser�patchheader.setuser��c��	4��4�=�=�*�d�;��	��
�	4��~�~�!�$�-�-��$�?�.�
�T�0A�B�� #�m�m� 3��
�	4��� �2A1�A1�0A1c���[URSU5 Xlg![aG UR(a[	URSU5 N;SSU-/nX R-UlNWf=f)NrcsDaterk)rr�r�r�r�r�)r0r�r�s   r2�setdate�patchheader.setdate�r�r�c��[URSU5 Xlg![a. UR(dSSU-/nX R-UlN>f=f)Nrfrk)rr�r�r�r�)r0r�r�s   r2�	setparent�patchheader.setparent�sT��	4��4�=�=�-��@�
���	�	4��>�>�.�
��0F�G�� #�m�m� 3��
��	4�s� �5A�Ac�>�UR(aUR5 U/UlU(amUR(a@UR(a/URS(aURR	S5 URR	U5 gg)Nr�r6)r��_delmsgr�r�rJ)r0r�s  r2�
setmessage�patchheader.setmessage�s_���=�=��L�L�N��y�����~�~�$�-�-�D�M�M�"�4E��
�
�$�$�S�)��M�M� � ��)�r6c�n�SRUR5R5nU(dgUS-$)N�
r6s

)�joinr�r�)r0rPs  r2r]�patchheader.__bytes__�s-���J�J�t�}�}�%�,�,�.�����7�{�r6c���UR(a�SURSR5-n[[UR55HFnXRUR5:XdM%URU	URSSUl O SnURH;nX@RU:waUS-
nX@RU:waMURU	M= g)z�Remove existing message, keeping the rest of the comments fields.
If comments contains 'subject: ', message will prepend
the field and a blank line.r�rrhNrg)r�r�rpror�)r0�subjr{�ci�mis     r2r��patchheader._delmsg�s����<�<��$�,�,�q�/�"7�"7�"9�9�D��3�t�}�}�-�.���=�=��+�1�1�3�3��
�
�a�(�#'�<�<���#3�D�L��	/�
���,�,�B��
�
�b�)�)��a����
�
�b�)�)��
�
�b�!�r6)
r�r�r�r�r�r�r�r�r�r�N�F)r>r?r@rArXr�r�r�r�r]rr_r`r�rBr/r6r2r�r�"s9��s
�j	�	��*��� � ��+�G�"r6r�c�l�UR5nUc1URRSS5(a[RnSS0nUbXS'URRUS5 URR
SSS5 UR"U0UD6sSSS5 $!,(df   g=f)	z�helper dedicated to ensure a commit respect mq.secret setting

It should be used instead of repo.commit inside the mq source for operation
creating new changeset.
Nr#r))�ui�allowemptycommitT)sphasess
new-commitr�r�)�
unfiltered�ui�
configboolr�secret�configoverride�	setconfig�commit)rK�phase�args�kwargs�	overridess     r2�	newcommitr��s����?�?��D��}��7�7���e�Y�/�/��M�M�E�-�t�4�I���05�,�-�	
���	�	�	�5�	1������%�!4�d�;��{�{�D�+�F�+�
2�	1�	1�s�,/B%�%
B3c��\rSrSrSrg)�AbortNoCleanupi�r/N)r>r?r@rArBr/r6r2r�r��s��r6r�c��\rSrSrS>Sjr\RS5r\RS5r\RS5r	\RS5r
SrS?S	jrS
r
SrSr\R""S
5rSrSrSrSrSrSrS@SjrSrSrS@SjrSASjrSrS>SjrSr Sr!SBSjr"SBSjr#S@Sjr$S r%S!r&S"r'S#r(S$r)SCS%jr*S&r+S'r,S@S(jr-S)r.S*r/S+r0S,r1S@S-jr2SDS.jr3SES/jr4S0r5S>S1jr6S@S2jr7S>S3jr8SFS4jr9S5r:S@S6jr;SGS7jr<S>S8jr=S9r>S@S:jr?S;r@SHS<jrAS=rBg)I�queuei�Nc��X0l[[RR	US5S5nUR5R
5nSSS5 W(d![RR	US5nO$[RR	USU-5nU=(d UUl[R"UR5Ul
XlX lSUl
SUl/UlSUlSUlSUlSUlSUlUR+S	S
5R-5n[.R0"U5n	U	bU	(aSnOSnX�lUR5S	S
5UlSUlg!,(df   GN>=f![a$ [RR	US5nGN"f=f)N�
patches.queuer��patches�patches-F�series�status�guardsr#r$�yes�nor(T)�basepathr��os�pathr��readr��OSError�vfsmodr�openerr��baseui�applieddirty�seriesdirty�added�
seriespath�
statuspath�
guardspath�activeguards�guardsdirty�configr�r�	parsebool�gitmoder�r��checkapplied)
r0r�r�r��patchdir�fh�cur�curpathr�boolmodes
          r2rX�queue.__init__�sf���
�		5��b�g�g�l�l�4�)9�:�D�A�R��g�g�i�&�&�(��B���'�'�,�,�t�Z�8���'�'�,�,�t�[�3�->�?���'���	��j�j����+�������!��� �����
�#���#���#��� ��� ����)�)�E�6�*�0�0�2���'�'��0����� ���������u�h�7��� ���AB�A���	5��g�g�l�l�4��4�G�	5�s.�*F�F�/F�#F�
F�F�*G�Gc�^�U4SjnTRRTR5R5n[	U"U55$![
a /s$f=f)Nc3�@># �UH�nURSS5n[U5S:�aUup4[[U5U5v� MAUR	5(dMXTR
R
[S5[R"U5-5 M� g7f)Nr[rgsmalformated mq status line: %s
)
r�rorSrrr��warnrr�pprint)rur��entry�nrWr0s     �r2�
parselines�!queue.applied.<locals>.parselinessz����������a�(���u�:��>�#�G�A�%�c�!�f�d�3�3��W�W�Y�Y��G�G�L�L��=�>�$�+�+�E�2�3��
�s
�AB�AB)r�r�r��
splitlines�list�FileNotFoundError)r0rrus`  r2�applied�
queue.appliedsR���
	�	��K�K�$�$�T�_�_�5�@�@�B�E��
�5�)�*�*�� �	��I�	�s�AA
�
A�Ac��URRUR5R5$![a /s$f=fr.)r�r�r�rrr\s r2�
fullseries�queue.fullseries+s=��	��;�;�#�#�D�O�O�4�?�?�A�A�� �	��I�	�s�25�A�Ac�:�UR5 UR$r.)�parseseries�seriesr\s r2r�queue.series2s�������{�{�r6c�:�UR5 UR$r.)r�seriesguardsr\s r2r�queue.seriesguards7s������� � � r6c��SR5HnXR;dM[X5 M! SUlSUlSUlSUlg)Nz&applied fullseries series seriesguardsF)r��__dict__�delattrr�r�r�r�)r0�as  r2�
invalidate�queue.invalidate<sJ��9�?�?�A�A��M�M�!��� �B�"��� ��� ��� ��r6c��[R"URUSU(+U(+S9nURS:XaSUlObURS:XaOQURS;aURS:HUlO,[R"[S5UR-5eU(aURXB5nU$)z|Return diff options tweaked for this mq use, possibly upgrading to
git format, and possibly plain and without lossy options.T)�git�
whitespace�formatchangingr%�keep)r�r�r�s,mq.git option can be auto/keep/yes/no got %s)
�patchmod�difffeatureoptsr�r�upgrader'r
�Abortr�	patchopts)r0r;�patchfn�plain�diffoptss     r2r2�queue.diffoptsEs����+�+��G�G��� �y�$�9�
���<�<�7�"�#�H��
�\�\�W�
$��
�\�\�_�
,��<�<�6�1�H�L��+�+��A�B��,�,���
���~�~�h�8�H��r6c���UR5nUR(dRURS:XaBUH<nURUS5n[	SU55UlUR5 M> U$)z}Return a copy of input diff options with git set to true if
referenced patch is a git patch and should be preserved as such.
r*�rc3�B# �UHoRS5v� M g7f)r�Nr�)r�r|s  r2r��"queue.patchopts.<locals>.<genexpr>gs���#�?E�t�O�O�M�2�2�v�s�)�copyr'rr�r��close)r0r2�patchesr0�patchfs     r2r/�queue.patchopts^sf���=�=�?���|�|����� 7�"�����W�d�3��"�#�?E�#� �������
#��r6c�X�[RR"UR/UQ76$r.)r�r�r�)r0�ps  r2r��
queue.joinms���w�w�|�|�D�I�I�*��*�*r6c�p^�U4Sjn[UR5Hup4U"U5(dMUs $ g)Nc�T>�URSS5SnUR5T:H$)N�#rgr)r�r)r�rs �r2�
matchpatch�$queue.findseries.<locals>.matchpatchqs)�������a� ��#�A��7�7�9��%�%r6)rsr)r0rrCrmr�s `   r2�
findseries�queue.findseriesps2���	&�"�$�/�/�2�H�E��!�}�}���3�r6s'\s?#([-+][^-+# \t\r\n\f][^# \t\r\n\f]*)c��/Ul/UlURH�nURS5nUS:XaUnSnOUS:XaM'USUnXSnUR	5nU(dMIX0R;a<[
R"[S5X0RUR54-5eURRU5 URRURRU55 M� g)NrBr�r6rs%s appears more than once in %s)
rrr�findrr
r.rr�r�rJ�guard_re�findall)r0r�r~r�comments     r2r�queue.parseseries|s������������A����t��A��B�w������a����"�1����B�%���K�K�M�E��u��K�K�'��+�+��<�=� �)�)�D�O�O�"<�=�>������"�"�5�)��!�!�(�(����)>�)>�w�)G�H�%!r6c��U(d[S5$SnUSnUS;a[S5UU4-$UHnXA;dM
[S5X4-s $ g)Nsguard cannot be an empty strings# 	
r�-+s*guard %r starts with invalid character: %rs!invalid character in guard %r: %rr)r0�guard�	bad_chars�firstr�s     r2�
checkguard�queue.checkguard�si����7�8�8�!�	��a����E�>��B�C���G��
��A��z��=�>�%��K�K�r6c��UH1nURU5nU(dM[R"U5e [[	U55nUR
R
SSRU5-5 XlSUl	g)Nsactive guards: %s
� T)
rRr
r.rE�setr�r3r�r�r�)r0�guardsrO�bads    r2�	setactive�queue.setactive�sk���E��/�/�%�(�C��s��k�k�#�&�&����F��$�����
�
�,�t�y�y��/@�@�A�"����r6c���URc�/UlURRUR5R	5n[
U5Hwup#URU5nU(a?URRSURUR5US-U4-5 M\URRU5 My UR$![
a /nN�f=f)Ns
%s:%d: %s
rg)r�r�r�r�r�rrsrRr�rr�rJ)r0rWr{rOrXs     r2�active�queue.active�s������$� "�D��
����)�)�$�/�/�:�@�@�B��&�f�-����o�o�e�,����G�G�L�L�&��9�9�T�_�_�5�q�1�u�c�B�C��
�%�%�,�,�U�3�.�� � � ��%�
���
�s�3C�C*�)C*c�$�UH�n[U5S:a"[R"[S5U-5eUSS;a"[R"[S5U-5eUR	USS5nU(dM|[R"U5e UR
R
SURU5nUSRUVs/sHnSU-PM
 sn5-URU'UR5 S	Ul
gs snf)
Nrhsguard %r too shortrrNs!guard %r starts with invalid charrgr6� #T)ror
r.rrRrIrGrr�rr�)r0�idxrW�grX�drops      r2�	setguards�queue.setguards�s����A��1�v��z��k�k�!�$9�":�Q�">�?�?���t�5� ��k�k�!�$H�"I�A�"M�N�N��/�/�!�A�B�%�(�C��s��k�k�#�&�&���}�}� � ��d�o�o�c�&:�;��#�c�h�h�6�/J�6�a���	�6�/J�&K�K��������������0Ks�D
c	���[U[5(aURRU5nURUnU(dgUR5nUVs/sH'oDR
S5(dMUSSU;dM%UPM) nnU(aS[R"US54$UVs/sHoDR
S5(dMUPM nnUVs/sHoDSSU;dM
UPM nnU(aZU(aS[R"US54$SSRUVs/sHn[R"U5PM sn54$g	s snfs snfs snfs snf)
N)TN�-rgFr�+TrU)Tr6)
�
isinstance�bytesrrmrr\rqrrr�)	r0r`�patchguardsrWra�exactneg�pos�exactposr>s	         r2�pushable�queue.pushable�s5���c�5�!�!��+�+�#�#�C�(�C��'�'��,���������"�
�"�!�l�l�4�&8�A�Q�q�r�U�f�_�A�{�	�
���*�+�+�H�Q�K�8�8�8�%�<�+�Q���d�);�q�+��<�"�6�s�!���e�v�o�A�s��6����Z�.�.�x��{�;�;�;��$�)�)�3�$G�3�a�Z�%6�%6�q�%9�3�$G�H�H�H���
��
=��6��%Hs0�E�9E�E�2E�E�E�+E�, E$
c���U(aURRnOURRnU(dURR(Ga[	U[
5(aURRU5nURU5upEU(axU(aqUc"U"[S5URU-5 OLU(d"U"[S5URU-5 O#U"[S5URUU4-5 U(dMU(a$U"[S5URUU4-5 gU"[S5URU-5 ggg)Ns"allowing %s - no guards in effect
s*allowing %s - no matching negative guards
sallowing %s - guarded by %s
sskipping %s - guarded by %s
s!skipping %s - no matching guards
)
r��writer�verboserhrirrmrnr)r0r`�all_patchesrqrn�whys      r2�explainpushable�queue.explainpushable�s8����G�G�M�M�E��G�G�L�L�E��$�'�'�/�/�/��#�u�%�%��k�k�'�'��,�� �M�M�#�.�M�H��x��;���@�A��+�+�c�*�+��
���L�M�"�k�k�#�.�/��
��>�?�#�{�{�3�/��5�6������:�;��;�;�s�+�S�1�2��
��?�@��+�+�c�*�+���+*r6c��^^�U4SjnTR(a2U"[[TR5TR5 STlTR
(a$U"TRTR5 STlTR(a$U"TRTR5 STlTR(a�TR5mT(aeTR5 TRRT5 TSR!U4SjTR55 SSS5 SSS5 /Tlgg!,(df   N=f!,(df   N(=f)Nc�>�TRUS5nUHnURSU-5 M UR5 g)Nswb�%s
)r�rqr9)�itemsr�r�r{r0s    �r2�	writelist�"queue.savedirty.<locals>.writelists6������T�5�)�B�������1��%���H�H�Jr6Fc3�<># �UHoTS;dM
Uv� M g7fr.r/)r��f�qrepos  �r2r��"queue.savedirty.<locals>.<genexpr>s����$�#-�a�%��+�1E���:�s��	)r��maprirr�r�rr�r�r�r�r�r�wlock�dirstate�changing_files�add)r0r{rs` @r2�	savedirty�queue.savedirtys����	�����c�%����.����@� %�D������d�o�o�t���7�$�D������d�'�'����9�$�D���:�:��J�J�L�E���[�[�]�E�N�N�$A�$A�%�$H��$�K�O�O�$�#'�:�:�$��%I�]��D�J��%I�$H��]�]�s$�.E�
)E�3E�
E	�E�
E+c�B�URS5n[RRU5(dg[R"U5 g![
aEnURR[S5[R"U5-5 SnAgSnAff=f)Nsundoserror removing undo: %s
)�sjoinr�r��exists�unlinkr�r�rrr�forcebytestr)r0rK�undo�insts    r2�
removeundo�queue.removeundost���z�z�'�"���w�w�~�~�d�#�#��	��I�I�d�O���	��G�G�L�L��.�/�*�2I�2I�$�2O�O�
�
��	�s�A�
B�;B�Bc���[U5H�nURU5n[RR	U5(dM:[
R"URX5nURR[S5U[RRU54-5 U(a[R"XV5 M�[R"XV5 M� g)Ns#saving current version of %s as %s
)rE�wjoinr�r��lexistsr�
backuppathr��noter�relpathr�copyfile�rename)r0rK�filesr8r~�absf�absorigs       r2�backup�queue.backup*s������A��:�:�a�=�D��w�w���t�$�$�!�,�,�T�W�W�d�>��������=�>��"�'�'�/�/�'�2�3�4��
��M�M�$�0��K�K��.�r6c	��Uc0nURS5n	[R"XXX5n
[R"UR
UUXXU
UU	U5	 g)Nsstat)r�r�matchr�diffordiffstatr�)r0rKr2�node1�node2r�r��changesr;�stat�ms           r2�	printdiff�queue.printdiff:s_���<��D��x�x�� ���M�M�$�+�u�3���!�!��G�G����K��K�
����
	
r6c���URX/SSUS9upxUS:XaXx4$Uc"[R"[S5U-5eURR[S5U-5 [R"X5 [URX/SSS9 Xn	[R"U	SS9n
U
(a"[R"[S	5U
-5e[USU	R5U	R5SS
9nUc[R"[S55e[URU5UR5nUR#Xd5nUR%US
5n['U5n
U
(aUR)U
5 UR+XX8US9 UR-5 UR/U5 SU4$![ a# [R"[S5U-5ef=f)NFT)�
update_status�strict�mergersapply failed for patch %ss"patch didn't work out, merging %s
��updater�)�remindsupdate returned %d��force�repo commit failedsunable to read %s�w)r�)�applyr
r.rr�rr�cleanrr�r��descriptionr�r�r�r��	Exceptionr/r�rirqr�r9r�)r0rK�mergeq�headr�revr2�errr�ctx�ret�phr;r�s              r2�mergeone�queue.mergeoneUs����:�:��'��t�3��
����!�8��8�O��9��+�+�a� <�=��E�F�F������Q�=�>��F�G�	�����
�d�g�g�t�S��u�=��i���h�h�s�5�)����+�+�a� 5�6��<�=�=��d�D�#�/�/�"3�S�X�X�Z�t�L���9��+�+�a� 5�6�7�7�	?��V�[�[��/����@�B��>�>�(�2�����U�D�)����9����L�L��"����t�t�6��:�����������1�v�
���	?��+�+�a� 4�5��=�>�>�	?�s�&%G�-G4c�t�UcXURR5up4XAR:XaU$UR(dgURSR$UR
RU5up4XAR:wa+X@RVs/sHoURPM sn;aU$U$s snf)z�return the mq handled parent or p1

In some case where mq get himself in being the parent of a merge the
appropriate parent may be p2.
(eg: an in progress merge started with mq disabled)

If no parent are managed by mq, p1 is returned.
Nr�)r��parents�nullidrrV�	changelog)r0rKr�rD�p2�xs      r2�qparents�queue.qparents}s����;��}�}�,�,�.�H�R��[�[� ��	��<�<���<�<��#�(�(�(����'�'��,���
�������'E��1����'E�!E��I��	��(Fs�B5c	�"�UR(dJSn[USSSS9nURU5 URR[	Xe55 SUlUR
U5nUGH	nURUSS9nU(d)URR[S5U-5  gURU5up�U	(dURUSS9 MpURU5nU(d)URR[S	5U-5  gUS
nURXXxX�5up�U(a+URR[	Xx55 SUlU
(dGMX�4s $ UR5 SU4$)Ns.hg.patches.merge.markers[mq]: merge markerTr��r�spatch %s does not exist
)rgN�rsspatch %s is not applied
rgr)rr�r�rJrSr�r��lookupr�rrrnru�	isappliedr�r�)r0rKr�rr2�pnamerr�rrn�reason�infor�r�s              r2�
mergepatch�queue.mergepatch�sT���|�|�0�E��$��&;�4�H�A��O�O�D�!��L�L����A� 5�6� $�D���}�}�T�"���E��M�M�%��M�5�E�������Q�;�<�u�D�E� �#�}�}�U�3��H���$�$�U��$�=���#�#�E�*�D�������Q�;�<�u�D�E� ��q�'�C��
�
�d�D��O�I�C�����#�#�K��$<�=�$(��!��s��{�"�'�(	
�����4�y�r6c	���[5n[R"URXSUSS9nS[	U5U4$![
a�nURR
[R"U5S-5 URR(d$URR[S55 URR5 S[	U5S4sSnA$SnAff=f)zHApply patchfile  to the working directory.
patchfile: name of patch filergN)rr��eolmodeTr�s*patch failed, unable to continue (try -v)
F)
rVr+rr�rr�r�rr�rrrr�	traceback)r0rK�	patchfiler��fuzzr�s      r2r�queue.patch�s������
	/��>�>���������D��$�u�+�t�,�,���	/��G�G�L�L��0�0��6��>�?��7�7�?�?������Q�M�N�O��G�G�����4��;��.�.��	/�s�/<�
C)�BC$�C)�$C)c
�0�S=n=p�UR5nUR5nURS5n
URUUUUUUUUU	U
S9
nU
R	5 UR5 U[
X�U5 URU5 $![a" U
R	5 UR5 e U
R5 UR5 e!UR5 f=f=f![
X�U5 URU5 f=f)N�qpush��	all_files�tobackup�keepchanges)r�r�transaction�_applyr9r��releaser�r��abortr$)r0rKrrr�r�rr�r�r�r�r�r�trr�s               r2r��queue.apply�s
��!� �� �� 	"��J�J�L�E��9�9�;�D��!�!�(�+�B�
��k�k����!����'�%� +�"������
���� ��
�B�e�$��O�O�D�!��"�
����
���� ��
�&��H�H�J��O�O�%����O�O�%��
�B�e�$��O�O�D�!�s4�1C6�9B�,C3�=C�
C3�C0�0C3�3C6�6Dc��U(dURnSnSnUGH�n
URU
5up�U(dURU
SS9 M0URR	[S5U
-5 [RRXm5n[URU
5UR5nURnU(dSU
-nO,U(aURS	U
-5 S
RU5nUR(a�U	(ap[R "URUU5n[#U5U	-nU(a#U
(a[%[S5[S5S
9eUR'UUSS9 U	U-
n	UR)UU5unnnUbUR+U5 U(+nO-URR[S5U
-5 S/SnnnU(azU(asUR,R/U5 UHnUR,R1USS9 M UR,R35nUR5UU5 SSS5 U(a?SU;a9USnUSnSn8"UUUUU5nUUR;5-
n[<R>"UU=(d /5nUR@RC5n[EUSUURFURHUSS9nUR@RC5U:Xa[JRL"[S55eUc[JRL"[S55eU(a$URNRX�55 U(a*URR[S55 Sn X�4$U(dGM�U(dGM�URR[S55 Sn X�4$ X�4$![a/ URR[S5U
-5 Sn X�4$f=f!,(df   GN�=f)z�returns (error, hash)

error = 1 for unable to read, 2 for patch failed, 3 for patch
fuzz. tobackup is None or a set of files to backup before they
are modified by a patch.
rNTr�sapplying %s
sunable to read %s
rgsimported patch %s
s
imported patch %sr�sconflicting local changes foundsdid you forget to qrefresh?��hint)r8spatch %s is empty
��
p1_tracked�.hgsubstate�.F)r�r�s(qpush exactly duplicates child changesetsrepository commit faileds0patch failed, rejects left in working directory
rhs)fuzz found when applying patch, stopping
�))r�rnrur��statusrr�r�r�r�r�rr�rJr�r+�changedfilesrVr�r�rr�r��changing_parents�update_file_p1rD�
setparentsr�submerge�keysr�
matchfilesr��tipr�r�r�r
r.rrS)r0rKrrr�r�rr�r�r�r�r�r�	patchnamernr�r�r�r��touched�patcherrr�r�r~rDrN�pctx�	overwrite�mergedsubstater��oldtips                               r2r��queue._apply�s���(��y�y�H������I�#�}�}�Y�7��H���$�$�Y�D�$�A���G�G�N�N�1�-�.��:�;������h�2�B�
� ����9�!5�t�~�~�F���j�j�G��0�9�<����N�N�#9�I�#E�F��*�*�W�-���{�{��&�3�3�D�G�G�T�2�F�G�!�'�l�X�5�G��;�,��@�A�!"�#A�!B����K�K��g�D�K�9�'�'�1�H�*.�*�*�T�2�*>�'��5�$��(��$�$�U�+�'�<�������Q�5�6��B�C�()�2�q��%�����]�]�3�3�D�9�"���
�
�4�4�Q�4�4�H�#����)�)�+�B��O�O�B��.�	:��^�y�8��D�z���D�z��!�	�!,�!5�!5��$��d�I�"����,�,�.�.���&�&�t�U�[�b�9�E��^�^�'�'�)�F���d�G�R�W�W�b�g�g�U�$��A��~�~�!�!�#�v�-��k�k��A�B����y��k�k�!�$?�"@�A�A�����#�#�K��$=�>��������J�K������x��	�t��������Q�L�M�N�����x��o �n�x���[�
������Q�5�6��B�C����T�x��[
��H:�9�s�%P�AQ�3P=�<P=�
Q	c��^
�U(d�UR5nU(aQUR5 URRU5 USR	U5 SSS5 SSS5 UH)n[
R"URU55 M+ /nU(a%URSUnURSU2	SUl
/n/nUH>nURU5n	U	cURSU45 M,URX�45 M@ URSS9 UH+up�U
S:waURU
	MURU5 M- U(a�U(afUVs0sHo�RUR _M nnUH9n[#S5m
UR$R'T
[)X�5U4-5 M; O:[#S5m
[*R,"SRU
4SjU555eUR/5 SUlUVs/sHo�R PM sn$!,(df   GN�=f!,(df   GN�=f![a GM�f=fs snfs snf)NTr���reverses*revision %s refers to unknown patches: %s
sunknown patches: %s
r6c3�.># �UH
nTU-v� M g7fr.r/)r�r>r1s  �r2r��!queue._cleanup.<locals>.<genexpr>�s����*D�G�q�3��7�G�s�)rr�r�r��forgetr�r�r�rrr�rErJ�sortrrWrVrr�rr	r
r.rr�)r0r:�numrevs�keep�rr>�	qfinished�unknown�sortedseriesr`r{r
r�r1s             @r2�_cleanup�queue._cleanupjs������
�
��A���W�W�Y��
�
� 9� 9�!� <��d�G�N�N�7�+�!=�Y�����I�I�d�i�i��l�+���	�����X�g�.�I����X�g�X�&� $�D�������A��/�/�!�$�C��{��#�#�R��G�,��#�#�S�H�-��	���$��'� �D�A��B�w��O�O�A�&����q�!�	!���;D�E�9�%�z�z�5�:�:�-�9��E� �A��J�K�C��G�G�L�L���c�f�
�q�'9�!9�:�!��0�1���k�k�#�(�(�*D�G�*D�"D�E�E��������(1�2�	�u�
�
�	�2�2�W!=� <��Y�Y��
)�����8F��3sA�I	�H7�!I	�7%I�( I-�I2�7
I	�I	�	
I�
I*�)I*c�`�XRSRR5n/n[U5H�upVXc:a"[R
"[
S5U-5eXnURURnUR5U:wa#[
S5n	[R
"X�-5eURURn
SHCnUR5X�-:XdM[
S5n	URRX�-5  O URU
5 M� U$)Nrsrevision %d is not manageds/cannot delete revision %d above applied patches)�[mq]: %ssimported patch %ss-patch %s finalized without changeset message
)rrVr�rsr
r.rrWr�r�r�rJ)r0rK�revs�firstrevr:r{r�r��baser1r�fmts            r2�_revpatches�queue._revpatches�s������Q��,�,�-�1�1�3������o�F�A��~��k�k�!�$A�"B�S�"H�I�I��)�C��<�<��?�'�'�D��x�x�z�T�!��J�K���k�k�#�)�,�,��L�L��O�(�(�E�:���?�?�$���3��M�N�C��G�G�N�N�3�;�/��	;�
�N�N�5�!�#&�$�r6c��UR URU[U55nURU[	U55nU(a�UR
R
SS5(a�XSn[R"UR
5nUR5U:�aUUR5R5U::a2URS5n[R"XXd5 SSS5 ggggg!,(df   g=f)Nr#r)r�qfinish)
�_phasecacherrEr
ror�r�r�newcommitphaser�rDr��advanceboundary)r0rKrr:r�oldqbase�tphaser�s        r2�finish�queue.finish�s���	
����"�"�4����6���M�M�'�3�w�<�8�	�����+�+�E�9�=�=��a�L�)�H��*�*�4�7�7�3�F��~�~��&�(�X�[�[�]�-@�-@�-B�f�-L��%�%�j�1�R��*�*�4�V�G�2�1�.M�(�	>�9�
2�1�s�C>�>
Dc�4�U(d5URS5(d[R"[S55e/nUH�nUR	USS9nURU5nU(a"[R"[S5U-5eXPR;a"[R"[S5U-5eXT;dM�URU5 M� SnURS5(a�UR(d[R"[S55e[R"XRS55nUR5 URX5n	XI-
n[U	5nURXGURS	55 g)
N�revs4qdelete requires at least one revision or patch nameTr�scannot delete applied patch %sspatch %s not in series filer�no patches appliedr*)r�r
r.rr�r�rrJrr�revrangerrror
)
r0rKr:r;�realpatchesrr�rr�
revpatchess
          r2�delete�queue.delete�s?���t�x�x��/�/��+�+��I�J��
����E��K�K��d�K�3�E��>�>�%�(�D���k�k�!�$E�"F��"N�O�O��K�K�'��k�k�!�$B�"C�e�"K�L�L��'��"�"�5�)�����8�8�F����<�<��k�k�!�$9�":�;�;��&�&�t�X�X�f�-=�>�D��I�I�K��)�)�$�5�J��%�K��*�o�G��
�
�k�D�H�H�W�,=�>r6c�
�UR(arURSRnURSRnURR	5U:wa[
R"[S55eX#4$g)z'check that working directory is at qtipr�s&working directory revision is not qtip�NN)rrVrWr�rDr
r.r)r0rK�toprs    r2�
checktoppatch�queue.checktoppatch�sf���<�<��,�,�r�"�'�'�C��L�L��$�)�)�E��}�}���!�S�(��k�k�!�$M�"N�O�O��:��r6c��[U[5(aUSSnO#URURUR4n[SU55(agUR(dUR(dUSRS5 gUR(aUSRS5 gUSRS5 g)Nr�c3�,# �UH
nSU;v� M g7f)r�Nr/)r�r�s  r2r��,queue.putsubstate2changes.<locals>.<genexpr>�s���8�C�5�~��&�C���rgr�rhr)rhr�modifiedr��removedr��any_trackedrJ)r0�
substatestater��mars    r2�putsubstate2changes�queue.putsubstate2changes�s����g�t�$�$��"�1�+�C��#�#�W�]�]�G�O�O�D�C��8�C�8�8�8�����m�&?�&?���F�M�M�.�)�
�
"�
"���F�M�M�.�)���F�M�M�.�)r6c�.�SnU(aSn[S5 [S5 UR5nU(d�[R"U5 UR(d3UR
(d"UR(dUR(a-[S5 [R"[SU-55e[U5(a-[S5 [R"[SU-55eU$[R"USS9 U$)	Nr6s, qrefresh first�#local changes found, qrefresh firsts,local changed subrepos found, qrefresh firstslocal changes foundslocal changed subrepos foundT)�	skipmerge)rr�r
�checkunfinishedr.r�r/�deletedr
r.rQ)r0rKr��refresh�	excsuffixrPs      r2�checklocalchanges�queue.checklocalchanges�s����	��+�I�
�4�5�
�=�>��K�K�M����#�#�D�)��z�z�Q�W�W��	�	�Q�Y�Y��(�)��k�k�!�$:�Y�$F�"G�H�H��T�"�"��1�2��k�k��5�	�A�B���#���
�#�#�D�D�9��r6)r�r�r�r�s..c���XR;a"[R"[S5U-5eXR	5:wa[R"[S55eSH;nURU5(dM[R"[S5U-5e SH>nX1;dM
[R"[S5[R"U5-5e g)Ns*"%s" cannot be used as the name of a patchs.patch name cannot begin or end with whitespace)�.hgs.mqs!patch name cannot begin with "%s")rBr[�
r�s(%r cannot be used in the name of a patch)�	_reservedr
r.rrrqr�bytestr)r0rW�prefixr�s    r2�checkreservedname�queue.checkreservednames����>�>�!��+�+��?�@�4�G��
��:�:�<���+�+��C�D��
�'�F����v�&�&��k�k��:�;�f�D���'�
,�A��y��k�k��A�B��&�&�q�)�*���,r6c��URU5 U(d�[RRUR	U55(aw[RRUR	U55(a"[R"[S5U-5e[R"[S5U-5egg)Ns""%s" already exists as a directoryspatch "%s" already exists)	rDr�r�r�r��isdirr
r.r)r0rWr�s   r2�checkpatchname�queue.checkpatchname%s������t�$��������	�	�$��8�8��w�w�}�}�T�Y�Y�t�_�-�-��k�k��;�<�t�C����k�k�!�$@�"A�D�"H�I�I�
9�ur6c��[R"SSUR55RS5nUSSnU(aUR	U5 OUnUnSnX@R;aURU5 U$US-
nSX54-nM1![
Ra UnNNf=f![
Ra N?f=f)z\Return a suitable filename for title, adding a suffix to make
it unique in the existing lists[\s\W_]+�_N�Krrgs%s__%d)	�rerGr�rrDr
r.rrH)r0�title�fallbackname�namebaserWr{s      r2�
makepatchname�queue.makepatchname/s����6�6�,��e�k�k�m�<�B�B�4�H���C�R�=���
(��&�&�x�0�$�H���
����?�?�*���'�'��-��
��
��F�A���}�,�D���
�;�;�
(�'��
(���{�{����s$�B
�,B)�
B&�%B&�)C�?Cc�`�U(a'U(a[R"[S55egg)Ns*cannot use both --force and --keep-changes)r
r.r)r0r�r�s   r2�checkkeepchanges�queue.checkkeepchangesHs#���[��+�+�a� M�N�O�O�!�5r6c�r^ �[R"U5nURS5nURS5nURSS5nURS5nURS5n	U	(a[R"U	5n	URSURS50SS	9n
URS
S5(aUR
U5 [U5nU(aURRS5nURS5(dURS
5(dU(a,Sn
[R"USX4U
S9nURUS9nOURUSS9n[U5nURUR 5 URUR"5 URUR$5 [R&"UU5n[)USR+55S:�a[,R."[1S55eUR3U5 UR55nUR75 UR9US5nSU-m [BRD"US9nU(a*U 4Sjn[1S5n[BRD"UUUS9nUnOU=(d T n[GUSUUU	USUS9nUc[,R."[1S55eU/URHUU&URJRM[OUU55 URQ5 SUl)SUl*UUn[WURYU5URZ5nU(aUR]U5 U	(aUR_SU	-5 URa[cURe5Rg555 URi5Rk5nUT Rk5:XaSnURmU5 URo[qU55 U(a]URsUU5nU(aURuWU5 [vRx"UUUUU
S 9nUHnURoU5 M UR{5 UR}5nU(aSUR75 URRU5 USR�U/5 SSS5 SSS5 OUR�U5 SSS5 g![:aGn[,R."[1S5U[<R>"UR@54-5eSnAff=f!,(df   N�=f!,(df   N�=f! UR�5 e=f![�aa URYU5n[�R�"U5 e![:a* UR�R�[1S!5U-5 ef=ff=f!,(df   g=f)"zDoptions:
msg: a string or a no-argument function returning a string
�msg�edit�editformsmq.qnew�userrir$T�r1s	checknamer�sincludesexcludec�D�US:wa[R"SX4-5eg)Nr�r�)r
r.)r~r1s  r2�badfn�queue.new.<locals>.badfn`s%����&��+�+�i�1�(�&:�;�;�'r6N)r]�r�r�rgscannot manage merge changesetsr�scannot write patch "%s": %sr
��editformc�6>�UR5(aU$T$r.)r�)�desc�
defaultmsgs �r2�
finishdesc�queue.new.<locals>.finishdescs����;�;�=�=�#'�K�#-�-r6�+Leave message empty to use default message.�re�extramsgra�r�r��editorr��%d %dr6)r�r�r�r;serror unlinking %s
)Hr�byteskwargsr�r�	parsedater2rHrQr��	get_entryrr�r�r<r�extendr.r�r/r�ror�r
r.rr(�
fullseriesendr�r�r�r�
strtolocal�strerrorr
�getcommiteditorr�rrrJrSrr�r�r�r�r�r�r�r�rrDrVr�rr�rqrir�r3r+�diffr9rr�r��rollbackr�r�r�r�rr�)!r0rKr0�patsr;r1�editrar�r�r2rMr1r]r�r��commitfilesrtr>�erkreri�	commitmsgr�nctxr�r��chunks�chunkr�	patchpathrds!                                @r2�new�	queue.newLs����#�#�D�)���h�h�v����x�x�� ���8�8�K��4���x�x�� ���x�x�� ����%�%�d�+�D��=�=�&�$�(�(�6�*:�!;�4�=�H���8�8�L�$�'�'�����(� ��&��� �M�M�3�3�N�C�M��8�8�J���4�8�8�J�#7�#7�4�
<��M�M�$�t�*�d��F�E��k�k��k�.�G��,�,�T��,�>�G��8�n�����7�+�+�,����7�=�=�)����7�?�?�+��"�"�4��5���t�D�z�!�!�#�$�q�(��+�+�a� A�B�C�C����4� ��#�#�%��
�Z�Z�\�
��K�K���.��O
�(�7�2�
� �0�0�(�C���.� !�!O�P�H�$�4�4�#-�!)�!)��F�
!$�I� #� 1�z�I���������!�	���9��+�+�a�(=�&>�?�?�&�6=�Y�D�O�O�F�6�2��L�L�'�'��A�w�(?�@��$�$�&�'+�D�$�(,�D�%���7�D�$�T�Y�Y�w�%7����H�B���
�
�4�(���
�
�8�d�?�3��L�L��T�W�W�Y�^�^�%5�!6�7��*�*�,�2�2�4�C��j�.�.�0�0�!���M�M�#�&��G�G�E�"�I�&�"�!%���t�Q�!7��#� �4�4�]�G�L�!)��� �"(�"#�$+�!)�"��&,�E��G�G�E�N�&,��G�G�I��
�
��A���W�W�Y��
�
�(A�(A�!�(D��d�G�K�K��	�2�)E�Y�Y��
�O�O�D�!�s�\���
��k�k��4�5��� 3� 3�A�J�J� ?�@�A����
��R)E�(D��Y�Y����M�M�O����
� �I�I�g�.�	�I��I�I�i�(����I��G�G�L�L��#:�!;�i�!G�H��I��	
��e�\�s��X(�T.�(BV:�0G V$�V�,V�V�
V$�X(�.
U?�8AU:�:U?�?X(�
V�V�
V!	�V$� X(�!V$�$V7�7V:�:X%�W-�,X%�-1X!�X%� X!�!X%�%X(�(
X6c��[UR5H/up#URU:XdMX#RUR4s $ g)zreturns (index, rev, patch)N)rsrrWrV)r0rr{r#s    r2r��queue.isapplied�s:���d�l�l�+�D�A��v�v����6�6�1�6�6�*�*�,�r6c�D^�U4SjnUTR;aU$[RRTR	U55(Gdo[U5n[
TR5*Us=::a[
TR5:aO OTRU$U(GdU"U5nU(aU$URS5nUS:�aaU"USU5nU(aOTRRU5n[XS-S=(d S5nXx-
S:�aTRXx-
$URS5n	U	S:�atU"USU	5nU(abTRRU5n[XS-S=(d S5nXx-[
TR5:aTRXx-$[R"[S5U-5e![[4a GNQf=f![[4a N�f=f![[4a Naf=f)Nc�
>�UTR;aU$TRVs/sHoU;dM
UPM nn[U5S:�aOTRR[	S5U-5 UH!nTRRSU-5 M# gU(aUS$TR(aMTR
(a<US:Xa!TRTR
S5S-
$US:XaTRS$gs snf)Nrgspatch name "%s" is ambiguous:
s  %s
r�qtipT�qbase)rror�rrr�	seriesend)rPr��matchesr�r0s    �r2�partialname�!queue.lookup.<locals>.partialname�s�����D�K�K����"&�+�+�8�+�Q�a��q�+�G�8��7�|�a�������Q�A�B�Q�F�G� �A��G�G�L�L��Q��/�!����q�z�!��{�{�t�|�|���<��;�;�t�~�~�d�';�a�'?�@�@���=��;�;�q�>�)���9s
�	D�Drfrrgrgspatch %s not in series)rr�r��isfiler��intror��
OverflowError�rfindrmr
r.r)
r0rr�r��sno�res�minusr{�off�pluss
`         r2r��queue.lookup�s����	�$�D�K�K���L��w�w�~�~�d�i�i��.�/�/�
,��%�j������$�$��>�c�$�+�+�.>�>��;�;�s�+�+�?��!�%�(����J����D�)���A�:�%�e�F�U�m�4�C�� �K�K�-�-�c�2��<�"%�e�A�I�K�&8�&=�A�">�C� !�w�!�|�'+�{�{�1�7�';� ;� ,��{�{�4�(���1�9�%�e�E�T�l�3�C�� �K�K�-�-�c�2��<�"%�e�1�H�J�&7�&<�1�"=�C� !�w��T�[�[�)9�9�'+�{�{�1�7�';� ;� :��k�k�!�5�6��>�?�?��E�
�.�
��
��"!+�M�:�!� �!��!+�M�:�!� �!�s6�G�?G6�7H�G3�2G3�6H	�H	�H�Hc
�$�URX�5 UR5nUR5 /nUR5R	5Hn
URU
5 M U(d
UR/nURR5U;a+U(d$URR[S55 UR(d.URR[S55 SSS5 gU(Ga8URU5nURU5nU(aPUS[!UR"5S-
:�a1URR[S5U-5 SSS5 gUR%U5unnU(aPURR'U5UR)5:a"[*R,"[S5U-5eO�U(a[S5U-nO[S5nURR[S	5UU4-5 SSS5 gU(aSURS
nURU5(a.URR[S55 SSS5 gUR)5nU[!UR5:Xa.URR[S55 SSS5 gU(d U
(dUR/XR"S
9 U(GaU
(a[*R,"[S55eU(a[*R,"[S55eUR"(a[*R,"[S55eURUn[1UR3U5UR45R6nU(d"[*R,"[S5U-5eUUUS:Xd[8R:"UU5 U(Ga-U(d[*R,"[S55e[=UR>5H8unnUR@RCUS5SURU:XdM8 O [=UR>WS5H+unnUR@RCUS5SU:XdM+ O UW-nU[!UR>5:deUR>UnUR>U	UR>REUU5 URG5 SUl$SUl%US:�aURMU5 U(dURUnUS-nOURR'UU5S-n[O5nU	(dU(dU
(a�UR/USS9nU
(aCUR;URPURR-URT-URV-5 O(UR;URPURR-5 URUUn[O5nU(aURYXUU5nOUR[UUUUUU
S9nUR"(dUSsSSS5 $UR"S
Rfn US(a3USS:�a*[S5n!URRiU!U -5 O'URRi[S5U -5 USsSSS5 $![\a e URR[S55 [^R`"URUUSSS9 UH/nUUR;dMURbReUSS9 M1 URR[S55 e=f!,(df   g=f)Ns"(working directory not at a head)
sno patches in series
rrgs qpush: %s is already at the top
s#cannot push to a previous patch: %ss
guarded by %ssno matching guardsscannot push '%s' - %s
r�s"all patches are currently applied
s#patch series already fully applied
)r:s.cannot use --exact and --keep-changes togethers&cannot use --exact and --move togethers(cannot push --exact with applied patchess"%s does not have a parent recordedr�s please specify the patch to moveTr�r�s!cleaning up working directory...
)�	no_backup��
ignoremissingsdone
s0errors during apply, please fix and qrefresh %s
�now at: %s
)5rTr2r��	branchmap�	iterheadsrpr�r�rDr�r�rrrr�r�rorrnrmr�r
r.r<r�r�r�r�rr�rsrrIr�rtrr�r�r(rVr.r�r/r9r�r�r�r
�revert�wvfs�
unlinkpathrWrq)"r0rKrr�rr��all�move�exact�nobackupr�r2�heads�hsr�rnr�rx�root�target�	fullstart�rpnr{rm�	fullpatch�endr�r�rPr�r�r~r'r1s"                                  r2�push�
queue.pushs���	
���k�1��=�=�?��
�Z�Z�\��E��n�n�&�0�0�2�����R� �3�����
���}�}���!��.�u������q�!G�H�I��;�;������Q�8�9�:���\�"����E�*���~�~�e�,���D��G�s�4�<�<�'8�1�'<�<��G�G�L�L��>�?�%�G���1�\�4$(�=�=��#7� ��&���{�{�(�(��/�$�.�.�2B�B�#�k�k��D�E��M���C�
�!"�#3�!4�v�!=��!"�#8�!9���G�G�L�L��4�5����G���Q�\�R����B����>�>�%�(�(��G�G�L�L��#I�!J�K��[�\�h�N�N�$�E���D�K�K�(�(������Q�F�G�H��o�\�p���&�&�t�\�\�&�B����+�+��K�L�����+�+��C�D����<�<��+�+��E�F����{�{�5�)��$�T�Y�Y�t�_�d�n�n�E�L�L����+�+��?�@�4�G����F�|�t�D�z�1��I�I�d�F�+����+�+�a�(K�&L�M�M�&/����&@�N�I�s��}�}�*�*�3��2�1�5����U�9K�K��'A�(����	�
�(C�D�F�A�s��}�}�*�*�3��2�1�5��>��E�"�A�
���s�4�?�?�3�3�3�3� �O�O�E�2�	��O�O�E�*����&�&�y�)�<�� � �"�#'�� � $�D���q�y��"�"�4�(�����E�*���a�i���k�k�'�'��u�5��9���u�H���;��/�/��D�/�A����O�O���� �,�,�'� �.�.�)�!�.�.�)���O�O�F�O�O�f�l�l�$B�C����E�#�&�A���I�
���/�/�$��8�D�C��*�*����"+�!)�$/�
%��C�4�<�<��1�v�w�\�x�,�,�r�"�'�'�C��1�v�#�a�&�1�*��L�M�����
�
�c�C�i�(����
�
�a��0�3�6�7��q�6�E�\��P"�
��
������Q�D�E�F�����G�G����J�"�	�#�A���
�
�-��	�	�,�,�Q�d�,�C�#������Q�y�\�*���q�\�sp�C`�A8`�B6`�A`�!A`�8F,`�(A`�/F`�6]�`�]�%`�B`�A'_>�;A_>�>`�
`c	�^�URXs5 UR5 U(acURU5nU(dURU5nURU5nU(d"[R
"[
S5U-5eUR(d4URR[
S55 U(+sSSS5 $U(aSn	O(U(a	WSS-n	O[UR5S-
n	U	[UR5:�a1URR[
S5U-5 SSS5 gU(dvURR5mURV
s/sHo�RPM nn
TH0nX�;dM
URR[
S55 SnM2 OSUSR5Vs/sHo�R5PM snm[U4SjURU	S55n[5n
U(a�UR!X=(d US	9nU(a0U(d(U
R#UR$UR&-5 OIU(aBU
R#UR$UR&-UR(-UR*-5 SUl[UR5nURU	RnUR.R1U5nUURSR/:wa[R
"[
S55eXRSRR75(d'[R
"[
S
5[
S5S9eU(Ga�UR9UU5nUUnUR;US5nUR$UR&UR(UR*4unnnnU(a[R
"[
S55e[UU-U-5U
-n
U(a&U
(a[R
"[
S55eUR=X5 URR?U5 UH8nUR@RCUSS9 URREUSSS9 M: UU-HRnUUnURGUURI5URK55 URREUSSS9 MT URMUURN5 SSS5 [QURX�5H4nURR;[
S5URR-5 M6 URX�2	[UURUU/SSS9 USRVRY5H)unnUSR[U5R]U5 M+ UR(a?URR_[
S5URSRR-5 O$URR_[
S55 SSS5 gs sn
fs snf![R2a. [5U5n[R
"[
S
5U-5ef=f!,(df   GN�=f!,(df   g=f)Nspatch %s is not applied�no patches applied
rrgsqpop: %s is already at the top
sqpop: forcing dirstate update
Tc3�@># �UHoRT;v� M g7fr.)rV)r�r
r�s  �r2r��queue.pop.<locals>.<genexpr>�s�����7K�e�J�J�'�)�7K�s�r�strying to pop unknown node %sr�s?popping would remove a revision not managed by this patch queues&popping would remove a public revision� see 'hg help phases' for detailsr�r�s!deletions found between repo revsr6r�F�r��
wc_trackedspopping %s
r�r�spatch queue now empty
)0rTr�r�r�r
r.rrr�rror�r�rVr�rVr<r�r.r�r/r9r�r�r��LookupErrorr	�mutabler�r�r�r�r�r��update_file�wwrite�data�flagsr�r��reversedrWrrFrzrGr�rq)r0rKrr�r�r�r�r�r�rxr��rrr>r�rPr�r�r�rV�qpr��str�r#r�dr~�fctx�stater�s                             @r2�pop�	queue.pop�s|���	
���k�1�
�Z�Z�\���~�~�e�,��� �K�K��.�E��~�~�e�,����+�+�a�(B�&C�e�&K�L�L��<�<������Q�6�7�8��w��\� �����Q��!����D�L�L�)�A�-����D�L�L�)�)������Q�B�C�e�K�L��3�\�6��-�-�/�/�1��&*�l�l�3�l��f�f�l��3� �A��w������Q�'I�%J�K�!%��!�
.2�$�Z�-?�-?�-A�B�-A��6�6�8�-A�B����7;�|�|�E�F�7K�����u�H���*�*�4�7K��*�L���#� ����
�
�Q�W�W�(<�=�� ��O�O��
�
�Q�W�W�,�q�y�y�8�1�9�9�D��!%�D���d�l�l�#�C��,�,�u�%�*�*�C�
N����,�,�S�1��
����b�)�.�.�/�/��k�k��7�������R�(�-�-�.�6�6�8�8��k�k��?�@��>�?�����]�]�4��-���2�h���[�[��T�*���[�[�"�(�(�B�J�J��
�
�J�
��1�a����+�+�a�(L�&M�N�N��q�1�u�q�y�>�H�4���8��+�+�a�(N�&O�P�P����D�+��]�]�3�3�D�9����	�	�,�,�Q�d�,�C��
�
�1�1��%�E�2���
��U��"�1�v�����A�t�y�y�{�D�J�J�L�A��
�
�1�1��$�4�2��#��O�O�B����4�:�"�$�,�,�u�"9�:�������q��1�E�J�J�>�?�;����U�Y�'��$�'�'�4�#��u�U�C� ��J�/�/�5�5�7���5��T�
���q�!�%�%�e�,�8��|�|����
�
�a��0�4�<�<��3C�3H�3H�H�I����
�
�a� :�;�<�]�\��:4��C��,�$�$�
N��S�z���k�k�!�$D�"E��"L�M�M�
N��>:�9��q�\�ss�B&[=�A3[=�/[=�>Z�
[=�!A[=�!Z!�:D[=�>Z&�F	[=�"B6[+�D;[=�
[=�&A[(�([=�+
[:	�5[=�=
\c	�"�URU5upEU(d%URR[S55 gUR	X5nURS5(aSUp�OUSp�UR
X55n	URXXxX#S9 g)Nr�sreverse)r�r;)r(r�rqrr�r�r2r�)
r0rKrwr;r'rr�r�r�r2s
          r2ru�
queue.diffDs{���'�'��-�
����G�G�M�M�!�3�4�5��
�]�]�4�
%���8�8�J�����5��t�5��=�=��-�����t�u�4��Kr6c�(^>^?�[R"U5nUR(d%URR	[S55 gUR
SS5R5nUR
S5nUR
SS5nUR
S5nUR
S	5nU(aS
[R"U5-nUR5n	URU5 URSRURSRp�URRU
5U
/:wa[ R""[S55eXR%5(d'[ R""[S
5[S5S9eURR'U
5nUR)X5n
[+X5nU(aUR,R/S5n[1UR3U5UR45m?UR7SUR
S50USS9nU(aT?R9U5 U(aT?R;U5 T?R=[?U
55 URAUSSS9nURCX�5nURDURFURHnnnXnUSSn[JRL"USX#5nUR
S5(aG[JRN"UUU-U-URQ5-5n[JRL"USUS9nO[JRR"U5nURCUS9nURDURFURHURT4unnnn[WU5n[WU5n[WU5nUHnUU;dMURYU5 M UH>nUU;a$UR[U5 URYU5 M-URYU5 M@ /n UU-HOnUU;a$UR[U5 U R]U5 M-UR_U5 URYU5 MQ [aU5nU5n[aU5nURCU
US9nURDURFURHURT4un!n"n#n$[WU!U"-U#-U$-5n%UUU4Vs/sHnURcU%5PM n&n[WU5n'U&HnU'ReU5 M [JRN"UU'5nXRg5n(UR,RiU5 URj(dURl(Ga.0n)UHmn*UR,RoU*5n+U+b1U+UR,;a!U)RqU+/5R]U*5 UR,RsU*SSS9 Mo UHsn*UU*Ru5n+U+(aKU)RqU+/5RwU)R
U*/55 U*U;aU)U+R]U*5 U*U);dMpU)U*	Mu U)Ry5H+un+n,U,Hn*UR,R{U+U*5 M! M- OjUHn*UR,RsU*SSS9 M  [aUR,R}55Hn-UR,R{SU-5 M! UHn-UR,RU-SS9 M /n[�[�U5S-
SS5H,n.U"UU.5(aMUR]UU.5 UU.	M. UHn-UR,RU-SS9 M UHn-UR,RU-SS9 M U Hn-UR,RU-SS9 M T?R�=(d UR�5n/XR�5n0UR�"U6 UR,R	UR�55 URR�5 SUlG[�URX/SSS9 SSS5 SU-m>[�R�"US9n1U(aMU>U?4Sjn2[S 5n3[�R�"U2U3US!9n1U=(d S"R3T?R�5n4OJU(d0T?R�(dT>n4O/S"R3T?R�5n4OUn4T?R�U5 S=n5n6UR�5n5UR�S#5n6[�UW0U4W/T?R�USU1S$9n7U&Vs/sHn[aU5PM n8nU(aUR�WU85 [�R�"XU8US%9n9[�T?5n:U:(aUR	U:5 U9Hn;UR	U;5 M UR�5 UR�n<U<R�UU6U(V=s/sHn=U=U74PM	 sn=5 U6R�5 URR][�U7U55 [�R�"U6U55 U	R�5 UR�U5 gs snf!,(df   GND=fs snfs sn=f![�R�"U6U55 f=f! UR,RiU5 XS&nUR,R�UR5UR�55 SSS5 O!,(df   O=fUR�5 URR�[S'55 e=f!U	R�5 UR�U5 f=f)(Nr�rgrWr6rXrYsmq.qrefreshrZrirlr�s(cannot qrefresh a revision with childrenscannot qrefresh public revisionr�r�r�r$Tr[r�)�
atomictemp�short�r;r_Fr�r�r�r
r`c�X>�UR5(aTRU5 U$T$r.)r�r�)rcrdr�s ��r2re�!queue.refresh.<locals>.finishdescs%����;�;�=�=��M�M�$�/�#'�K�)�)r6rgrhr�r#rj)r�r;rsNqrefresh interrupted while patch was popped! (revert --all, qpush to recover)
)`rrmrr�rqrr�r�rrnr�r(rVrWr�r�r
r.r�r�r�rQr�ror�r�r�r2r�r�r�rr�r�r.r�r/rr�r�r��matchallr9rVr��removerJ�discardr�intersectionr��	bookmarksr�r'r-�copied�
setdefaultr��
copysourcerprzr8�copiesr�rpror�r�r��currenttransactionr�r�rr
rtr�r�rr�r�r�r3r+rurir9�
_bookmarks�applychangesrS�lockmodr��rebuild�manifestr�rr�)@r0rKrwr;r1rxra�newuser�newdater�r'r0�cparents�patchparentrMr1r2r;r��mm�aa�ddr��aaa�match1r��stbr�r#rr�r�r�cm�ca�cr�cd�
allmatches�refreshchangesr��bmlistr��dst�src�dstsr~r{r��oldphaserkrerir�rr�rr�r}r�r~�marks�bmrdr�s@                                                              @@r2r:�
queue.refreshQs�	����#�#�D�)���|�|��G�G�M�M�!�3�4�5���h�h�v�s�#�*�*�,���x�x�� ���8�8�K��8���(�(�7�#���(�(�7�#�����!3�!3�G�!<�<�G��
�
���z	"����t�$�"�l�l�2�.�3�3�T�\�\�"�5E�5J�5J�'��~�~�#�#�C�(�S�E�1��k�k��A�B����9�$�$�&�&��k�k��8�9��>�?���
�~�~�-�-�c�2�H��-�-��2�K�$�T�7�H�� $�
�
� 7� 7�� G�
��T�Y�Y�w�/����@�B��}�}�����&�)�*�G�4�%��H���
�
�7�#���
�
�7�#��L�L��[�)�*��[�[��$�4�[�@�F����[�.�B����b�h�h��
�
�B��B��)�C��Q�%�C��]�]�4��:�t�:�F��x�x��!�!� �*�*�4��b��2������1N�O�� ���t�D�z��=���(�(��.���+�+�E�+�*�C����s�y�y�#�+�+�s�{�{�J�J�A�q�!�Q��R��B��R��B��R��B����B�;��F�F�1�I������7��I�I�a�L��F�F�1�I��F�F�1�I���F���U����7��I�I�a�L��M�M�!�$���J�J�q�M����q�	���R��A��R��A��R��A����[���7�B��[�[�"�(�(�B�J�J��
�
�J�N�B��B���R�"�W�r�\�B�.�/�J�CE�r�2�,�O�,�Q�a�n�n�Z�8�,�N�O���M�E�#�����Q��$��&�&�t�U�3�E��Y�(�(�*�F����/�/��5��<�<�8�#3�#3�#3��F� ��"�m�m�2�2�3�7���?�s�d�m�m�/C�"�-�-�c�2�6�=�=�c�B��
�
�1�1��E�d�2��
 !� #��!�#�h�1�1�3���"�-�-�c�2�6�=�=� &�
�
�3�� 3�� #�a�x� &�s�� 2� 2�3� 7��&�=� &�s�� #�&,�\�\�^�	��T�#'�C� �M�M�.�.�s�C�8�$(�&4� !���
�
�1�1��E�d�2�� !�
"�$�-�-�"6�"6�"8�9���
�
�*�*�4��3�:��A��M�M�0�0��t�0�D�����s�1�v��z�2�r�2�A�!�!�A�$�<�<��	�	�!�A�$���a�D�3��A��M�M�0�0��t�0�D���A��M�M�0�0��t�0�D���A��M�M�0�0��u�0�E� ��w�w�,�#�(�(�*���9�?�?�,������*��
�
�#�#�D�$;�$;�$=�>���� � �"�$(��!��d�g�g�t�U�5��G�y6�|N
�)�7�2�
� �0�0�(�C���*� !�!O�P�H�$�4�4�#-�!)�!)��F�
"�;�U�Z�Z��
�
�%;�G���:�:�",��"'�*�*�R�Z�Z�"8��!�G��M�M�#�&�!� ��r�!.��9�9�;�D��)�)�%�0�B�!�� ������#�"�%�	�A�+9�9�.�Q��a��.�A�9���0�0���B�%�]�]��1�8��F� %�R�y�H�����X�.�!'�����U�+�"(��L�L�N� �O�O�E��&�&�t�R�F�1K�F�b�2�q�'�F�1K�L��H�H�J��L�L�'�'��A�w�(?�@��O�O�B��-�
�M�M�O��O�O�D�!��qP�6�5��Z:��2L��
�O�O�B��-��
��]�]�3�3�D�9���{�+�C��M�M�)�)�#�(�(�*�c�l�l�n�E�:�9�9����� �������>������M�M�O��O�O�D�!�s��%K1o.�D2o.�l�'A+o.�Dl�Dl�!D)l�
o.�B;l?�?l#�l�#Bl#�>l�<l#�l?�o.�
l�o.�
l#�#l<�<l?�?o+�An%�	o+�%
n3	�/<o+�+o.�.#pc�J�U(dM[RRUR5(a[R"[S55e[R"UR5 U(aURSS9$g![a U(deN+f=f)Ns$patch queue directory already existsT��create)	r�r�rGr
r.r�mkdir�FileExistsErrorr)r0rKr�s   r2�init�
queue.init[s|���"�'�'�-�-��	�	�2�2��+�+�a� G�H�I�I�	��H�H�T�Y�Y����:�:�T�:�*�*����	����	�s� B
�
B"�!B"c���U(a1X R;a"[R"[S5U-5eU(dUR	5nOURRU5S-n/n[
U[UR55HMnURU5upgU(aURXPRU45 URU5 MO U$)N�patch %s is not in series filerg)rr
r.rr�rmrprornrJru)r0rKrrx�	unappliedr{rnr�s        r2r��queue.unappliedfs����U�+�+�-��+�+�a� A�B�U�J�K�K���N�N�$�E��K�K�%�%�e�,�q�0�E��	��u�c�$�+�+�.�/�A�#�}�}�Q�/��H��� � �!�[�[��^�!4�5�� � ��#�	0�
�r6c�V^^�UU4SjnTRVs1sHo�RiM n	nUc[TR5U-
nU(d�TRR
(a[SX4-S-
-5n
[
X3U-5HznTRUnX�;aSup�O"TRU5S(aSup�OSup�SnTRR
(aS	W
X�4-nOU(aX]:waMqU"X�U5 M| g/n[R"TR5H�unnnU[TR5S-SnUH�n[RRUU5nUTR;dM5UTRTRTR4;dM^URS
5(aMvUR!U5 M� M� [#U5H5nTRR
=(a S=(d SnU"UUS5 M7 gs snf)
Nc��>�U(aTRRU5 T(Ga[TRU5TR5nUR
(aUR
SnOSnTRR
5(aTTRR5[U5-
[U5-
S-
nUS:�a[R"XE5nOSnTRRUSU-S9 TRRS5 TRRUSU-S9 OTRRUSU-S9 TRRS5 g)	Nrr6rhsqseries.��labels: sqseries.message.r�)r�rqr�r�r�r��	formatted�	termwidthror�ellipsis)�pfxr�r�r�r1�widthr0�summarys      ��r2�displayname�"queue.qseries.<locals>.displayname~s�������
�
�c�"�� ����9�!5�t�~�~�F���:�:��*�*�Q�-�C��C��7�7�$�$�&�&� �G�G�-�-�/�#�c�(�:�S��^�K�a�O�E��q�y�(�1�1�#�=��!�����
�
�i�{�U�/B�
�C����
�
�e�$����
�
�c�)<�u�)D�
�E����
�
�i�{�U�/B�
�C��G�G�M�M�%� r6�%drg)�A�appliedr)�U�	unapplied)�G�guardedr6s%*d %s r�sD �missing)rrWrorr�rrrprnr��walkr�r�r�r�r�rqrJrE)r0rK�missingrx�lengthr�rrr>r�idxwidthr{r�charr�r�	msng_listr��dirsr�r�r~�flr�s`     `                 r2�qseries�
queue.qseriesus����	!�.$(�<�<�0�<�a�6�6�<��0��>�����%��-�F���w�w����u����(:�;�<���5�&�.�1�����A����#�"2�K�D�%��]�]�1�%�a�(�"4�K�D�%�"2�K�D����7�7�?�?�$��!�':�:�C������C��.�2��I�%'�W�W�T�Y�Y�%7�!��d�E���T�Y�Y��!�+�-�.���A������a��+�B��$�+�+�-�� �O�O� �O�O� �O�O� ��!#�
�
�d� 3� 3�!�(�(��,��&8��I�&���g�g�o�o�/�%�6�3���C��J�/�'��K1s�H&c�&�URS:Xagg)N�.hg.patches.save.lineT)rW)r0r�s  r2�
issaveline�queue.issaveline�s���6�6�-�-��.r6c�0�URR5nURR(a�UR(dwURRUlUR	SSURRSS5S5 UR	SSURRSS5S5 U(d3[RRURS55(a[R"X RUS9$g)Nr�s	formattedsmqpagersinteractiver?)r�r�)r�r8r��pageractiver�r�r�r�rGr�r�
repository)r0r�r�s   r2r�queue.qrepo�s���
�[�[�
�
�
���7�7���r�~�~�!�W�W�0�0�B�N��L�L��������u�l�3��	
�
�L�L��������u�n�5��	
��R�W�W�]�]�4�9�9�V�#4�5�5��=�=��)�)�F�C�C�6r6c�<�XR5R5nUR5nSn/n/n	Sn
[U5H�up�US:XaUS-nMUR	S5(aAUR5n
U
SSR
S5n
U
Vs/sHn[U5PM n
nMiUcMnUR5n
U
R
SS5unnU(a&U	R[[U5U55 M�URU
5 M� Uc%URR[S55 gURR[S5US	-5 X�l
X�lUR5 S
UlS
UlUR$R'5nU(a�UU;a%URR[S55 OlURR[S5[)U5-5 UR*R-5nUU;aS
nOS
n[URX/US
S9 U
(a�URR[S5[)U
S	5[)U
S54-5 U(a{URR/[S55 UR15nU(d%URR[S55 g[2R4"UU
S	5 gggs snf)NsPatch Data:rgs	Dirstate:r�rUr[sno saved patch data found
srestoring status: %s
rTs*save entry has children, leaving it alone
sremoving save entry %s
Fr�s&saved queue repository parents: %s %s
supdating queue directory
s unable to load queue repository
)r�rrrsrqr�r�rrJrSr�rrrrrr�r�r�r�r	r�r�r�rrr�)r0rKr�r#�qupdatercru�	datastartrr�qppr{r|r�r�rrWr��ppr�rs                     r2�restore�
queue.restore�s{���y�$�$�&�,�,�.�����!���	������� ��'�G�A��~�%���E�	�����.�.��K�K�M���b�c�F�L�L��&��'(�)�q�!�s�1�v�q��)���&��K�K�M���'�'�$��*���4���N�N�;�s�1�v�t�#<�=��M�M�!�$�(����G�G�L�L��9�:�;�������Q�0�1�E�!�H�<�=� ����������� ������$�$�&����%�������Q�M�N�O������Q�:�;�e�C�j�H�I��]�]�*�*�,���"�9�!�F�"�F��d�g�g�t�U�6�%�H���G�G�L�L��<�=���Q��=�%��A��-�0�1�
�������q�!>�?�@��J�J�L����G�G�L�L��#G�!H�I������C��F�#�
���;*s�Lc��UR(d%URR[S55 gUR	URS5(a%URR[S55 gU(d[S5nOSURS5-nUR
5nU(a<URR5nUS[US	5[US54--
nUS
-
nUSRSUR55-
nUSRS
UR55-
nURUSS9nU(d%URR[S55 gURR[US55 SUlUR!U5 g)Ns"save: no patches applied, exiting
rgr�sstatus is already saved
shg patches saved stateshg patches: s
s
Dirstate: %s %srs

Patch Data:
r6c3�,# �UH
nSU-v� M g7f)ryNr/�r�r�s  r2r��queue.save.<locals>.<genexpr>	s���:�\���!��\�r-c3�,# �UH
nSU-v� M g7f)s:%s
Nr/r-s  r2r�r. 	s���>�o���1��o�r-Tr�srepo commit failed
r)rr�rrrr�rr�r�rr�rr�rJrSr�r�)r0rKr1rr(rs      r2�save�
queue.save	sZ���|�|��G�G�L�L��A�B�C���?�?�4�<�<��+�,�,��G�G�L�L��7�8�9����-�.�C�!�C�J�J�w�$7�7�C��J�J�L������#�#�%�B��'�3�r�!�u�:�s�2�a�5�z�*B�B�B�C��#�#���s�x�x�:�T�\�\�:�:�:���s�x�x�>�d�o�o�>�>�>���K�K��4�K�(����G�G�L�L��2�3�4�������K��+C�D�E� �������r6c��UR(aGURSRnURU5nUc[UR5$US-$g)Nr�rgr)rrWrEror)r0r>r�s   r2rq�queue.fullseriesend)	sK���<�<����R� �%�%�A��/�/�!�$�C��{��4�?�?�+�+���7�N�r6c��^^�SnUU4SjnTR(a@TRSRnTRRU5nU"US-5$U"U5$![a gf=f)z�If all_patches is False, return the index of the next pushable patch
in the series, or the series length. If all_patches is True, return the
index of the first patch past the last applied one.
rc�>�T(dU[TR5:�aU$[U[TR55H2nTRU5up#U(aUs $TR	U5 M4 [TR5$r.)rorrprnru)rxr{r>r�rsr0s    ��r2�	nextpatch�"queue.seriesend.<locals>.nextpatch9	sl����e�s�4�;�;�'7�7����5�#�d�k�k�"2�3�� �M�M�!�,�	����H��$�$�Q�'�	4�
�t�{�{�#�#r6r�rg)rrWrrmr�)r0rsr�r6r>s``   r2r��queue.seriesend2	st���
��	$��<�<����R� �%�%�A�
��k�k�'�'��*���S�1�W�%�%���~����
��
�s�A%�%
A2�1A2c��URURnURR(dUnU$SURRU5-S-U-nU$)Nr
rU)rrWr�rrrrm)r0rmr�r>s    r2�appliedname�queue.appliednameL	sW�����U�#�(�(���w�w����A�������*�*�5�1�1�T�9�E�A�A��r6c
��^�U4SjnU(aLU(a[R"[S55e[R"X5nURSS9 O&U(d[R"[S55e[
U5S:�d[
U5S:�a&U(a[R"[S55e/n	U(Ga�URRURRUR555n
[
U
5S:�a0[R"[S5UR5-5eTR(Ga"URRUR55nUTRVs/sHo�RPM sn;a0[R"[S	5UR5-5eU
TRS
R/:wa0[R"[S5UR5-5eURRTRSR5nURRU5Sn
O_X�RRUR55/:wa0[R"[S
5UR5-5eSn
TRSU05nUR!S5nUGHGnUUR#5(d*[R"[S5U-[S5S9eURRU5unnURRU5nU[$:wa"[R"[S5U-5eU
(a*U
U:wa$[R"[S5UU
4-5eUn
U(d9TR'UUR)5R+SS5SSU-5nU"U5 TR-X65 TR.R1SU5 TR3US5n[4R6"X/UUS9 SSS5 [9X�5nTRR1SU5 TR:R=U5 U	R=U5 SnU(aHUR>RASS5(a'[BRD"X[BRFU/5 TRI5 STl%STl&GMJ SSS5 [OU5GHunnU(Ga.US:Xa[R"[S55e[QU5nTRSU5 [TRV"U5RY5(aWTR[U5n[\R^RaU5(d"[R"[S5U-5eU(abTR-X65 TR>Rc[S5UU4-5 [dRf"WTR[U55 GO UnGOUS:Xa&U(d[R"[S55eU(d7[Q[\R^RiURkS 555nTR-X65 US:Xa%TR>RlRo5nOB[pRr"TR>U5nURo5nURu5 TR3US5nURcU5 URu5 U(dU"U5 UTRx;a#TR{5U-nU/TR.UU&TRI5 STl&TR>R}[S"5U-5 TR:R=U5 U	R=U5 SnGM
 TRU5 U	$s snf!,(df   GN
=f!,(df   GNP=f![va# [R"[S!5U-5ef=f)#Nc�j>�UTR;a"[R"[S5U-5eg)Ns&patch %s is already in the series file)rr
r.r)r�r0s �r2�checkseries�"queue.qimport.<locals>.checkseries^	s3����D�K�K�'��k�k��?�@�9�L���(r6s*option "-r" not valid when importing filesTr�sno files or revisions specifiedrgs5option "-n" not valid when importing multiple patchess/revision %d is the root of more than one branchsrevision %d is already managedr�s*revision %d is not the parent of the queuers"revision %d has unmanaged childrenr$�qimportsrevision %d is not mutabler�r�scannot import merge revision %ds#revision %d is not the parent of %dr�s%d.diffr�r�r#r)rfs%-e is incompatible with import from -spatch %s does not exist�renaming %s to %s
s$need --name to import a patch from -�/sunable to read file %ssadding %s to series file
)@r
r.rrr rror�r�rVrQ�lastrr��
parentrevsr2r�r�rrQr�r�rHrrtr�r
�
exportfilerSr�rJr�r�r�retractboundaryr�rr�r�rs�normnamerDr �url�islocalr�r�r�r�rqrr��basenamer��finr�r�openpathr9r�rrqrr�)r0rKr�r�r��existingr�r'r>�importedr�rr�
lastparentr2r�rrDr�r��ser{�filename�
originpath�textr;rms`                          r2�qimport�
queue.qimportT	s���	����k�k��C�D����%�%�d�0�C��H�H�T�H�"���+�+�a� B�C�D�D���J��N�c�#�h��l�	��+�+��J�K��
�����N�N�(�(����)<�)<�S�Y�Y�[�)I�J�E��5�z�A�~��k�k��H�I��h�h�j�!����|�|�|��~�~�*�*�3�9�9�;�7���D�L�L�9�L�q�F�F�L�9�9��+�+��;�<�s�y�y�{�J����T�\�\�"�-�2�2�3�3��+�+��G�H��)�)�+�&����~�~�)�)�$�,�,�q�/�*>�*>�?��!�^�^�6�6�t�<�Q�?�
��^�^�0�0�����=�>�>��+�+��?�@�3�9�9�;�N���"�
��}�}�f�c�]�3�H��!�!�*�-���A���7�?�?�,�,�#�k�k��;�<�q�@�!"�#J�!K���"�^�^�6�6�q�9�F�B�����+�+�A�.�A��W�}�#�k�k��@�A�A�E���"�j�A�o�#�k�k��D�E� �*�o�.���"$�J�$�$(�$6�$6� ��G�/�/�1�7�7��q�A�!�D�&��N�%�	� �	�*��'�'�	�9��O�O�*�*�1�i�8����Y��5���*�*�4��b�x�H�6�%�Q�2�B��L�L�'�'��2�.��J�J�%�%�i�0��O�O�I�.� $�I��t�w�w�1�1�%��C�C��.�.�t������L��$�$�&�(,�D�%�'+�D�$�U�.�Z%�U�+�K�A�x���t�#��+�+��B�C���$�H�-���&�&�x�0��;�;�x�(�0�0�2�2�!%���8�!4�J��7�7�>�>�*�5�5�#�k�k��8�9�H�D�����'�'�	�9��G�G�M�M��0�1�X�y�4I�I���K�K�
�D�I�I�i�,@�A� (�I��t�#�I��+�+��A�B���#� (����(�(�����)>�?�!�I��#�#�I�5�O��4�'�#�w�w�{�{�/�/�1���[�[����(�;��!�w�w�y�����
����Y��5�����T�"�������I�&�����+��*�*�,�q�0��09�{�����e�,�����#�D���G�G�L�L��8�9�I�E�F��J�J���i�(��O�O�I�&��I�s,�v	
��������y:�`6�5��;.�-��n�O��+�+�a�(A�&B�X�&M�N�N�O�s?�b�E(b�/b
�Cb�"*b1�
Ab1�
b�b�
b.�1-c)r�r�rr�r�r�rrrr�r�r�r�r�rr�rr�r�r�r.)NNFr�)NNNNN)FTFNNNNF)FT)	NFFNFFFFF)NFTFFF)NrNNFr&)NNNNF)Cr>r?r@rArXr�
propertycacherrrrr$r2r/r�rErM�compilerIrrRrYr\rcrnrur�r�r�r�r�r�r�rr�r�r
rrr#r(r3r<rArDrHrQrTr�r�r�r�r�rur:r�r�rrrr)r0rqr�r:rTrBr/r6r2r�r��s;��#!�J
������(
������
������
���!��!�!��2
�+���z�z�E�F�H�I�.L� �!�$ ��(%�N�2	�/�*����
�
�6&�P�*%�N/�(��������."�h��������o�b/3�b�.H�?�:�
*��.?�I��,J��2P�~"�@�;@�@��
���
����q�l������y=�vL�H"�T	+�
�$�����G0�R�D�*5$�n�6��4������fr6r�c��URSS5(a,URS5(dURS5(aU$[U5nSUS'U$)Nr#r'�force�exactT�keep_changes)r�r��dict�r�r;s  r2�fixkeepchangesoptsr^�	sN���M�M�%��0�0��8�8�H����8�8�H�������:�D� �D����Kr6sqdelete|qremove|qrm�kr*skeep patch filer5rs%stop managing a revision (DEPRECATED)sREVshg qdelete [-k] [PATCH]...)�helpcategoryc��URnURX[R"U55 UR	5 g)a)remove patches from queue

The patches must not be applied, and at least one patch is required. Exact
patch identifiers must be given. With -k/--keep, the patch files are
preserved in the patch directory.

To stop managing a patch and move it into permanent history,
use the :hg:`qfinish` command.r)�mqr#rrmr�)r�rKr:r;�qs     r2r#r#	
s2��0	
���A��H�H�T�H�0�0��6�7��K�K�M�r6sqapplied�1�lasts%show only the preceding applied patchshg qapplied [-1] [-s] [PATCH]c	�x�URn[R"U5nU(aPX$R;a"[R
"[
S5U-5eURRU5S-nOURS5nURS5(a"U(dUR[
S55 gURS5(a!US:XaUR[
S55 gURS5(aUS-
nSnOSnURXUS	URS
5S9 g)
z8print the patches already applied

Returns 0 on success.r�rgTrer��only one patch applied
rhrrr")rrxr�rN)rbrrmrr
r.rrmr�r�rqr)r�rKrr;rcr�rxs       r2rr'
s���	
���A�����%�D����� ��+�+�a� A�B�U�J�K�K��h�h�n�n�U�#�a�'���k�k�$����x�x�����
����*�+�,��	
���'�	�	�s�a�x�
����.�/�0��	
���'�	�	��a��������I�I���d�D�H�H�Z�<P��r6s
qunapplied�firstsshow only the first patchshg qunapplied [-1] [-s] [PATCH]c	�&�URn[R"U5nU(aPX$R;a"[R
"[
S5U-5eURRU5S-nOURS5nU[UR5:Xa1URS5(aUR[
S55 gURS5(aSnOSnURUUUSURS5S	9 g)
z8print the patches not yet applied

Returns 0 on success.r�rgTrh�all patches applied
Nr
r"�rxrr�r)
rbrrmrr
r.rrmr�ror�rqr)r�rKrr;rcrxrs       r2r�r�N
s���	
���A�����%�D����� ��+�+�a� A�B�U�J�K�K������u�%��)�����D�!����A�H�H�
��$�(�(�8�"4�"4�
����+�,�-���x�x���������I�I���������$��r6r@�e�existingsimport file in patch directory�n�namesname of patch filesNAME�frYsoverwrite existing filess)place existing revisions under mq control�gsuse git extended diff format�P�pushsqpush after importings>hg qimport [-e] [-n NAME] [-f] [-g] [-P] [-r REV]... [FILE]...c�8�[R"U5nUR5 URnUR	UUURS5URS5URS5URS5URS5S9nUR
5 SSS5 W(a@URS5(a*URS5(dWRXS	5$g
!UR
5 f=f!,(df   Nk=f)aoimport a patch or existing changeset

The patch is inserted into the series after the last applied
patch. If no patches have been applied, qimport prepends the patch
to the series.

The patch will have the same name as its source file unless you
give it a new one with -n/--name.

You can register an existing patch inside the patch directory with
the -e/--existing flag.

With -f/--force, an existing patch of the same name will be
overwritten.

An existing changeset may be placed under mq control with -r/--rev
(e.g. qimport --rev . -n patch will place the current revision
under mq control). With -g/--git, patches imported with --rev will
use the git diff format. See the diffs help topic for information
on why this is important for preserving rename/copy information
and permission changes. Use :hg:`qfinish` to remove changesets
from mq control.

To import a patch from standard input, pass - as the patch file.
When importing from standard input, a patch name must be specified
using the --name flag.

To import an existing patch while renaming it::

  hg qimport -e existing-patch -n new-name

Returns 0 if import succeeded.
rormrYrr$)r�rMr�r�r'Nrsr�r)rrmrrbrTr�r�r�)r�rKrQr;rcrNs      r2rTrTs
s���j����%�D�	
�����G�G��	��y�y����(�(�7�+����+�.��h�h�x�(��H�H�V�$��H�H�V�$�!��H�
�K�K�M�
��D�H�H�W�%�%�d�h�h�v�.>�.>��v�v�d�R�L�)�)���	
�K�K�M��
��s#�
D�A C6�D�6D�D�
Dc��URnURX5nUR5 U(GagUR5 URRU5 [RRURS55(dwURSS5nURS5 URS5 URS5 URS5 URS5 UR5 [RRURS55(d URSS5R5 US	RSS/5 [R"X5 S	S	S	5 S	S	S	5 g
g
!,(df   N=f!,(df   g
=f)ainitialize a new queue repository

This command also creates a series file for ordering patches, and
an mq-specific .hgignore file in the queue repository, to exclude
the status and guards files (these contain mostly transient state).

Returns 0 if initialization succeeded.s	.hgignorer�s^\.hg
s^\.mq
s
syntax: glob
sstatus
sguards
r�Nr)rbr�r�r�r�r�r�r�r�r�r�rqr9r�r)r�rKr�rcrr�s      r2�qinitrv�
s&��	
���A�	���t��A��K�K�M��
�W�W�Y��
�
�1�1�!�4��7�7�>�>�!�'�'�,�"7�8�8��V�V�L�$�/������%�����%����*�+�����%�����%����
��7�7�>�>�!�'�'�)�"4�5�5����y�$�'�-�-�/�
�d�G�K�K��y�1�2��L�L���5�Y�
�5�4��Y�Y�
�s%�F/�"D*F�F/�
F,	�(F/�/
F=sqinit�cscreate-reposcreate queue repositorys
hg qinit [-c]T)r`�	helpbasicc�4�[XURS5S9$)a�init a new queue repository (DEPRECATED)

The queue repository is unversioned by default. If
-c/--create-repo is specified, qinit will create a separate nested
repository for patches (qinit -c may also be run later to convert
an unversioned patch repository into a versioned one). You can use
qcommit to commit changes to this queue repository.

This command is deprecated. Without -c, it's implied by other relevant
commands. With -c, use :hg:`init --mq` instead.�create_repor�)rvr��r�rKr;s   r2r�r��
s��$��$�(�(�=�"9�:�:r6sqclone�pulls"use pull protocol to copy metadatar
�noupdates)do not update the new working directories�uncompresseds)use uncompressed transfer (fast over LAN)�pr�s#location of source patch repositorysREPOs#hg qclone [OPTION]... SOURCE [DEST])r`�norepoc���[R"U5nSnUc[R"U5n[R
"X5n[R"XU5nURS5(a&[R
"XRS55nOU"U5n[R"XU5 Sup�UR5(a�UR5n
U
RR(a�X�R5[ R":wa�U
RRSR$n[R&"U5(do[)U
R+55n[-UR/U
R+U555n	U	R1U
R2R5U5S5 O(UR7S5(aUR9S5nUR;[S	55 [R<"UUUR?5UURS
5U	SURS5S
9uplUR;[S55 [R<"UUURS5=(d U"U5U"U5URS
5URS5(+URS5S9 UR5(a�UR5n
U(a'UR;[S55 [AX
U/SSS9 URS5(dIUR;[S55 [RB"X�R2RE55 ggg![Ra  [R"[S55ef=f![Ra GN�f=f)a(clone main and patch repository at same time

If source is local, destination will have no patches applied. If
source is remote, this command can not check if patches are
applied in source, so cannot guarantee that patches are not
applied in destination. If you clone remote repository, be sure
before that it has no patches applied.

Source patch repository is looked for in <src>/.hg/patches by
default. Use -p <url> to change.

The patch directory must be a nested Mercurial repository, as
would be created by :hg:`init --mq`.

Return 0 on success.
c�b�UR5nURS5(aUSSnUS-$)z+compute a patch repo url from a repo objectrBNr�s/.hg/patches)rH�endswith)rKrHs  r2r�clone.<locals>.patchdirs2���h�h�j���<�<�����c�r�(�C��_�$�$r6Nr�s4versioned patch repository not found (see init --mq)r&rslookupr�scloning main repository
r|Fr~)�pullrr��streamscloning patch repository
r})r�r�r�s6stripping applied patches from destination repository
r�s updating destination repository
)#rrmr�defaultdestr �get_clone_path_obj�peerr�r
�	RepoErrorr.r�localrbrr�rr�rVrIrVr�r�
differencerJr�r��capabler�r��clonerHrr�r�)
r��source�destr;r�source_path�sr�patches_path�qbase�destrevrKr��drs
             r2r�r��
s���\����%�D�%��|��~�~�f�%���,�,�R�8�K�	����;�	'�B��x�x�
����1�1�"�h�h�z�6J�K�� ��|��
�
����,�'�
 �N�E�	�x�x�z�z��x�x�z���7�7�?�?�t�{�0�0�2�f�m�m�C��G�G�O�O�A�&�+�+�E��:�:�d�#�#��D�J�J�L�)���u�/�/��
�
�5�0A�B�C�����t�~�~�5�5�e�<�Q�?�@��	���I�	�	�	��I�I�h�'�E��G�G�A�*�+�,�
�X�X�
��
�����
�X�X�g�
�
���x�x��(�	�F�B��G�G�A�+�,�-��H�H�
�������,�������
�X�X�g�
��8�8�K�(�(��x�x��(��
�x�x�z�z��x�x�z����G�G��$��
�
�"�U�G�E�$�?��x�x��$�$��G�G�A�:�;�<��I�I�d�N�N�.�.�0�1�%���U�?�?�
��k�k�
�E�F�
�	
�
�� ���	��	�s�%N�)O�4O�O*�)O*sqcommit|qcis	commit|cis hg qcommit [OPTION]... [FILE]...)r`�	inferrepoc��URnUR5nU(d[R"S5e[R
"URU/UQ70UD6 g)zocommit changes in the queue repository (DEPRECATED)

This command is deprecated; use :hg:`commit --mq` instead.�no queue repositoryN)rbrr
r.rr�r�)r�rKrwr;rcrs      r2r�r�lsG��	
���A�	���	�A���k�k�0�1�1��O�O�A�D�D�!�+�d�+�d�+r6sqseries�mrsprint patches not in seriesshg qseries [-ms]c�t�URRXRS5URS5S9 g)z3print the entire series file

Returns 0 on success.rr)rrr)rbrr�r{s   r2rr~s5��	�G�G�O�O��h�h�y�)�4�8�8�I�3F���
r6sqtopshg qtop [-s]c	���URnUR(aURS5nOSnU(a&URUUS-
SSUR	S5S9 gUR[
S55 g)	z:print the name of the current patch

Returns 0 on success.Trrgrrrkr�N)rbrr�rr�rqr)r�rKr;rc�ts     r2r'r'�sn��	
���A��y�y�
�K�K����
���	�	�	���a�%����H�H�Y�'�	�	
�	����*�+�,�r6sqnexts
hg qnext [-s]c���URnUR5nU[UR5:XaUR	[S55 gUR
XSURS5S9 g)z@print the name of the next pushable patch

Returns 0 on success.rjrgr)rxrrN)rbr�rorrqrrr�)r�rKr;rcr�s     r2�nextr��sX��	
���A�
�+�+�-�C�
�c�!�(�(�m��
����+�,�-���I�I�d�a����)�1D�I�Er6sqprevs
hg qprev [-s]c	�r�URn[UR5nUS:XaUR[	S55 gU(dUR[	S55 gUR
R
URSR5nURXSSURS5S9 g)	zDprint the name of the preceding applied patch

Returns 0 on success.rgrgr����rrrkN)
rbrorrqrrrmrWrr�)r�rKr;rcr�r`s      r2�prevr��s���	
���A��A�I�I��A��A�v�
����.�/�0���
����*�+�,��
�(�(�.�.����2��+�+�
,�C��I�I���$�����8K��r6c��URS5(d)URS5(aUR5US'URS5(d3URS5(aS[R"5-US'ggg)NrZ�currentuserri�currentdaterl)r��usernamer�makedater]s  r2�setupheaderoptsr��sj���8�8�G������.�!9�!9����
��W�
��8�8�G������.�!9�!9� �8�#4�#4�#6�6��W�
�":�r6sqnewrXs invoke editor on commit messagess'import uncommitted changes (DEPRECATED)r�s#add "From: <current user>" to patch�urZsadd "From: <USER>" to patchsUSER�Dr�s#add "Date: <current date>" to patch�drisadd "Date: <DATE>" to patchsDATEs0hg qnew [-e] [-m TEXT] [-l FILE] PATCH [FILE]...)r`rxr�c��[R"U5n[R"X5nURnXTS'[X5 UR"X/UQ70[R"U5D6 UR5 g)a�create a new patch

qnew creates a new patch on top of the currently-applied patch (if
any). The patch will be initialized with any outstanding changes
in the working directory. You may also use -I/--include,
-X/--exclude, and/or a list of files after the patch name to add
only changes to matching files to the new patch, leaving the rest
as uncommitted modifications.

-u/--user and -d/--date can be used to set the (given) user and
date, respectively. -U/--currentuser and -D/--currentdate set user
to current user and date to current date.

-e/--edit, -m/--message or -l/--logfile set the patch header as
well as the commit message. If none is specified, the header is
empty and the commit message is '[mq]: PATCH'.

Use the -g/--git option to keep the patch in the git extended diff
format. Read the diffs help topic for more information on why this
is important for preserving permission changes and copy/rename
information.

Returns 0 on successful creation of a new patch.
rWr)	rrmr
�
logmessagerbr�r��	strkwargsr�)r�rKrr�r;r1rcs       r2r�r��sj��V����%�D�
�
�
�R�
&�C����A���L��B���E�E�$�9��9�� 2� 2�4� 8�9��K�K�M�r6sqrefreshr�s;refresh only files already in the patch and specified filess2add/update author field in patch with current users0add/update author field in patch with given users0add/update date field in patch with current dates.add/update date field in patch with given dates=hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...c�T�[R"U5nURn[R"X5n[X5 UR
5 UR"X4SU0[R"U5D6nUR5 UsSSS5 $!,(df   g=f)aupdate the current patch

If any file patterns are provided, the refreshed patch will
contain only the modifications that match those patterns; the
remaining modifications will remain in the working directory.

If -s/--short is specified, files currently included in the patch
will be refreshed just like matched files and remain in the patch.

If -e/--edit is specified, Mercurial will start your configured editor for
you to enter a message. In case qrefresh fails, you will find a backup of
your message in ``.hg/last-message.txt``.

hg add/remove/copy/rename work as usual, though you might want to
use git-style patches (-g/--git or [diff] git=1) to track copies
and renames. See the diffs help topic for more information on the
git diff format.

Returns 0 on success.
r1N)
rrmrbr
r�r�r�r:r�r�)r�rKrwr;rcr�r�s       r2r:r:sx��D����%�D����A�� � ��*�G��B��	
�����i�i��L��L�8�3E�3E�d�3K�L��	���
��
���s�;B�
B'�qdiffshg qdiff [OPTION]... [FILE]...c��URS5 URRX[R"U55 g)a�diff of the current patch and subsequent modifications

Shows a diff which includes the current patch as well as any
changes which have been made in the working directory since the
last refresh (thus showing what the current patch would become
after a qrefresh).

Use :hg:`diff` if you only want to see the changes made since the
last qrefresh, or :hg:`export qtip` if you want to see changes
made by the current patch without including changes made since the
qrefresh.

Returns 0 on success.
r�r)�pagerrbrurrm)r�rKrwr;s    r2ruru`s0��.�H�H�X���G�G�L�L��X�1�1�$�7�8�r6sqfoldskeep folded patch filess/hg qfold [-e] [-k] [-m TEXT] [-l FILE] PATCH...c	�(�[R"U5nURnU(d[R"[S55eUR
U5S(d[R"[S55eUR5 URU5 [R"X5nURS5n/n/nUH�n	URU	5n
X�;dX�:XaUR[S5U
-5 URU
5(a"[R"[S5U
-5eURU
5 M� UH�n
U(dQ[UR!U
5UR"5nUR$(aURUR$5 UR!U
5nUR'X5up�nU
(aM�[R"[S5U
-5e U(d}[UR!U5UR"5nUR$nUH5nU(dMU(aURS5 UR)U5 M7 S	R!U5nUR*"UR-5/UQ76nUR/UUUR0UR3S
5SS9 UR5XU5 UR75 S
S
S
5 g
!,(df   g
=f)afold the named patches into the current patch

Patches must not yet be applied. Each patch will be successively
applied to the current patch in the order given. If all the
patches apply successfully, the current patch will be refreshed
with the new cumulative patch, and the folded patches will be
deleted. With -k/--keep, the folded patch files will not be
removed afterwards.

The header for each folded patch will be concatenated with the
current patch header, separated by a line of ``* * *``.

Returns 0 on success.s&qfold requires at least one patch namerrr�s!skipping already folded patch %s
s*qfold cannot fold already applied patch %sserror folding patch %ss* * *r�rXsmq.qfold)r1r'rxraN)rrmrbr
r.rr(r�r<r
r�r�rr�rJr�r�r�r�rrpr/r2r:r'r�r#r�)r�rKr�r;rcr�r�r:�messagesr~r>r�r��patchsuccessr�r1r2s                 r2�foldr�|sR��0����%�D����A���k�k�!�E�F�G�G��?�?�4� ��#��k�k�!�1�2�3�3�	
����	���D�!��$�$�R�.�����'�"�������A������A��|�q�{�����?�@�1�D�E��{�{�1�~�~��k�k��C�D�q�H���
�N�N�1����A�� ������A�K�K�8���:�:��O�O�B�J�J�/������B�*+�'�'�$�*;�'�\�$��<��k�k�!�$=�">��"B�C�C����Q�V�V�F�^�Q�[�[�9�B��j�j�G����3�����x�0��N�N�3�'�	 �
�j�j��)�G��;�;�q�z�z�|�6�g�6��	�	�	���������'�"� �	�	
�	
�����%�	���
�_
���s�EL�#A&L�
B-L�
Lsqgotoskeep-changess&tolerate non-conflicting local changessoverwrite any local changess	no-backups"do not save backup copies of filesshg qgoto [OPTION]... PATCHc��[R"U5n[X5nURnUR	U5nURS5nURS5nUR
U5(a#URUUURS5UUS9nO"URUUURS5UUS9nUR5 U$)zOpush or pop patches until named patch is at top of stack

Returns 0 on success.�	no_backupr[rY)r�r�r�)
rrmr^rbr�r�r�r�r�r�)r�rKrr;rcr�r�r�s        r2�gotor��s���&����%�D��b�'�D����A�
�H�H�U�O�E��x�x��%�H��(�(�?�+�K��{�{�5����e�e����(�(�8�$��#��
���f�f����(�(�8�$��#��
���K�K�M��Jr6sqguard�l�listslist all patches and guards�nonesdrop all guardss8hg qguard [-l] [-n] [PATCH] [-- [+GUARD]... [-GUARD]...]c�(^^	^
�U	U
U4SjnURm
T
RVs1sHoURiM snm	Sn[U5nUR	S5(ajU(dUR	S5(a[
R"[S55e[[T
R55HnU"U5 M
 gU(aUSSSS;aIT
R(d[
R"[S	55eT
RS
RnUcUSSSS;aURS5nUc[
R"[S55eU(dUR	S5(aXT
RU5nUc"[
R"[S5U-5eT
RX�5 T
R5 gU"T
RRT
R!U555 gs snf)
aLset or print guards for a patch

Guards control whether a patch can be pushed. A patch with no
guards is always pushed. A patch with a positive guard ("+foo") is
pushed only if the :hg:`qselect` command has activated it. A patch with
a negative guard ("-foo") is never pushed if the :hg:`qselect` command
has activated it.

With no arguments, print the currently active guards.
With arguments, set guards for the named patch.

.. note::

   Specifying negative guards now requires '--'.

To set guards on another patch::

  hg qguard other.patch -- +2.6.17 -stable

Returns 0 on success.
c�^>�TRU=(d S/nTRUT;aSnOTRU5S(aSnOSnSX"4-nTRSTR	TRUU5-5 [U5H�upEUR
S5(aTRUS	S
9 O7UR
S5(aTRUSS
9 OTRUS
S
9 U[U5S-
:wdMwTRS5 M� TRS5 g)Ns	unguardedrrrrs!qguard.patch qguard.%s qseries.%ss%s: rg�qguard.positiverrf�qguard.negative�qguard.unguardedrgrUr�)rrrnrqrrsrqro)	r`rWr�rr{rOrrcr�s	      ���r2r��guard.<locals>.status
s�������$�6�����8�8�C�=�G�#��E�
�Z�Z��_�Q�
� �E��E�4��~�E��
����2�8�8�A�H�H�S�M�5�9�9�:�!�&�)�H�A�����%�%�����&8��9��!�!�$�'�'�����&8��9�����&9��:��C��K�!�O�#������*�	����r6Nr�nones.cannot mix -l/--list with options or argumentsrrgrNrr�sno patch to work withsno patch named %s)rbrrWrr�r
r.rrprorr�rErcr�rmr�)r�rKr�r;r�r>rr{r`rrcs`        @@r2rOrO�s����@�,	
���A� �y�y�)�y�!�v�v�y�)�G��E���:�D��x�x�����4�8�8�F�#�#��+�+��C�D��
��s�1�8�8�}�%�A��1�I�&���4��7�1�Q�<�5�(��y�y��+�+�a� 5�6�7�7��	�	�"�
�"�"���}��a���1��U�2��������}��k�k�!�4�5�6�6��t�x�x�����l�l�5�!���;��+�+�a� 4�5��=�>�>�	���C��	���
��q�x�x�~�~�a�h�h�u�o�.�/��5*s�Hsqheadershg qheader [PATCH]c�l�URnU(aURU5nO=UR(dUR[	S55 gURS5n[UR
U5UR5nURSR
UR5S-5 g)zIprint the header of the topmost or specified patch

Returns 0 on success.r�rgr�r�N)	rbr�rrqrr�r�r�r�)r�rKrrcr�s     r2rvrvN
s}��	
���A���������y�y��H�H�Q�.�/�0������!��	�Q�V�V�E�]�A�K�K�	0�B��H�H�U�Z�Z��
�
�
#�e�
+�,r6c��[RRU5up[R"U5n[R
"SU-5nSnSnUHEnUR
U5nU(dM[URS55n	UbX�:�dMAU	nUnMG U(a![RRX5U4$g)Ns%s.([0-9]+)rgr&)
r�r�r��listdirrMrWr�r��groupr�)
r��	directoryr�names�namere�maxindex�maxnamer~r�rms
          r2�lastsavenamer�f
s������
�
�d�+��Y��J�J�y�!�E�
�Z�Z���-�
.�F��H��G�
���L�L��O���1������
�O�E���5�#3� ����
�������Y�0�(�;�;�r6c�@�[U5upUcSnUSUS---nU$)Nrs.%drg)r�)r�rCrm�newpaths    r2�savenamer�x
s0�� ��&�M�T��|����V�u�q�y�)�)�G��Nr6r�sapply on top of local changesrZs-apply the target patch to its recorded parentslist patch name in commit text�a�allsapply all patches�merges%merge from another queue (DEPRECATED)smerge queue name (DEPRECATED)�moves-reorder patch series and apply only the patchs0hg qpush [-f] [-l] [-a] [--move] [PATCH | INDEX]c��URnSn[R"U5n[X5nUR	S5(a�UR	S5(a+UR
R
UR	S55nO[UR5upgU(dUR[S55 g[XRURU5nUR[S5UR-5 URUUUR	S5UR	S5UUR	S	5UR	S
5UR	S5UR	S5UR	S
5S9
nU$)apush the next patch onto the stack

By default, abort if the working directory contains uncommitted
changes. With --keep-changes, abort only if the uncommitted files
overlap with patched files. With -f/--force, backup and patch over
uncommitted changes.

Return 0 on success.
Nr�ros%no saved queues found, please use -n
rgsmerging with queue at: %s
rYr�r�r�rZr�r[)r�rr�r�r�r�r�r�)rbrrmr^r�rr�r�r�rrr�r�r�)	r�rKrr;rcr�r�r{r�s	         r2r�r��
s6��T	
���A�
�F�����%�D��b�'�D��x�x�����8�8�G����h�h�m�m�D�H�H�W�$5�6�G�%�a�f�f�-�J�G���G�G�A�?�@�A���r�;�;��	�	�7�;��
����0�1�F�K�K�?�@�
�&�&��
��h�h�x� �
�X�X�g�
���H�H�V��
�X�X�g�
��h�h�x� ����,�'��H�H�_�-���C��Jr6sqpopspop all patchessqueue name to pop (DEPRECATED)s)forget any local changes to patched filess!hg qpop [-a] [-f] [PATCH | INDEX]c�8�[R"U5n[X5nSnURS5(as[	XR
URURRURS555nUR[S5UR-5 SnOURnURUUURS5UURS5URS5URS5S	9nUR5 U$)
a�pop the current patch off the stack

Without argument, pops off the top of the patch stack. If given a
patch name, keeps popping off patches until the named patch is at
the top of the stack.

By default, abort if the working directory contains uncommitted
changes. With --keep-changes, abort only if the uncommitted files
overlap with patched files. With -f/--force, backup and discard
changes made to such files.

Return 0 on success.
Trosusing patch queue: %s
FrYr�r�r[)r�r�r�r�r�)rrmr^r�r�r�r�rr�rrrbr�r�)r�rKrr;�localupdatercr�s       r2r�r��
s���@����%�D��b�'�D��K��x�x�����"�k�k�4�9�9�d�h�h�m�m�D�H�H�W�<M�.N�O��
����,�-����6�7����G�G��
�%�%��
��h�h�x� ���H�H�V�����,�'��H�H�_�-���C��K�K�M��Jr6sqrename|qmvshg qrename PATCH1 [PATCH2]c��URnU(dUnSnU(aURU5nO=UR(dUR[	S55 gURS5nURU5n[RRU5(aW[[RRU[RRU555nURU5nURU5 UR[	S5X#4-5 URU5nURRUR U5nUSRUV	s/sHn	SU	-PM
 sn	5-UR U'UR#5 SUlUR'U5n
U
(a[)U
SU5URU
S	'SUl[RR-U5n[RRU5(d[R."U5 [0R2"URU5U5 UR55nU(a�X,R6;a�UR95 UR6R;U5 USn
UR6R=U5R>(a7UR6RAU5 UR6RCU5 O#U
REX#5 U
RGU/5 SSS5 SSS5 URI5 gs sn	f!,(df   N,=f!,(df   N5=f)
z�rename a patch

With one argument, renames the current patch to PATCH1.
With two arguments, renames PATCH1 to PATCH2.

Returns 0 on success.Nr�r�rAr6r_Trgr)%rbr�rrqrr�r�r�rGrGrJrHr�rErIrJrrr�r�rSr��dirname�makedirsrr�rr�r�r�ror��
set_untracked�set_trackedr8rr�)r�rKrrWr;rc�absdestr{rWrar��destdirrrNs              r2r�r��
sj��	
���A��������������y�y��H�H�Q�.�/�0������!���f�f�T�l�G�	�w�w�}�}�W���������T�2�7�7�+;�+;�E�+B�C�D���&�&��,�����T���G�G�A�$�%��
�5�6�	���U��A�
�Z�Z�
�
����Q��
0�F��S�X�X�&�&A�&�Q�u�q�y�&�&A�B�B�A�L�L��O��M�M�O��A�M��;�;�u��D��(��a��$�7��	�	�$�q�'���A�N��g�g�o�o�g�&�G�
�7�7�=�=��!�!�
���G���K�K����u�
�w�'�	���	�A��U�j�j�
 �
�W�W�Y��
�
�1�1�!�4��T�7�D��z�z�#�#�E�*�0�0��
�
�(�(��/��
�
�&�&�t�,��	�	�%�&����U�G�$�5�Y��K�K�M��1'B�5�4��Y�Y�s+�2M(
�!M>�=B
M-�M>�-
M;	�7M>�>
Nsqrestore�deletesdelete save entrysupdatesupdate queue working directoryshg qrestore [-d] [-u] REVc��URU5nURnURXURS5URS5S9 UR	5 g)zorestore the queue state saved by a revision (DEPRECATED)

This command is deprecated, use :hg:`rebase` instead.r#r�)r#r%r)r�rbr)r�r�)r�rKr�r;rcs     r2r)r);sK���+�+�c�
�C����A��I�I�d����� 2�D�H�H�X�<N�I�O��K�K�M�r6sqsave�copyscopy patch directoryscopy directory name�emptysclear queue status files
force copys5hg qsave [-m TEXT] [-l FILE] [-c] [-n NAME] [-e] [-f]c���URn[R"U5n[R"X5nURXS9nU(aU$UR
5 URS5(Ga=URnURS5(a�[RRURURS55n[RRU5(a~[RRU5(d"[R"[!S5U-5eURS5(d"[R"[!S5U-5eO[#U5nUR%[!S5Xg4-5 [&R("Xg5 URS5(a&UR*S	S	2	S
UlUR
5 g)z\save current queue state (DEPRECATED)

This command is deprecated, use :hg:`rebase` instead.)r1r�ros,destination %s exists and is not a directoryrYs&destination %s exists, use -f to forcescopy %s to %s
r�NTr)rbrrmr
r�r0r�r�r�r�r�r�r�rGr
r.rr�rr�	copyfilesrr�)r�rKr;rcr�r�r�r�s        r2r0r0Osl�� 	
���A�����%�D�� � ��*�G�
�&�&��&�
#�C�
��
��K�K�M��x�x�����v�v���8�8�G����g�g�l�l�1�:�:�t�x�x��/@�A�G��w�w�~�~�g�&�&��w�w�}�}�W�-�-��+�+��I�J�!�"����x�x��)�)��+�+��C�D�w�N�����t�n�G�
����$�%���7�8����t�%��x�x����
�I�I�a�L����	���
�r6sqselectsdisable all guardsr�slist all guards in series file�pops)pop to before first guarded applied patch�reapplyspop, then reapply patchess!hg qselect [OPTION]... [GUARD]...c�	^�URm[R"U5nTR5nU4SjnU(dUR	S5(Ga�TRU5n[
[TR55Vs/sHou"U5(aMUPM nnTRU5 TR5 U(dUR[S55 UR	S5(d�UR	S5(d�TRU5n	[
[TR55Vs/sHou"U5(aMUPM n
n[U	5[U5:wa1UR[S5[U5[U	54-5 [U
5[U5:wa1UR[S5[U5[U
54-5 GOcUR	S5(a�0nS	nTRH6nU(dUS
-
nUH!n
URU
S	5 XM==S
-
ss'M# M8 UR(aX�S'[!UR#55nUR%SS
9 U(aLUR'[S55 UH+up�UR'SU-5 UR)US5 M- OrUR'[S55 OWU(a6UR'[S55 UHn
UR)U
S5 M OUR)[S55 UR	S5=(a, TR=(a TRSR*nSnUR	S5(dUR	S5(a�[
[TR55HqnU"U5(aMUR[S55 SnUS	:XaTR-USS9 O,TR-UTRUS
-
R*5  O U(aEU(a,UR[S55 TR/UU5 TR5 ggs snfs snf!TR5 f=f)aset or print guarded patches to push

Use the :hg:`qguard` command to set or print guards on patch, then use
qselect to tell mq which guards to use. A patch will be pushed if
it has no guards or any positive guards match the currently
selected guard, but will not be pushed if any negative guards
match the current guard. For example::

    qguard foo.patch -- -stable    (negative guard)
    qguard bar.patch    +stable    (positive guard)
    qselect stable

This activates the "stable" guard. mq will skip foo.patch (because
it has a negative match) but push bar.patch (because it has a
positive match).

With no arguments, prints the currently active guards.
With one argument, sets the active guard.

Use -n/--none to deactivate guards (no other arguments needed).
When no guards are active, patches with positive guards are
skipped and patches with negative guards are pushed.

qselect can change the guards on applied patches. It does not pop
guarded patches by default. Use --pop to pop back to the last
applied patch that is not guarded. Use --reapply (which implies
--pop) to push back to the current patch afterwards, but skip
guarded patches.

Use -s/--series to print a list of all guards in the series file
(no other arguments needed). Use -v for more information.

Returns 0 on success.c�Z>�TRTRUR5S$)Nr)rnrrW)r{rcs �r2�<lambda>�select.<locals>.<lambda>�s!������A�I�I�a�L�$5�$5�6�q�9r6r�sguards deactivated
r�r�sAnumber of unguarded, unapplied patches has changed from %d to %d
s=number of guarded, applied patches has changed from %d to %d
r�rrgsNONEc��USSS$�Nrrgr/)r�s r2r�r��s��!�A�$�q�r�(r6)�keysguards in series file:
s%2d  r�sno guards in series file
sactive guards:
sno active guards
r�Fspopping guarded patches
T)r�sreapplying unguarded patches
N)rbrrmr\r�r�rprorrYr�r�rrr�rrrrzrr�rqrWr�r�)r�rKr�r;rWrn�
old_unappliedr{�old_guardedr��guarded�noguards�gsrarO�count�reapply�poppedrcs                  @r2�selectr�s����\	
���A�����%�D�
�X�X�Z�F�9�H��t�x�x�� � ����D�)�
�"'��A�I�I��"7�K�"7�Q�x��{�q�"7��K�	���D��	���
���I�I�a�/�0�1��x�x��������(<�(<����D�)�I�"'��A�I�I��"7�K�"7�Q�x��{�q�"7�G�K��9�~��]�!3�3��	�	��3���=�)�3�y�>�:�	;���7�|�s�;�/�/��	�	��+���;�'��W��6�	7���
���)�	�	������.�.�B���A�
�����!�!�!�Q�'��	�Q��	��!��:�:�&�7�O��f�l�l�n�%�����*��+���G�G�A�1�2�3� &�������5�(�)������&�!'�
�G�G�A�3�4�5���G�G�A�)�*�+�������E�"��
�H�H�Q�,�-�.��h�h�z�"�G�q�y�y�G�Q�Y�Y�r�]�5G�5G�G�
�F��x�x����4�8�8�J�/�/��s�1�9�9�~�&�A��A�;�;��	�	�!�8�9�:�����6��E�E�$�D�E�)��E�E�$��	�	�!�a�%� 0� 5� 5�6��'��	���	�	�!�=�>�?����t�W�%�
�K�K�M�
��L��L��|
�K�K�M�s$�	R)�R)�R.�R.�$3R3�3Srrsfinish all applied changesetsshg qfinish [-a] [REV]...c�v�URS5(d&U(d[R"[S55eURS5(aSU-nURnUR
(dUR
[S55 g[R"X5nUSR5U;a2USR5(aUR[S55 UR5 URX5 UR5 SSS5 g!,(df   g=f)	a8move applied patches into repository history

Finishes the specified revisions (corresponding to applied
patches) by moving them out of mq control into regular repository
history.

Accepts a revision range or the -a/--applied option. If --applied
is specified, all applied mq revisions are removed from mq
control. Otherwise, the given revisions must be at the base of the
stack of applied patches.

This can be especially useful if your changes have been applied to
an upstream repository, or if you are about to push your changes
to upstream.

Returns 0 on success.
rsno revisions specified)sqbase::qtipr�rr�Ns6warning: uncommitted changes in the working directory
)r�r
r.rrbrr�rr r�r�rrrr�)r�rKr r;rcrs      r2rr�s���0�8�8�I���x��k�k�!�5�6�7�7�	
���)�	�	�$�x�/�����A��9�9�
�	�	�!�+�,�-�����t�.�D��D�z�~�~��4��D��J�$4�$4�$6�$6�
����L�M�N�
����	�����	���
�
�
�
��
�s�?"D*�*
D8sqqueueslist all available queues�activesprint name of active queue�createscreate new queue�renamesrename active queuesdelete reference to queue�purges"delete queue, and remove patch dirs[OPTION] [QUEUE]c�`^^^^^^^^�TRmSmSmSmU4SjmUU4SjnUUUU4SjnUU4SjnUU4SjmUU4S	jnU4S
jnSn	UUUU4Sjn
[R"U5nU(a,URS
5(dURS5(a�T"5nURS5(aUR	SU4-5 gU"5H[nUR	SU4-5 X�:Xa-UR
(dUR	[
S55 MJUR	S5 M] gU	"U5(d[R"[
S55eTR5 U"5mURS5(aNUT;a"[R"[
S5U-5eU"5(aU"T5 U"U5 U"U5 GO3URS5(GaiT"5nX+:Xa"[R"[
S5U-5eUT;a"[R"[
S5U-5eU"U5n
U"U5n[RRU5(a"[R"[
S5U-5eTRSS5nTHpnX�:XaSUR	SU4-5 [RRU
5(a[R"X�5 MYM[UR	SU4-5 Mr UR!5 TRRST5 T"U5 O�URS5(a	U
"U5 O�URS5(aQUT;aU
"U5 U"U5n[RRU5(a["R$"U5 O-UT;a[R"[
S55eU"U5 SSS5 g!,(df   g=f)a�manage multiple patch queues

Supports switching between different patch queues, as well as creating
new patch queues and deleting existing ones.

Omitting a queue name or specifying -l/--list will show you the registered
queues - by default the "normal" patches queue is registered. The currently
active queue will be marked with "(active)". Specifying --active will print
only the name of the active queue.

To create a new queue, use -c/--create. The queue is automatically made
active, except in the case where there are applied patches from the
currently active queue in the repository. Then the queue will only be
created and switching will fail.

To delete an existing queue, use --delete. You cannot delete the currently
active queue.

Returns 0 on success.
r�spatches.queuesr�c�>�[RRTR5nURS5(aUSSnU$)Nr��)r�r�rJrq)rrcs �r2�_getcurrent�qqueue.<locals>._getcurrentPs:����g�g���q�v�v�&���>�>�+�&�&��a�b�'�C��
r6c�l>�TRTS5nUR5 g![a gf=f)Nr5TF)rr9r�)r�
_allqueuesrKs ��r2�	_noqueues�qqueue.<locals>._noqueuesVs:���	����*�d�+�B��H�H�J����	��	�s�"&�
3�3c�6>�T"5nTRTS5nUVs/sH)o"R5(dMUR5PM+ nnUR5 X;aURU5 [U5$s snf![a T/nNf=f)Nr5)rrr9rJr�rE)�currentrr��queuesr�
_defaultqueuer�rKs    ����r2�
_getqueues�qqueue.<locals>._getqueues_s�����-��	%����*�d�+�B�13�E���{�{�}�m�e�k�k�m��F�E��H�H�J��$��
�
�g�&��f�~���F���	%�#�_�F�	%�s'�B�B�B�(B�B�
B�Bc�v>�TR(a[R"[S55eT"U5 g)Ns@new queue created, but cannot make active as patches are applied)rr
r.r)rW�_setactivenocheckrcs ��r2�
_setactive�qqueue.<locals>._setactivems2����9�9��+�+��.���
�	�$�r6c�x>�TRTS5nUS:waURU5 UR5 g)Nr�r��rrqr9)rWr�_activequeuerKs  ��r2r�!qqueue.<locals>._setactivenocheckws/���
�X�X�l�D�
)���:���H�H�T�N�
���
r6c�t>�TRTS5nURSU4-5 UR5 g)Nr�ryr)rWrrrKs  ��r2�	_addqueue�qqueue.<locals>._addqueue}s/���
�X�X�j�$�
'��
����D�7�"�#�
���
r6c�>�US:XaTRRS5$TRRSU-5$)Nr�r�)rr�)rWrKs �r2�	_queuedir�qqueue.<locals>._queuedir�s6����:���8�8�=�=��,�,��8�8�=�=��t�!3�4�4r6c�&�UHnUS;dM g g)Ns:\/.FTr/)rWrs  r2�
_validname�qqueue.<locals>._validname�s���A��H�}���r6c�l>�UT;a[R"[S55eT"5nX:Xa[R"[S55eTRSS5nTHnX0:XaM
UR	SU4-5 M! UR5 TRR
ST5 g)Ns'cannot delete queue that does not exists$cannot delete currently active queue�patches.queues.newr�ry)r
r.rrrqr9r�)rWrrr�rr�rMrKs    ����r2�_delete�qqueue.<locals>._delete�s�����x���+�+�a� J�K�L�L��-���?��+�+�a� G�H�I�I�
�X�X�+�T�
2���E��}���H�H�W��x�'�(��	���
������-�z�:r6r�r�ryNs%ss
 (active)
r�s9invalid queue name, may not contain the characters ":\/."r�squeue "%s" already existsr�s%can't rename "%s" to its current names'non-queue directory "%s" already existsrr�r�r�s"use --create to create a new queue)rbrrmr�rq�quietrr
r.r�r�r�r�rrr�r9�shutil�rmtree)r�rKrWr;rr	r
rrrrrr��olddir�newdirr�qdirrrrr�rrMrcs `               @@@@@@@r2�qqueuer&)sI���D	
���A��M�"�J�#�L����� ���
5��;�;�"����%�D��4�8�8�G�$�$�����(;�(;��-���8�8�I����H�H�W��z�)�*���\�E��H�H�U�e�X�%�&����������>�*�+������"�	��d����k�k�
�K�L�
�	
�
�����<���8�8�I����x���k�k�!�$@�"A�D�"H�I�I��{�{��-�(��d�O��t��
�X�X�i�
 �
 �!�m�G����k�k��?�@�4�G����x���k�k�!�$@�"A�D�"H�I�I��w�'�F��t�_�F��w�w�~�~�f�%�%��k�k��@�A�F�J������/��6�B�!���#��H�H�W��w�.�/��w�w�~�~�f�-�-����F�3�.��H�H�W��x�/�0�
"�
�H�H�J��H�H�O�O�1�:�>��d�#�
�X�X�i�
 �
 ��D�M�
�X�X�h�
�
��x����
��T�?�D��w�w�~�~�d�#�#��
�
�d�#���8�#��k�k�!�$I�"J�K�K��t��c
���s
�7JP�
P-c�L�URR(a�URRSS5(a[R
nO[RnXRRSRnXRUR55 U$)zEcallback used to set mq changeset as secret when no phase data existsr#r)r)
rbrr�r�rr��draftrVr�r�)rK�roots�mqphaser�s    r2�mqphasedefaultsr+�sl���w�w����7�7���e�Y�/�/��m�m�G��l�l�G��W�W�_�_�Q�'�,�,�-��
����5�9�9�;�'��Lr6c��"SSUR5nUR5(a&X!lURR[5 gg)Nc�^�\rSrSr\R
S5rU4SjrS	SjrS
U4Sjjr	U4Sjr
U4SjrSrU=r
$)�reposetup.<locals>.mqrepoi�c�X�[URURUR5$r.)r�r�r�r�r\s r2rb�reposetup.<locals>.mqrepo.mq�s������$�+�+�t�y�y�9�9r6c�>�[TU]5 [R"US5(a[	UR5S5 gg)Nrb)�super�
invalidateallr�hasunfilteredcacher"r�)r0�	__class__s �r2r3�'reposetup.<locals>.mqrepo.invalidateall�s7����G�!�#��+�+�D�$�7�7�����)�4�0�8r6c�^�URR(a�URR(a�U(d{URR	5nURRVs/sHoDR
PM snm[
U4SjU55(a[R"U5eggggs snf)Nc3�,># �UH	oT;v� M g7fr.r/)r�r>r:s  �r2r��?reposetup.<locals>.mqrepo.abortifwdirpatched.<locals>.<genexpr>s����5�W��G�|�W�s�)	rbrrr�r�rVr�r
r.)r0�errmsgr�r�rPr:s     @r2�abortifwdirpatched�,reposetup.<locals>.mqrepo.abortifwdirpatched�s�����w�w���4�7�7�#7�#7���-�-�/�/�1��+/�7�7�?�?�;�?�a�6�6�?�;���5�W�5�5�5��+�+�f�-�-�6�AF�#7���;s�1B=c	�h>�Uc0nUR[S5U5 [TU]
XX4XVU5$)Ns&cannot commit over an applied mq patch)r;rr2r�)	r0rSr�r�r�r�rk�extrar5s	        �r2r�� reposetup.<locals>.mqrepo.commits?����}����#�#��;�<�e�
��7�>�$�d�5�%�P�Pr6c�P>�URR(a�URR(a�UR(d�URRVs/sHo"RPM nnUR
(a>[
UR
5n[U5HnXT;a OUR5 M UHFnXR5[R:dM)[R"[S55e [TU]AU5 gs snf)Nssource has mq patches applied)rbrrr�rVrrVr�r�r�rr�r
r.rr2�	checkpush)r0�pushoprz�
outappliedr�rVr5s      �r2rA�#reposetup.<locals>.mqrepo.checkpushs�����w�w���4�7�7�#7�#7����.2�g�g�o�o�>�o��f�f�o�
�>��;�;� ����,�E� (�� 4���=�!�&�N�N�,�	!5�'�D��z�'�'�)�F�M�M�9�#�k�k�!�,L�*M�N�N�'�
�G��f�%��!?s�!D#c��>�[TU]5nURnUR(dU$URVs/sHo3RUR
4PM nnUR
5RRUSS5 URRnUVs/sHoe"US5(dMUPM nnU(dU$UR!USSS45 UR!USSS45 UR!URR#USS5SS45 USnUHBnUSU;a,URR[S5US-5 M8USXsS'MD U$s snf![Ra; URR[S5[USS5-5 Us$f=fs snf)	z,augment tags from base class with patch tagsr�rs)mq status file refers to unknown node %s
r�r�sqparentrgs+tag %s overrides mq patch of the same name
)r2�	_findtagsrbrrVrWr�r�r�r
r�r�rrr	�hasnoderJr�)	r0�resultrcr�mqtags�included�mqt�tagsr5s	        �r2rF�#reposetup.<locals>.mqrepo._findtags+s�����W�&�(�F����A��9�9��
�<=�I�I�F�I�5�z�z�5�:�:�.�I�F�F�
����!�+�+�/�/��r�
�1�
�>��~�~�-�-�H�%+�@�V�c�x��A��/?�c�V�F�@���
��M�M�6�"�:�a�=�'�2�3��M�M�6�!�9�Q�<��2�3��M�M�4�>�>�1�1�&��)�A�,�?��B�J�O�P��!�9�D�����8�t�#��G�G�L�L��I�J���(�#��
&+�1�X�D�q��N� ��M��?G��
�$�$�
�������C�D��F�2�J�q�M�*�+���
�
��As$�!F�!/F
�*G�G�
AG�Gr/r�)r6NNNFFN)r>r?r@rAr�unfilteredpropertycacherbr3r;r�rArFrB�
__classcell__)r5s@r2�mqrepor.�sQ���	�	*�	*�	:�
+�	:�	1�	.��������	Q�$	&�('	�'	r6rP)r5r��_phasedefaultsrJr+)r�rKrPs   r2�	reposetuprR�s@��_����_�B�z�z�|�|������"�"�?�3�r6c��[US5(aAURSS5(d*UR[S5URS55 U"X/UQ70UD6$)Nr;�	no_commitFs#cannot import over an applied patchr�)�hasattrr�r;r)�origr�rKr�r�s     r2�mqimportrWZs`���t�)�*�*�6�:�:��U�4�4�	
���
�4�5�v�z�z�'�7J�	
���*�4�*�6�*�*r6c��URSS5nU(dU"U/UQ70UD6$U(a@USn[R"U5(d[R"[S55eOO[R"[R"55nU(d[R"[S55e[R"X5n[XS5$)Nrbrs0only a local queue repository may be initializeds5there is no Mercurial repository here (.hg not found)T)r�rrIr
r.rr
�findrepor�getcwdr"rv)rVr�r�r�rb�repopathrKs       r2�mqinitr\ds���	���D�$�	�B�
��B�(��(��(�(����7���z�z�(�#�#��+�+��E�F��
�$�
�#�#�H�O�O�$5�6����+�+��J�K��
��=�=��&�D���4� � r6c��URSS5nU(dU"X/UQ70UD6$URnUR5nU(d[R"[S55eU"URU/UQ70UD6$)z>Add --mq option to operate on patch repository instead of mainrbNr�)r�rbrr
r.rr�)rVr�rKr�r�rbrcrs        r2�	mqcommandr^zss��
���D�$�	�B�
��B�.�t�.�v�.�.����A�	���	�A���k�k�!�2�3�4�4�����a�)�$�)�&�)�)r6c���URn/n[UR5[URU55pTU(a-UR	UR[
S5S5U-5 U(a-UR	UR[
S5S5U-5 U(a-UR[
S5SRU5-5 gUR[
S55 g)Ns
%d applied�qseries.applieds%d unapplied�qseries.unappliedsmq:     %s
s, smq:     (empty queue)
)
rbrorr�rJrrrqr�r�)r�rKrcr�r#�us      r2�summaryhookrc�s������A�
�A��q�y�y�>�3�q�{�{�4�0�1�q��	������!�M�*�,>�?�!�C�D��	������!�O�,�.B�C�a�G�H��
����?�#�e�j�j��m�3�4�	����,�-�.r6smq()c�6�[R"USS[S55 URRVs1sHo0UR
R
5iM! nn[R"UVs/sHo3U;dM
UPM sn5$s snfs snf)zChangesets managed by MQ.rsmq takes no arguments)	r�getargsrrbrrVr�r�baseset)rK�subsetr�rrs     r2�revsetmqrh�su�����q�!�Q��":� ;�<�+/�7�7�?�?�;�?�a�A�F�F�|���!�?�G�;�����?��1�w�,�Q��?�@�@��<��?s�&B�7	B�Bc�^�SSS[S54/m[R"[RS[
5 [RRS[5 [R"[RS[5nUSRT5 U4SjnU"[R5 [RSn[R"5HupEXS:wdMU"[US	055 M! g)
Nr6r#soperate on patch repositorysimportsinitrgc�>�UR5Heup[R"U5SnUSnUR(aM6[R
"X[5nUSRT5 Mg gr�)rzr
�parsealiasesr�r�wrapcommandr^rp)�cmdtable�cmdr
�func�mqopts    �r2�dotable�extsetup.<locals>.dotable�s`���"�.�.�*�J�C��&�&�s�+�A�.�C���8�D��{�{���*�*�8�)�D�E��!�H�O�O�E�"�
+r6zhgext.mqrm)rrrlr�tablerWr
�summaryhooksr�rcr\rp�sys�modules�getattr)r�r
rq�
thismodule�extname�	extmodulerps      @r2�extsetupr{�s�����5�$��"@� A�
B�C�E����8�>�>�9�h�?������U�K�0��"�"�8�>�>�7�F�C�E�	�!�H�O�O�E��#��H�N�N�����Z�(�J�(�3�3�5����"��G�I�z�2�6�7�6r6sredsyellowsgreensblue bold underlines
black boldsred bold)r�r�r�r`sqseries.guardedsqseries.missingrar.)x�__doc__�
__future__rr�rMr!ru�mercurial.i18nr�mercurial.noderrrr	�	mercurialr
rrr
rrrrr�rrr+rrrrrrrrrrr��mercurial.utilsrrr r��
seriesoptsrm�command�
testedwith�configtable�
configitemrH�KeyErrorr+�loadrQ�normpathrGrSrnr�rr�r�r�r.r�r�r^�CATEGORY_CHANGE_ORGANIZATIONr#rr��CATEGORY_IMPORT_EXPORTrTrv�CATEGORY_REPO_CREATIONr��
remoteoptsr�rs�CATEGORY_COMMITTINGr�rr'r�r�r��walkopts�
commitoptsr�r:r2�	diffopts2�CATEGORY_FILE_CONTENTSru�CATEGORY_CHANGE_MANAGEMENTr�r�rOrvr�r�r�r�r�r)r0r�rr&r+rRrWr\r^rc�revsetpredicaterh�
i18nfunctionsr{�
colortabler/r6r2�<module>r�s�
��7�r#�	�	�
�
����������,���/�/���Z��q�)L�'M�N�
O�
�
��
�
�
�H�
%��
#�
���
�
!�
!�+�
.�
�
�	�
���
�	����
�	����
�	�
���.��O�O�H��	����
�$�=�=��-�-�
�	��
����(�V#�Lu"�u"�p,�$	�U�[�[�	�J �J �Z@	�	��	
�w��a� 2�3�4����
�6�7�
�f�I�	
�	��#�$��5�5��
��
�	��
�G�T�1�E�F�G�H����&�'��5�5�����@	��
�H�d�A�:�;�<�=�
�J��(�)��5�5�	��
��>	��	
�{�D�!�$E�"F�G�	
�w��Q�4�5�q��z�B�	
�x��q�!<�=�>����
�:�;�
�f�I�	
�
�v�t�Q�>�?�@�	
�w��a� 8�9�:�
��G�H��/�/�#�&4
�'�&4
�n
�8	��
�N�D�!�$>�"?�@�A�����/�/���;��;�	�
�	�g�t�Q�D�E�F����
�:�;�		
�
���
�:�;�		
�
���
�4�5�
�g�J�	
��,���-�.�,�-��/�/��7�:^2�;�:^2�B	���N�N�<� ��#��)�*��,�,���,��,�	��	
�z�4��#A�!B�C��������5�5��
��
�	����o���5�5�	��
��.	�������5�5�	�	F�
�	F�	�������5�5�	��
��$7�	��	
�w��a� C�D�E�	
�x��q�!K�L�M�	
�v�t�Q�>�?�@�	
�~�t�Q�'M�%N�O�	
�w��Q�=�>��'�
�K�	
�~�t�Q�'M�%N�O�	
�w��Q�=�>��'�
�K�����	����
��9�:��,�,���!�$ 
�%�$ 
�F	��	
�w��a� C�D�E�	
�v�t�Q�>�?�@����
�L�M�		
�
���
�C�D�		
�
���
�A�B�
�g�J�	
�
���
�A�B�		
�
���
�?�@�
�g�J�	
�9#�H���I$�J���K%�L�F�G��,�,���W,�Z�[,�Z�>	�����w�(�(�(�7�+;�+;�;��'�(��/�/���
�
��
�(	��	
�w��a� C�D�E�	
�w��a� :�;�<�����	�
�8�9��3�3�	�D�	�D�N	��
���
�7�8�		
�
�x��q�!?�@�A�	�l�D�!�$I�"J�K�	��#�$��5�5�����<	�
�	
�w��a� >�?�@�	
�w��a� 2�3�4���A�B��5�5��H0��H0�V	�������5�5�	�-�
�-�$�$�	��
���
�7�8�		
�
�x��q�!A�B�C����
�>�?�		
�
�w��a� A�B�C�	
�v�t�Q�3�4�5�	
�x��q�!I�J�K�	
�w��Q�?�@�!�G�*�M����
�>�?�		
�

�l�D�!�$I�"J�K�1�4�9�:��5�5��=�@%�A�@%�P	��	
�v�t�Q�1�2�3�	
�w��Q�@�A�1�W�:�N����
�7�8�		
�
�x��q�!M�N�O�	�l�D�!�$I�"J�K���*�+��5�5��!�$!�%�$!�H	����#�$��5�5�	�4�
�4�n	��	
�y�$��"6� 7�8�	
�y�$��"C� D�E���"�#��5�5��
��
�	��	
�w��a� 7�8�9�	
�w��Q�5�6��'�
�C�	
�x��q�!;�<�=�	
�x��q��/�0�	����
��>�?��5�5��!
��!
�H	��	
�w��a� 5�6�7�	
�y�$��"C� D�E�	�f�d�A�J�K�L�	�j�$��">� ?�@�	��*�+��5�5�
�n�
�n�b	��
�J��a� @�A�B�C��!�"��5�5�	�%
�
�%
�P	�
�	
�w��q�!=�>�?�	�i���"?� @�A�	
�y�%��#6�!7�8�	�i���"8� 9�:�	�i���">� ?�@�	�h��q�!F�G�H�
�����5�5��m��m�`	�e4�P+�!�,
*� 
/� �+�+�-�����A��A��
�
�8�:�!�!�.�%�#�'��
��kA�
.����O�O�G�I�x��-�
.�s�b3�3)c �c 

Youez - 2016 - github.com/yon3zu
LinuXploit