§
    	^µcg ã                   ó  — d dl Z d dlZddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZ ej        Zej        Z d	„ Z!d/d
„Z" G d„ d¦  «        Z#d„ Z$d„ Z%d„ Z&d„ Z'd„ Z(d„ Z) G d„ d¦  «        Z*	 d0d„Z+d„ Z,	 	 d1d„Z-d„ Z.d„ Z/d„ Z0d„ Z1 ej2        d¬¦  «         G d„ d ¦  «        ¦   «         Z3	 d/d!„Z4d"„ Z5d#Z6d$Z7d%Z8d&Z9	 	 	 	 	 	 	 	 d2d'„Z:d3d(„Z;d4d)„Z<d/d*„Z=d4d+„Z>	 	 	 	 	 d5d,„Z?d4d-„Z@	 	 	 	 	 	 	 d6d.„ZAdS )7é    Né   )Ú_)Únullrev)Úattr)Ú
stringutil)Ú	timestamp)ÚcopiesÚencodingÚerrorÚ	filemergeÚmatchÚ
mergestateÚobsutilÚpathutilÚpolicyÚpycompatÚscmutilÚsubrepoutilÚutilÚworkerc                 óâ   — | j                              ||¦  «        }g d¢}||vrKd                     d„ |D ¦   «         ¦  «        }t          d¦  «        }|||||fz  }t	          j        |¦  «        ‚|S )N)ó   aborts   ignoreó   warns   , c                 ó   — g | ]
}d |z   d z   ‘ŒS )ó   '© )Ú.0Úvs     ú1/usr/lib/python3/dist-packages/mercurial/merge.pyú
<listcomp>z*_getcheckunknownconfig.<locals>.<listcomp>*   s    € Ð>Ð>Ð>°1˜t a™x¨$™Ð>Ð>Ð>ó    s$   %s.%s not valid ('%s' is none of %s))ÚuiÚconfigÚjoinr   r   ÚConfigError)ÚrepoÚsectionÚnamer#   ÚvalidÚvalidstrÚmsgs          r   Ú_getcheckunknownconfigr,   &   s„   € ØŒW�^Š^˜G TÑ*Ô*€FØ*Ð*Ð*€EØ�UÐÐØ—:’:Ð>Ð>¸Ð>Ñ>Ô>Ñ?Ô?ˆÝÐ7Ñ8Ô8ˆØ�˜˜v xÐ0Ñ0ˆÝÔ Ñ$Ô$Ð$Ø€Mr!   c                 ó,  — |                      ¦   «         rdS |€|}| j        j                             |¦  «        o[| j                             |¦  «        oA| j                             |¦  «        | j        vo ||                              ||         ¦  «        S ©NF)Ú
isinmemoryÚwvfsÚauditÚcheckÚisfileorlinkÚdirstateÚ	normalizeÚcmp)r&   ÚwctxÚmctxÚfÚf2s        r   Ú_checkunknownfiler;   1   s”   € Ø‡‚ÑÔð ð ˆuà	€zØˆàŒ	Œ×Ò˜aÑ Ô ð 	"ØŒI×"Ò" 1Ñ%Ô%ð	"àŒM×#Ò# AÑ&Ô&¨d¬mÐ;ð	"ð �ŒH�LŠL˜˜aœÑ!Ô!ð	r!   c                   ó   — e Zd ZdZd„ Zd„ ZdS )Ú_unknowndirscheckeray  
    Look for any unknown files or directories that may have a path conflict
    with a file.  If any path prefix of the file exists as a file or link,
    then it conflicts.  If the file itself is a directory that contains any
    file that is not tracked, then it conflicts.

    Returns the shortest path at which a conflict occurs, or None if there is
    no conflict.
    c                 óR   — t          ¦   «         | _        t          ¦   «         | _        d S ©N)ÚsetÚ_unknowndircacheÚ_missingdircache©Úselfs    r   Ú__init__z_unknowndirschecker.__init__O   s$   € õ !$¡¤ˆÔõ
 !$¡¤ˆÔÐÐr!   c                 óŒ  — |                      ¦   «         rdS t          t          t          j        |¦  «        ¦  «        ¦  «        D ]Ç}|| j        v r d S || j        v rŒ|j        j         	                    |¦  «        r�|j         
                    |¦  «        r%|j                             |¦  «        |j        vr|c S |j                             |¦  «        s| j                             |¦  «          d S | j                             |¦  «         ŒÈ|j        j         	                    |¦  «        r˜|j                             |¦  «        r~|j                             |¦  «        D ]c\  }}}|D ]Z}t#          j        |j                             ||¦  «        ¦  «        }|j                             |d¬¦  «        }||j        vr|c c S Œ[Œdd S )NFT)Úisknown)r/   ÚreversedÚlistr   ÚfinddirsrB   rA   r0   r1   r2   r3   r4   r5   ÚlexistsÚaddÚisdirÚwalkr   ÚpconvertÚreljoin)	rD   r&   r7   r9   ÚpÚdirsÚfilesÚfnÚrelfs	            r   Ú__call__z_unknowndirschecker.__call__Z   sÚ  € Ø�?Š?ÑÔð 	à�5õ �$�xÔ0°Ñ3Ô3Ñ4Ô4Ñ5Ô5ð 	-ð 	-ˆAØ�DÔ)Ð)Ð)Ø��Ø�DÔ)Ð)Ð)ØØŒyŒ×$Ò$ QÑ'Ô'ð 	-à”I×*Ò*¨1Ñ-Ô-ðàœ×/Ò/°Ñ2Ô2¸$¼-ÐGÐGà�H�H�HØ”y×(Ò(¨Ñ+Ô+ð ØÔ)×-Ò-¨aÑ0Ô0Ð0Ø�F�FØÔ%×)Ò)¨!Ñ,Ô,Ð,øð Œ9Œ?× Ò  Ñ#Ô#ð 	!¨¬	¯ª¸Ñ(:Ô(:ð 	!à"&¤)§.¢.°Ñ"3Ô"3ð !ð !‘��4˜Øð !ð !�BÝœ=¨¬×):Ò):¸1¸bÑ)AÔ)AÑBÔB�DØœ=×2Ò2°4ÀÐ2ÑFÔF�DØ 4¤=Ð0Ð0Ø ˜˜˜˜˜ð 1ð!ð
 ˆtr!   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rE   rV   r   r!   r   r=   r=   D   s<   € € € € € ðð ð	&ð 	&ð 	&ðð ð ð ð r!   r=   c           
      óô  ‡ ‡‡‡— t          ¦   «         }t          ¦   «         Št          ¦   «         Št          ¦   «         Št          ‰ dd¦  «        }t          ‰ dd¦  «        }‰ j                             dd¦  «        }	|�sˆˆfd„}
t	          ¦   «         }|                     t          j        t          j        f¦  «        D ]T}t          ‰ |||¦  «        r| 
                    |¦  «         Œ*|	r(||vr$ |‰ ||¦  «        }|�‰ 
                    |¦  «         ŒU|                     t          j        g¦  «        D ]4\  }}}t          ‰ ||||d         ¦  «        r| 
                    |¦  «         Œ5|‰z  }ˆ fd	„|D ¦   «         }||z
  } |
||¦  «          |
||¦  «         �nt          |                     t          j        g¦  «        ¦  «        D ]î\  }}}|\  }}t          ‰ |||¦  «        }‰ j                             |¦  «        r|}n|}|s%|                     |t          j        |d
fd¦  «         Œc|s|dk    r(|                     |t          j        ||dd
|fd¦  «         Œ“|dk    r‰ 
                    |¦  «         Œ¯|dk    r‰ 
                    |¦  «         |                     |t          j        |dfd¦  «         Œït)          ‰¦  «        D ]}‰ j        j        }|‰v rR‰ j                             |¦  «        r |t1          d¦  «        |z  ¦  «         ŒH |t1          d¦  «        |z  ¦  «         Œd |t1          d¦  «        |z  ¦  «         Œ€‰r!t3          j        t1          d¦  «        ¦  «        ‚t)          ‰¦  «        D ]q}‰ j                             |¦  «        r+‰ j                             t1          d¦  «        |z  ¦  «         ŒG‰ j                             t1          d¦  «        |z  ¦  «         Œrt          |                     t          j        g¦  «        ¦  «        D ]c\  }}}||v p0|‰v p,t7          ˆfd„t9          j        |¦  «        D ¦   «         ¦  «        }|\  }|                     |t          j        ||f|¦  «         ŒddS )z¼
    Considers any actions that care about the presence of conflicting unknown
    files. For some actions, the result is to abort; for others, it is to
    choose a different action.
    ó   merges   checkunknowns   checkignoredó   experimentaló   merge.checkpathconflictsc                 ó|   •— |dk    r‰                      | ¦  «         d S |dk    r‰                      | ¦  «         d S d S )Nr   r   )Úupdate)Ú	conflictsr#   ÚabortconflictsÚwarnconflictss     €€r   Úcollectconflictsz,_checkunknownfiles.<locals>.collectconflicts�   sU   ø€ Ø˜Ò!Ð!Ø×%Ò% iÑ0Ô0Ð0Ð0Ð0Ø˜7Ò"Ð"Ø×$Ò$ YÑ/Ô/Ð/Ð/Ð/ð #Ð"r!   Nr   c                 óH   •— h | ]}‰j                              |¦  «        ¯|’ŒS r   )r4   Ú_ignore)r   Úcr&   s     €r   ú	<setcomp>z%_checkunknownfiles.<locals>.<setcomp>§   s.   ø€ ÐPÐPÐP !°t´}×7LÒ7LÈQÑ7OÔ7OÐP˜AÐPÐPÐPr!   Fó   remote createdr   s#   remote differs from untracked localr   Ts,   %s: untracked file conflicts with directory
s,   %s: untracked directory conflicts with file
s   %s: untracked file differs
sL   untracked files in working directory differ from files in requested revisions   %s: replacing untracked file
s+   %s: replacing untracked files in directory
c              3   ó    •K  — | ]}|‰v V — Œ	d S r?   r   )r   rQ   Úpathconflictss     €r   ú	<genexpr>z%_checkunknownfiles.<locals>.<genexpr>ù   s(   øè è € ÐDÐD¨!�1˜Ð%ÐDÐDÐDÐDÐDÐDr!   )r@   r,   r"   Ú
configboolr=   rS   ÚmergestatemodÚACTION_CREATEDÚACTION_DELETED_CHANGEDr;   rL   Ú
getactionsÚACTION_LOCAL_DIR_RENAME_GETrI   ÚACTION_CREATED_MERGEr4   rf   ÚaddfileÚ
ACTION_GETÚACTION_MERGEÚsortedÚwarnr0   r3   r   r   Ú
StateErrorÚanyr   rJ   )r&   r7   r8   ÚforceÚmresultÚ
mergeforceÚfileconflictsÚunknownconfigÚignoredconfigÚ
pathconfigrd   Úcheckunknowndirsr9   ÚpathÚargsr+   ÚallconflictsÚignoredconflictsÚunknownconflictsÚfl2ÚancÚ	differentr#   rx   ÚbackupÚflagsrb   rk   rc   s   `                         @@@r   Ú_checkunknownfilesr�   |   sw  øøøø€ õ ‘E”E€MÝ‘E”E€MÝ‘E”E€MÝ‘U”U€NÝ*¨4°¸?ÑKÔK€MÝ*¨4°¸?ÑKÔK€MØ”×#Ò#ØÐ4ñô €Jð ñ Oð	0ð 	0ð 	0ð 	0ð 	0ð 	0õ /Ñ0Ô0ÐØ—’åÔ,ÝÔ4ðñ
ô 
ð 	,ð 	,ˆAõ !  t¨T°1Ñ5Ô5ð ,Ø×!Ò! !Ñ$Ô$Ð$Ð$Øð , ¨  Ø'Ð'¨¨d°AÑ6Ô6�ØÐ#Ø!×%Ò% dÑ+Ô+Ð+øØ#×.Ò.ÝÔ6Ð7ñ
ô 
ð 	%ð 	%‰LˆAˆt�Sõ !  t¨T°1°d¸1´gÑ>Ô>ð %Ø×!Ò! !Ñ$Ô$Ð$øà$ }Ñ4ˆØPÐPÐPÐP |ÐPÑPÔPÐØ'Ð*:Ñ:ÐØÐÐ)¨=Ñ9Ô9Ð9ØÐÐ)¨=Ñ9Ô9Ð9Ñ9å Ø×Ò¥Ô BÐCÑDÔDñ
ô 
ð .	ð .	‰LˆAˆt�Sð ‰HˆC�Ý)¨$°°d¸AÑ>Ô>ˆIØŒ}×$Ò$ QÑ'Ô'ð 'Ø&��à&�ð ð Ø—’ØÝ!Ô,Ø˜%�LØ%ñ	ô ð ð ð ð ˜v¨Ò1Ð1Ø—’ØÝ!Ô.Ø˜˜4 ¨Ð,Ø:ñ	ô ð ð ð ˜8Ò#Ð#Ø×"Ò" 1Ñ%Ô%Ð%Ð%à˜WÒ$Ð$Ø!×%Ò% aÑ(Ô(Ð(Ø—’ØÝ!Ô,Ø˜$�KØ%ñ	ô ð ð õ �NÑ#Ô#ð 9ð 9ˆØŒwŒ|ˆØ�ÐÐØŒy×%Ò% aÑ(Ô(ð NØ�•QÐGÑHÔHÈ1ÑLÑMÔMÐMÐMà�•QÐGÑHÔHÈ1ÑLÑMÔMÐMÐMàˆD•Ð2Ñ3Ô3°aÑ7Ñ8Ô8Ð8Ð8Øð 
ÝÔÝð;ñô ñ
ô 
ð 	
õ �MÑ"Ô"ð Qð QˆØŒ9×!Ò! !Ñ$Ô$ð 	QØŒG�LŠL�Ð<Ñ=Ô=ÀÑAÑBÔBÐBÐBàŒG�LŠL�ÐJÑKÔKÈaÑOÑPÔPÐPÐPåØ×Ò�MÔ8Ð9Ñ:Ô:ñô ð 	Kð 	K‰ˆˆ4�ð �Ðð EØ�MÐ!ðEåÐDÐDÐDÐD­xÔ/@ÀÑ/CÔ/CÐDÑDÔDÑDÔDð 	ð
 ‰ˆØ�Š˜�=Ô3°e¸V°_ÀcÑJÔJÐJÐJð	Kð 	Kr!   c                 ó"  — t           j        }|rt           j        }|                      ¦   «         D ]}||vr|                     ||dd¦  «         Œ|s=|                      ¦   «         D ]*}||vr"|                     |t           j        dd¦  «         Œ)dS dS )aÌ  
    Forget removed files

    If we're jumping between revisions (as opposed to merging), and if
    neither the working directory nor the target rev has the file,
    then we need to remove it from the dirstate, to prevent the
    dirstate from listing the file when it is no longer in the
    manifest.

    If we're merging, and the other revision has removed a file
    that is not present in the working directory, we need to mark it
    as removed.
    Ns   forget deleteds   forget removed)rn   ÚACTION_FORGETÚACTION_REMOVEÚdeletedrt   Úremoved)r7   r8   Úbranchmerger|   Úmr9   s         r   Ú_forgetremovedr•   ÿ   s¸   € õ 	Ô#€AØð (ÝÔ'ˆØ�\Š\‰^Œ^ð ;ð ;ˆØ�Dˆ=ˆ=Ø�OŠO˜A˜q $Ð(9Ñ:Ô:Ð:øàð Ø—’‘”ð 	ð 	ˆAØ˜ˆ}ˆ}Ø—’ØÝ!Ô/ØØ%ñ	ô ð øðð ð	ð 	r!   c                 ó.  — |                       ¦   «         }|                     ¦   «         sit          |                     |¦  «        ¦  «        }|rDt	          |                     ¦   «         ¦  «        D ]"} ||¦  «        s|                     |¦  «         Œ#nt          |¦  «        }|�r�|                     t          j        t          j	        t          j
        t          j        t          j        t          j        f¦  «        D ]}|                     |¦  «         Œ|                     t          j        f¦  «        D ]}|                     |¦  «         Œ|                     t          j        g¦  «        D ]5\  }}}|\  }}	|                     |¦  «         |                     |¦  «         Œ6|                     t          j        f¦  «        D ]}|                     |¦  «         Œ|                     t          j        g¦  «        D ]:\  }}}|\  }
}}}}|r|                     |
¦  «         |                     |¦  «         Œ;i }|D ]O}t+          j        |¦  «        }||v r0t/          d¦  «        }||||         fz  }t1          j        |¦  «        ‚|||<   ŒPdx}x}}t5          |                     ¦   «         ¦  «        D ]e\  }}|                     |¦  «        r?|                     |¦  «        s*t/          d¦  «        }|||fz  }t1          j        |¦  «        ‚|dz   }|dz   }|}ŒfdS )z,
    Check for case-folding collisions.
    s(   case-folding collision between %s and %sr!   s5   case-folding collision between %s and directory of %só   /N)ÚnarrowmatchÚalwaysr@   rN   rI   rS   Ú
removefilern   Ú
ACTION_ADDÚACTION_ADD_MODIFIEDr�   ru   ÚACTION_CHANGED_DELETEDrp   rL   r�   Údiscardrq   ÚACTION_DIR_RENAME_MOVE_LOCALrr   rv   r   Únormcaser   r   ry   rw   ÚitemsÚ
startswith)r&   Úwmfr|   r˜   Úpmmfr9   r„   r+   r:   rŒ   Úf1ÚfaÚmover‰   ÚfoldmapÚfoldÚ
foldprefixÚunfoldprefixÚlastfulls                      r   Ú_checkcollisionr­      s7  € ð
 ×"Ò"Ñ$Ô$€KØ×ÒÑÔð Ý�3—8’8˜KÑ(Ô(Ñ)Ô)ˆØð 	*Ý˜'Ÿ-š-™/œ/Ñ*Ô*ð *ð *�Ø"�{ 1‘~”~ð *Ø×&Ò& qÑ)Ô)Ð)øøõ �3‰xŒxˆàñ à—’åÔ(ÝÔ1ÝÔ+ÝÔ(ÝÔ4ÝÔ4ðñ	
ô 	
ð 
	ð 
	ˆAð �HŠH�Q‰KŒKˆKˆKØ—’¥Ô ;Ð=Ñ>Ô>ð 	ð 	ˆAØ�LŠL˜‰OŒOˆOˆOØ#×.Ò.ÝÔ7Ð8ñ
ô 
ð 	ð 	‰LˆAˆt�Sð ‰IˆB�Ø�LŠL˜ÑÔÐØ�HŠH�Q‰KŒKˆKˆKØ—’¥Ô IÐKÑLÔLð 	ð 	ˆAØ�HŠH�Q‰KŒKˆKˆKØ#×.Ò.µÔ0JÐ/KÑLÔLð 	ð 	‰LˆAˆt�SØ$(Ñ!ˆB��B˜˜cØð !Ø—’˜RÑ Ô Ð Ø�HŠH�Q‰KŒKˆKˆKð €GØð ð ˆÝŒ}˜QÑÔˆØ�7ˆ?ˆ?ÝÐ?Ñ@Ô@ˆCØ�A�w˜t”}Ð%Ñ%ˆCÝÔ" 3Ñ'Ô'Ð'Øˆ�‰ˆð ,/Ð.€JÐ.� Ý˜'Ÿ-š-™/œ/Ñ*Ô*ð ð ‰ˆˆaØ�?Š?˜:Ñ&Ô&ð 	(¨q¯|ª|¸LÑ/IÔ/Ið 	(åÐLÑMÔMˆCØ�H˜a�=Ñ ˆCÝÔ" 3Ñ'Ô'Ð'Ø˜D‘[ˆ
Ø˜4‘xˆØˆˆðð r!   c              #   óZ   K  — |D ]%}t          j        |¦  «        D ]}||v r||fV —  nŒŒ&dS )z«
    Generator that yields pairs of all the files in the manifest that are found
    inside the directories listed in dirs, and which directory they are found
    in.
    N)r   rJ   )r&   ÚmanifestrR   r9   rQ   s        r   Ú_filesindirsr°   d  s\   è è € ð ð ð ˆÝÔ" 1Ñ%Ô%ð 	ð 	ˆAØ�DˆyˆyØ˜�d�
�
�
Ø�ð øðð r!   c           
      ó	  — |                      ¦   «         }t          ¦   «         }t          ¦   «         }t          ¦   «         }t          ¦   «         }t          ¦   «         }	|                     t          j        t          j        t          j        t          j        f¦  «        D ]S}
|                     t          j
        |
¦  «        ¦  «         |                     |
¦  «        r|                     |
¦  «         ŒT|                     t          j        f¦  «        D ]}
|	                     |
¦  «         Œ|                     t          j        f¦  «        D ]%\  }
}}|\  }}}}}|r|	                     |¦  «         Œ&|                     t          j        f¦  «        D ] \  }
}}|\  }}|	                     |¦  «         Œ!|D ]—}||v r/||v r|                     |¦  «         n|                     |¦  «         |                     |¦  «        }|rK|d         t          j        t          j        t          j        t          j        fv r|                     |¦  «         Œ˜|D ]Â}||	vr¼t#          |¦  «                             d¦  «        }t'          j        |||t          |                     ¦   «         ¦  «        ¦  «        }||                              ¦   «         p|}|                     |t          j        ||fd¦  «         |                     |t          j        |dfd¦  «         ŒÃ|�r&t#          |¦  «                             d¦  «        }t3          | ||¦  «        D ]ò\  }
}|
|	vré|                     |¦  «        \  }}}t'          j        |||t          |                     ¦   «         ¦  «        ¦  «        }|t          j        t          j        fv r|                     ||||¦  «         n,|d         }|                     |t          j        ||fd¦  «         |                     |t          j        |dfd¦  «         |                     |¦  «          nŒó|rP|D ],}| j                             t=          d¦  «        |z  ¦  «         Œ-t?          j         t=          d	¦  «        ¦  «        ‚d
S )z’
    Check if any actions introduce path conflicts in the repository, updating
    actions to record or handle the path conflict accordingly.
    r   ó   +s   local path conflictó   ls   path conflicts   remote path conflictó   rs#   %s: is both a file and a directory
s,   destination manifest contains path conflictsN)!r¯   r@   rS   rn   ro   rp   rv   rs   r`   r   rJ   ÚhasdirrL   r�   rq   rŸ   ÚgetfileÚbytesÚrstripr   ÚsafenameÚ
copysourcert   ÚACTION_PATH_CONFLICT_RESOLVEÚACTION_PATH_CONFLICTr°   rr   Úremover"   rx   r   r   ry   )r&   r7   r8   r|   ÚmfÚlocalconflictsÚremoteconflictsÚinvalidconflictsÚcreatedfiledirsÚdeletedfilesr9   r„   r+   r¥   r:   r¦   r§   r‰   rŒ   rQ   ÚpdÚctxnameÚpnewÚporigr”   Úfls                             r   ÚcheckpathconflictsrÉ   q  sÑ  € ð
 
�Š‰Œ€Bõ ‘U”U€Nõ ‘e”e€Oõ
 ‘u”uÐõ ‘e”e€Oõ ‘5”5€Là�]Š]åÔ(ÝÔ0ÝÔ&ÝÔ.ð		
ñô ð #ð #ˆð 	×Ò�xÔ0°Ñ3Ô3Ñ4Ô4Ð4Ø�9Š9�Q‰<Œ<ð 	#ð ×Ò Ñ"Ô"Ð"øà�]Š]�MÔ7Ð9Ñ:Ô:ð ð ˆØ×Ò˜ÑÔÐÐØ!×,Ò,­mÔ.HÐ-JÑKÔKð !ð !‰ˆˆD�#Ø $ÑˆˆB��D˜#Øð 	!Ø×Ò˜RÑ Ô Ð øØ!×,Ò,Ý	Ô	3Ð5ñô ð ð ‰ˆˆD�#ð ‰	ˆˆEØ×Ò˜ÑÔÐÐð ð $ð $ˆØ�ˆ7ˆ7Ø�Dˆyˆyð !×$Ò$ QÑ'Ô'Ð'Ð'ð ×"Ò" 1Ñ%Ô%Ð%Ø�_Š_˜QÑÔˆØð 		$�"�Q”%ÝÔ(ÝÔ0ÝÔ&ÝÔ.ð	
ð 
ð 
ð × Ò  Ñ#Ô#Ð#øð ð ð ˆØ�LÐ Ð Ý˜D‘k”k×(Ò(¨Ñ.Ô.ˆGÝ”=  G¨Tµ3°w·}²}±´Ñ3GÔ3GÑHÔHˆDØ˜”G×&Ò&Ñ(Ô(Ð-¨AˆEØ�OŠOØÝÔ:Ø�E�
Ø&ñ	ô ð ð �OŠOØÝÔ2Ø�t�Ø ñ	ô ð øð ñ å˜‘+”+×$Ò$ TÑ*Ô*ˆÝ   r¨?Ñ;Ô;ð 	ð 	‰DˆAˆqØ˜Ð$Ð$Ø&Ÿš¨qÑ1Ô1‘��4˜Ý”} Q¨°µs¸7¿=º=¹?¼?Ñ7KÔ7KÑLÔL�ØÝ!Ô8Ý!Ô.ðð ð ð
 —O’O D¨!¨T°3Ñ7Ô7Ð7Ð7ð ˜aœ�BØ—O’OØÝ%ÔAØ˜B˜Ø/ñ	ô ð ð —’ØÝ!Ô6Ø˜4�LØ$ñ	ô ð ð  ×&Ò& qÑ)Ô)Ð)Ø�ð3 %ð6 ð 
Ø!ð 	Ið 	IˆAØŒG�LŠL�ÐBÑCÔCÀaÑGÑHÔHÐHÐHÝÔÝÐ=Ñ>Ô>ñ
ô 
ð 	
ð
ð 
r!   c                 ó6  — |                      ¦   «         D �]\  }} | |¦  «        rŒ|s|                     |¦  «         Œ*|d         j        r|                     |¦  «         ŒM|d         j        r„|                     d¦  «        s8|                     |¦  «         |                     |d|d         j        ¦  «         Œ§t          d¦  «        }t          d¦  «        }t          j	        ||z  |¬¦  «        ‚t          d¦  «        }t          j
        ||z  ¦  «        ‚dS )	z§
    Filters out actions that can ignored because the repo is narrowed.

    Raise an exception if the merge cannot be completed because the repo is
    narrowed.
    r   r—   s   outside-narrow-merge-actionsB   merge affects file '%s' outside narrow, which is not yet supporteds'   merging in the other direction may work©Úhints-   conflict in file '%s' is outside narrow cloneN)Úfilemaprš   Úno_opÚnarrow_safeÚendswithÚaddcommitinfoÚchangesr   r   ÚAbortry   )r˜   r“   r|   r9   Úactionr+   rÌ   s          r   Ú_filternarrowactionsrÕ   ø  sG  € ð —_’_Ñ&Ô&ð ,ñ ,‰	ˆˆ6Øˆ;�q‰>Œ>ð 	,ØØð 	,Ø×Ò˜qÑ!Ô!Ð!Ð!Ø�AŒYŒ_ð 	,Ø×Ò˜qÑ!Ô!Ð!Ð!Ø�AŒYÔ"ð 	,Ø—:’:˜dÑ#Ô#ð 6Ø×"Ò" 1Ñ%Ô%Ð%à×%Ò%ØÐ5°v¸a´yÔ7Hñô ð ð õ ð2ñô �õ ÐCÑDÔD�Ý”k #¨¡'°Ð5Ñ5Ô5Ð5åÐFÑGÔGˆCÝÔ" 3¨¡7Ñ+Ô+Ð+ð/,ð ,r!   c                   ó¼   — e Zd ZdZd„ Zd„ Zd„ Zdd„Zdd„Zd„ Z	dd
„Z
dd„Zdd„Zd„ Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zd„ Zd„ ZdS )Úmergeresultz¶An object representing result of merging manifests.

    It has information about what actions need to be performed on dirstate
    mapping of divergent renames and other such cases.c                 ó¨   — i | _         i | _        i | _        t          j        t
          ¦  «        | _        t          j        t
          ¦  «        | _        dS )aY  
        filemapping: dict of filename as keys and action related info as values
        diverge: mapping of source name -> list of dest name for
                 divergent renames
        renamedelete: mapping of source name -> list of destinations for files
                      deleted on one side and renamed on other.
        commitinfo: dict containing data which should be used on commit
                    contains a filename -> info mapping
        actionmapping: dict of action names as keys and values are dict of
                       filename as key and related data as values
        N)Ú_filemappingÚ_divergeÚ_renamedeleteÚcollectionsÚdefaultdictÚdictÚ_commitinfoÚ_actionmappingrC   s    r   rE   zmergeresult.__init__!  sG   € ð ˆÔØˆŒØˆÔÝ&Ô2µ4Ñ8Ô8ˆÔÝ)Ô5µdÑ;Ô;ˆÔÐÐr!   c                 ó"   — || _         || _        d S r?   )rÚ   rÛ   )rD   ÚdivergeÚrenamedeletes      r   Úupdatevalueszmergeresult.updatevalues3  s   € ØˆŒØ)ˆÔÐÐr!   c                 ó”   — || j         v r| j         |         \  }}}| j        |         |= |||f| j         |<   ||f| j        |         |<   dS )a  adds a new file to the mergeresult object

        filename: file which we are adding
        action: one of mergestatemod.ACTION_*
        data: a tuple of information like fctx and ctx related to this merge
        message: a message about the merge
        N©rÙ   rà   )rD   ÚfilenamerÔ   ÚdataÚmessageÚaÚdr”   s           r   rt   zmergeresult.addfile7  se   € ð �tÔ(Ð(Ð(ØÔ'¨Ô1‰GˆAˆq�!ØÔ# AÔ& xÐ0à'-¨t°WÐ&=ˆÔ˜(Ñ#Ø15°w°ˆÔ˜FÔ# HÑ-Ð-Ð-r!   Nc                 ó2   — || j         v r| j         |         S |S )zfreturns (action, args, msg) about this file

        returns default_return if the file is not present)rÙ   )rD   rç   Údefault_returns      r   r¶   zmergeresult.getfileH  s&   € ð �tÔ(Ð(Ð(ØÔ$ XÔ.Ð.ØÐr!   c              #   ó`   K  — |€| j         D ]}|V — ŒdS |D ]}| j        |         D ]}|V — ŒŒdS )zvreturns files on which provided action needs to perfromed

        If actions is None, all files are returned
        Nræ   )rD   Úactionsr9   rê   s       r   rS   zmergeresult.filesP  sv   è è € ð ˆ?ØÔ&ð ð �Ø����ðð ð ð ð �ØÔ,¨QÔ/ð ð �AØ�G�G�G�Gððð r!   c                 óT   — | j         |         \  }}}| j         |= | j        |         |= dS )zXremoves a file from the mergeresult object as the file might
        not merging anymoreNræ   )rD   rç   rÔ   rè   ré   s        r   rš   zmergeresult.removefile`  s9   € ð !%Ô 1°(Ô ;Ñˆ��gØÔ˜hÐ'ØÔ Ô'¨Ð1Ð1Ð1r!   Fc              #   óì   K  — |D ]n}|r;t          | j        |         ¦  «        D ]}| j        |         |         \  }}|||fV — Œ Œ?| j        |                              ¦   «         D ]\  }\  }}|||fV — ŒŒodS )zÉget list of files which are marked with these actions
        if sort is true, files for each action is sorted and then added

        Returns a list of tuple of form (filename, data, message)
        N)rw   rà   r¡   )rD   rï   Úsortrê   r9   r„   r+   s          r   rq   zmergeresult.getactionsg  s¿   è è € ð ð 	'ð 	'ˆAØð 'Ý Ô 3°AÔ 6Ñ7Ô7ð 'ð '�AØ $Ô 3°AÔ 6°qÔ 9‘I�D˜#Ø˜T 3˜,Ð&Ð&Ð&Ð&ð'ð '+Ô&9¸!Ô&<×&BÒ&BÑ&DÔ&Dð 'ð '‘N�A‘{˜˜cØ˜T 3˜,Ð&Ð&Ð&Ð&ð'ð	'ð 	'r!   c                 óf   ‡ — |€t          ‰ j        ¦  «        S t          ˆ fd„|D ¦   «         ¦  «        S )z‹returns number of files which needs actions

        if actions is passed, total of number of files in that action
        only is returnedNc              3   óL   •K  — | ]}t          ‰j        |         ¦  «        V — Œd S r?   )Úlenrà   )r   rê   rD   s     €r   rl   z"mergeresult.len.<locals>.<genexpr>  s3   øè è € Ð@Ð@°1•3�tÔ*¨1Ô-Ñ.Ô.Ð@Ð@Ð@Ð@Ð@Ð@r!   )rõ   rÙ   Úsum)rD   rï   s   ` r   rõ   zmergeresult.lenv  s>   ø€ ð ˆ?Ý�tÔ(Ñ)Ô)Ð)åÐ@Ð@Ð@Ð@¸Ð@Ñ@Ô@Ñ@Ô@Ð@r!   c              #   óÊ   K  — t           r4t          | j                             ¦   «         ¦  «        D ]\  }}||fV — Œd S | j                             ¦   «         D ]\  }}||fV — Œd S r?   )rw   rÙ   r¡   )rD   rò   ÚkeyÚvals       r   rÍ   zmergeresult.filemap�  sŽ   è è € Ýð 	Ý" 4Ô#4×#:Ò#:Ñ#<Ô#<Ñ=Ô=ð ð ‘��SØ˜3�h����ðð ð !Ô-×3Ò3Ñ5Ô5ð ð ‘��SØ˜3�h����ðð r!   c                 ó&   — || j         |         |<   dS )zdadds key-value information about filename which will be required
        while committing this mergeN©rß   )rD   rç   rø   Úvalues       r   rÑ   zmergeresult.addcommitinfo‰  s   € ð +0ˆÔ˜Ô" 3Ñ'Ð'Ð'r!   c                 ó   — | j         S r?   )rÚ   rC   s    r   râ   zmergeresult.divergeŽ  s
   € àŒ}Ðr!   c                 ó   — | j         S r?   )rÛ   rC   s    r   rã   zmergeresult.renamedelete’  s   € àÔ!Ð!r!   c                 ó   — | j         S r?   rû   rC   s    r   Ú
commitinfozmergeresult.commitinfo–  s   € àÔÐr!   c                 óì   — t          j        t          ¦  «        }| j                             ¦   «         D ]@\  }}|                     ¦   «         D ]&\  }\  }}||                              |||f¦  «         Œ'ŒA|S )z}returns a dictionary of actions to be perfomed with action as key
        and a list of files and related arguments as values)rÜ   rÝ   rI   rà   r¡   Úappend)rD   Úresrê   rë   r9   r„   r+   s          r   Úactionsdictzmergeresult.actionsdictš  s~   € õ Ô%¥dÑ+Ô+ˆØÔ'×-Ò-Ñ/Ô/ð 	.ð 	.‰DˆAˆqØ"#§'¢'¡)¤)ð .ð .‘�‘;�D˜#Ø�A”—’˜q $¨˜nÑ-Ô-Ð-Ð-ð.àˆ
r!   c                 óº   — || _         t          j        t          ¦  «        | _        | j                              ¦   «         D ]\  }\  }}}||f| j        |         |<   Œd S r?   )rÙ   rÜ   rÝ   rÞ   rà   r¡   )rD   rï   r9   Úactrè   r+   s         r   Ú
setactionszmergeresult.setactions¤  sj   € Ø#ˆÔÝ)Ô5µdÑ;Ô;ˆÔØ#'Ô#4×#:Ò#:Ñ#<Ô#<ð 	4ð 	4ÑˆAÑ��T˜3Ø*.°¨)ˆDÔ Ô$ QÑ'Ð'ð	4ð 	4r!   c                 óÌ   — | j                              ¦   «         D ]I}|t          j        t          j        t          j        t          j        fvr| j         |         r
|j        s dS ŒJdS )z^tells whether this merge resulted in some actions which can
        result in conflicts or notTF)rà   Úkeysrn   ru   ÚACTION_EXECr�   r»   rÎ   )rD   rê   s     r   Úhasconflictszmergeresult.hasconflictsª  sy   € ð Ô$×)Ò)Ñ+Ô+ð 	ð 	ˆAàå!Ô,Ý!Ô-Ý!Ô/Ý!Ô>ð	ðð ð Ô'¨Ô*ðð œðð �t�tøàˆur!   r?   ©F)rW   rX   rY   rZ   rE   rä   rt   r¶   rS   rš   rq   rõ   rÍ   rÑ   Úpropertyrâ   rã   r   r  r  r  r   r!   r   r×   r×     s^  € € € € € ð:ð :ð
<ð <ð <ð$*ð *ð *ð@ð @ð @ð"ð ð ð ðð ð ð ð 2ð 2ð 2ð'ð 'ð 'ð 'ð	Að 	Að 	Að 	Aðð ð ð ð0ð 0ð 0ð
 ðð ñ „Xðð ð"ð "ñ „Xð"ð ð ð  ñ „Xð ð ðð ñ „Xðð4ð 4ð 4ðð ð ð ð r!   r×   Fc
                 ó  ‡— t          ¦   «         }
|�|                     ¦   «         rd}d„ t          ‰                     ¦   «         ||gz   t          j        ¬¦  «        D ¦   «          t          j        ¦   «         }t          j        ¦   «         }i }|rt          j        | ‰||¦  «        \  }}}t          j
        t          |¦  «        ¦  «        }t          j
        t          |¦  «        ¦  «        }t          j
        t          |¦  «        ¦  «        }| j                             t          d¦  «        ¦  «         | j                             d|||fz  ¦  «         | j                             d|‰|fz  ¦  «         ‰                     ¦   «         |                     ¦   «         |                     ¦   «         }}}t#          |j                             ¦   «         ¦  «        }|                     |j                             ¦   «         ¦  «         t#          |j                             ¦   «         ¦  «        }|                     |j                             ¦   «         ¦  «         d|v rC‰                     ¦   «         €/t/          ˆfd„‰j        D ¦   «         ¦  «        r| j        j        |d<   |‰|g‰                     ¦   «         z   vrÝ|	sÛ| j                             d	d
¦  «        sÀ| j        dk    sµt#          |                     |¦  «                             ¦   «         ¦  «        }|j                             ¦   «         D ]\  }}||v r|                      |¦  «         Œ|j        D ]}|                      |¦  «         Œt	          j!        | |¦  «        }tE          j#        ||¦  «        }|                     ||¬¦  «        }|                     ¦   «         D �]±\  }\  \  }}\  }} |�rÅ|�rÂ||vrš|j         $                    |d¦  «        p|j         $                    |d¦  «        }!d\  }"}#|!�|||!d| %                    ¦   «         f}"d|!z  }#n||dd| %                    ¦   «         f}"d}#|
 &                    |tN          j(        |"|#¦  «         Œ³||j        v rK|j        |         }!|
 &                    |tN          j(        ||!|!d| %                    ¦   «         fd|!z  ¦  «         �Œ||j        v rK|j        |         }!|
 &                    |tN          j(        |!||!d| %                    ¦   «         fd|!z  ¦  «         �Œ[||         }$| )                    |¦  «        }%d|| z   |%z   v}&||$k    r*| |%k    r$|
 &                    |tN          j*        dd¦  «         �Œ²||$k    rp||%k    rj||k    r%|
 &                    |tN          j+        | fd¦  «         �Œé|
 &                    |tN          j,        | dfd¦  «         |r|
 -                    |dd¦  «         �Œ(|&r+||$k    r%|
 &                    |tN          j+        | fd¦  «         �ŒU|&rE||$k    r?|
 &                    |tN          j,        |dfd¦  «         |r|
 -                    |dd¦  «         �Œœ|
 &                    |tN          j(        |||d| %                    ¦   «         fd¦  «         �Œ×|�r÷||v r�Œà||j        v ru|j        |         }'|'|v r;|
 &                    |'tN          j(        ||'dd| %                    ¦   «         fd¦  «         �Œ5|
 &                    |'tN          j.        ||fd|z  ¦  «         �Œ^||j        v rK|j        |         }'|
 &                    |tN          j(        ||'|'d| %                    ¦   «         fd|'z  ¦  «         �Œ²||v r÷|||         k    rz|r$|
 &                    |tN          j/        dd¦  «         �Œè|
 &                    |tN          j0        |d|d| %                    ¦   «         fd ¦  «         |r|
 -                    |d!d"¦  «         �Œ<|| j        j1        k    r$|
 &                    |tN          j2        dd#¦  «         �Œp|
 &                    |tN          j/        dd$¦  «         |r|
 -                    |d!d"¦  «         �Œ­|
 &                    |tN          j3        dd%¦  «         �ŒÑ|�rÝ||v r�ŒÚ||j        v ru|j        |         }'|'|v r;|
 &                    |'tN          j(        |'|dd| %                    ¦   «         fd&¦  «         �Œ/|
 &                    |'tN          j4        || fd'|z  ¦  «         �ŒX||j        v rw|j        |         }'d\  }#}"|'|v r|'||'d| %                    ¦   «         f}"d(|'z  }#n|'||'d| %                    ¦   «         f}"d)|'z  }#|
 &                    |tN          j(        |"|#¦  «         �ŒØ||vr†|s%|
 &                    |tN          j5        | fd*¦  «         �Œ|s%|
 &                    |tN          j5        | fd*¦  «         �Œ*|
 &                    |tN          j6        | | %                    ¦   «         fd+¦  «         �Œb|||         k    �rd}(|j7        D ]>})| 8                    |)¦  «        r'|j7        |)         |ts          |)¦  «        d…         z   }( nŒ?|(�B|(|v r>|
 &                    |(tN          j(        |(||d| %                    ¦   «         fd,|z  ¦  «         �Œû|r%|
 &                    |tN          j5        | fd-¦  «         �Œ"|
 &                    |tN          j:        d||d| %                    ¦   «         fd.¦  «         |r|
 -                    |d!d"¦  «         �Œv|
 &                    |tN          j;        dd/¦  «         |r|
 -                    |d!d"¦  «         �Œ³| j                             d	d0¦  «        rty          | ‰||
¦  «         |  =                    ¦   «         }*|*                     ¦   «         st}          |*||
¦  «         |j?        }+|+                     |j?        ¦  «         |
 @                    ||+¦  «         |
S )1a  
    Merge wctx and p2 with ancestor pa and generate merge action list

    branchmerge and force are as passed in to update
    matcher = matcher to filter file lists
    acceptremote = accept the incoming changes without prompting

    Returns an object of mergeresult class
    Nc                 ó6   — g | ]}|                      ¦   «         ‘ŒS r   )r¯   )r   Úxs     r   r    z!manifestmerge.<locals>.<listcomp>Ø  s0   € ð ð ð àð 	
�
Š
‰Œðð ð r!   )rø   s   resolving manifests
s)    branchmerge: %s, force: %s, partial: %s
s%    ancestor: %s, local: %s, remote: %s
ó   .hgsubstatec              3   óf   •K  — | ]+}‰                      |¦  «                             ¦   «         V — Œ,d S r?   )ÚsubÚdirty)r   Úsr7   s     €r   rl   z manifestmerge.<locals>.<genexpr>û  s9   øè è € Ð:Ð: qˆt�xŠx˜‰{Œ{× Ò Ñ"Ô"Ð:Ð:Ð:Ð:Ð:Ð:r!   r]   s   merge-track-salvageds   changeset-sidedata)r   ©NNFs   both renamed from %ss   both createds   local replaced from %ss   other replaced from %sr³   r   s   remote unchangeds   update permissionss   remote is newers   filenode-sources   others   versions differTs%   remote directory rename, both createds&   remote directory rename - move from %ss   local copied/moved from %ss   remote deletes   prompt changed/deleteds   merge-removal-candidateó   yess   remote deleteds   other deleteds    ancestor missing, remote missings$   local directory rename, both createds$   local directory rename - get from %ss   remote copied from %ss   remote moved from %sri   s   remote created, get or merges-   local directory rename - respect move from %ss   remote recreatings   prompt deleted/changeds#   local not present, remote unchangedr^   )Ar×   r™   rw   Úparentsr   Úintrevr	   Úbranch_copiesÚmergecopiesr   ÚbytestrÚboolr"   Únoter   Údebugr¯   r@   ÚcopyÚvaluesr`   ÚmovewithdirÚrevrz   ÚsubstateÚnodeconstantsÚmodifiednodeidrm   ÚfilecopiesmodeÚdiffr	  r¡   rL   Ú
matchfilesÚmatchmodÚintersectmatchersÚgetÚnodert   rn   rv   rŒ   ÚACTION_KEEPr
  ru   rÑ   rŸ   r�   r�   Úaddednodeidr�   ÚACTION_KEEP_NEWrr   ro   rs   Údirmover¢   rõ   rp   ÚACTION_KEEP_ABSENTrÉ   r˜   rÕ   rã   rä   ),r&   r7   Úp2Úpar“   r{   ÚmatcherÚacceptremoteÚfollowcopiesÚforcefulldiffr|   Úbranch_copies1Úbranch_copies2râ   ÚboolbmÚboolfÚboolmÚm1Úm2ÚmaÚcopied1Úcopied2ÚrelevantfilesÚcopykeyÚ	copyvalueÚ
movedirkeyÚfilesmatcherr(  r9   Ún1Úfl1Ún2rˆ   r¦   r„   r+   rê   ÚflaÚnolr:   Údfrë   r˜   rã   s,    `                                          r   ÚmanifestmergerN  ¾  s°  ø€ õ* ‰mŒm€GØÐ˜wŸ~š~Ñ/Ô/ÐØˆðð å˜Ÿš™œ¨"¨b¨Ñ1µw´~ÐFÑFÔFðñ ô ð õ
 Ô)Ñ+Ô+€NÝÔ)Ñ+Ô+€NØ€Gð ð 
Ý28Ô2DØ�$˜˜Bñ3
ô 3
Ñ/ˆ˜¨õ Ô�d ;Ñ/Ô/Ñ0Ô0€FÝÔ�T %™[œ[Ñ)Ô)€EÝÔ�T '™]œ]Ñ+Ô+€EØ„G‡L‚L•Ð+Ñ,Ô,Ñ-Ô-Ð-Ø„G‡M‚MØ5¸ÀÈÐ8NÑNñô ð ð 	„G‡M‚MÐ;¸rÀ4È¸nÑLÑMÔMÐMà—’‘” "§+¢+¡-¤-°·²±´ˆBˆ€BÝ�.Ô%×,Ò,Ñ.Ô.Ñ/Ô/€GØ‡N‚N�>Ô-×4Ò4Ñ6Ô6Ñ7Ô7Ð7Ý�.Ô%×,Ò,Ñ.Ô.Ñ/Ô/€GØ‡N‚N�>Ô-×4Ò4Ñ6Ô6Ñ7Ô7Ð7à˜ÐÐ §¢¡
¤
Ð 2õ Ð:Ð:Ð:Ð:¨D¬MÐ:Ñ:Ô:Ñ:Ô:ð 	CØ!%Ô!3Ô!BˆBˆ~Ñð 	�D˜"�: §¢¡¤Ñ.Ð/Ð/Øð 	0ð ŒG×Ò˜Ð0GÑHÔHð 	0ð Ô"Ð&;Ò;Ð;õ ˜BŸGšG B™KœK×,Ò,Ñ.Ô.Ñ/Ô/ˆð #1Ô"5×";Ò";Ñ"=Ô"=ð 	+ð 	+ÑˆG�YØ˜MÐ)Ð)Ø×!Ò! 'Ñ*Ô*Ð*øØ(Ô4ð 	*ð 	*ˆJØ×Ò˜jÑ)Ô)Ð)Ð)ÝÔ)¨$°Ñ>Ô>ˆÝÔ,¨W°lÑCÔCˆà�7Š7�2˜Wˆ7Ñ%Ô%€Dà%)§Z¢Z¡\¤\ð QQñ QQÑ!ˆÑ!‰IˆR�‘y˜˜CØñ P	Q�"ñ P	QØ˜ˆ{ˆ{à#Ô(×,Ò,Ø�tñô ð 6à#Ô(×,Ò,¨Q°Ñ5Ô5ð ð '‘	��cØ�>Ø˜q " e¨R¯WªW©Y¬YÐ7�DØ1°BÑ6�C�Cà˜q $¨¨r¯wªw©y¬yÐ9�DØ)�CØ—’ ¥=Ô#=¸tÀSÑIÔIÐIÐIØ�nÔ)Ð)Ð)Ø#Ô(¨Ô+�Ø—’ØÝ!Ô.Ø˜˜B  r§w¢w¡y¤yÐ1Ø-°Ñ2ñ	ô ð ñ ð �nÔ)Ð)Ð)Ø#Ô(¨Ô+�Ø—’ØÝ!Ô.Ø˜˜B  r§w¢w¡y¤yÐ1Ø-°Ñ2ñ	ô ð ñ ð �q”E�Ø—h’h˜q‘k”k�Ø #¨¡)¨c¡/Ð1�Ø˜’7�7˜s cšz˜zØ—O’OØÝ%Ô1ØØ+ñ	ô ð ñ ð ˜1’W�W ¨¢ Ø˜R’x�xØŸšØÝ)Ô5Ø ˜FØ1ñ	ô ð ñ ð  ŸšØÝ)Ô4Ø  %˜LØ.ñ	ô ð ð 'ð Ø#×1Ò1Ø !Ð#5°xñô ð ùð ð ˜R 1šW˜WØ—O’OØÝ%Ô1Ø˜Ø-ñ	ô ð ñ ð ð ˜R 1šW˜WØ—O’OØÝ%Ô0Ø˜e˜Ø*ñ	ô ð ð #ð OØ×-Ò-¨aÐ1CÀXÑNÔNÐNùà—O’OØÝ%Ô2Ø˜A˜q %¨¯ª©¬Ð3Ø*ñ	ô ð ñ ð ñ }	QØ�Gˆ|ˆ|Ùà�^Ô/Ð/Ð/à#Ô/°Ô2�Ø˜�8�8Ø—O’OØÝ%Ô2Ø˜B  d¨B¯GªG©I¬IÐ6Ø@ñ	ô ð ñ ð —O’OØÝ%ÔBØ˜C˜ØAÀAÑEñ	ô ð ñ ð �nÔ)Ð)Ð)Ø#Ô(¨Ô+�Ø—’ØÝ!Ô.Ø˜˜B  r§w¢w¡y¤yÐ1Ø1°BÑ6ñ	ô ð ñ ð �b��Ø˜˜Aœ’;�;Ø#ð ØŸšØÝ)Ô7Ø Ø,ñ	ô ð ñ ð  ŸšØÝ)Ô@Ø  a¨°·²±	´	Ð:Ø5ñ	ô ð ð 'ð Ø#×1Ò1Ø !Ð#=¸vñô ð ùð ˜4Ô-Ô9Ò9Ð9ð —O’OØÝ%Ô3ØØ)ñ	ô ð ñ ð —O’OØÝ%Ô3ØØ(ñ	ô ð ð #ð ð
  ×-Ò-ØÐ9¸6ñô ð ùð
 —’ØÝ!Ô1ØØ7ñ	ô ð ñ ð ñ k	QØ�Gˆ|ˆ|ÙØ�nÔ0Ð0Ð0Ø#Ô/°Ô2�Ø˜�8�8Ø—O’OØÝ%Ô2Ø˜Q  e¨R¯WªW©Y¬YÐ7Ø?ñ	ô ð ñ ð —O’OØÝ%ÔAØ˜C˜Ø?À!ÑCñ	ô ð ñ ð �nÔ)Ð)Ð)Ø#Ô(¨Ô+�Ø&‘	��TØ˜�8�8Ø  2 u¨b¯gªg©i¬iÐ8�DØ2°RÑ7�C�Cà  2 t¨R¯WªW©Y¬YÐ7�DØ1°BÑ6�CØ—’ ¥=Ô#=¸tÀSÑIÔIÐIÑIØ˜"��ð ð Ø—O’OØÝ%Ô4Ø˜Ø)ñ	ô ð ñ ð %ð Ø—O’OØÝ%Ô4Ø˜Ø)ñ	ô ð ñ ð —O’OØÝ%Ô:Ø˜bŸgšg™iœiÐ(Ø7ñ	ô ð ñ ð �r˜!”u’‘Ø�Ø'Ô/ð ð �AØ—|’| A‘”ð à+Ô3°AÔ6¸½3¸q¹6¼6¸8¸8¼ÑD˜Ø˜ðð �> b¨B h hØ—O’OØÝ%Ô2Ø˜Q  5¨"¯'ª'©)¬)Ð4ð#Ø%&ñ'ñ	ô ð ñ ð "ð Ø—O’OØÝ%Ô4Ø˜Ø,ñ	ô ð ñ ð —O’OØÝ%Ô<Ø˜q ! U¨B¯GªG©I¬IÐ6Ø1ñ	ô ð ð #ð Ø×-Ò-ØÐ9¸6ñô ð ùð —’ØÝ!Ô4ØØ:ñ	ô ð ð ð Qð
 ×)Ò)¨!Ð-GÈÑPÔPÐPùà„w×Ò˜/Ð+FÑGÔGð 4å˜4  r¨7Ñ3Ô3Ð3à×"Ò"Ñ$Ô$€KØ×ÒÑÔð @å˜[¨+°wÑ?Ô?Ð?à!Ô.€LØ×Ò˜Ô3Ñ4Ô4Ð4à×Ò˜ ,Ñ/Ô/Ð/Ø€Nr!   c                 óÈ  — t          |                     t          j        f¦  «        ¦  «        D ]I}||v rC||                              ||         ¦  «        s"|                     |t          j        dd¦  «         ŒJt          |                     t          j        f¦  «        ¦  «        D ]<}||v r6||                              ||         ¦  «        s|                     |¦  «         Œ=dS )zXResolves false conflicts where the nodeid changed but the content
    remained the same.Ns   prompt same)	rI   rS   rn   r�   r6   rt   r�   rp   rš   )r&   r7   r8   Úancestorr|   r9   s         r   Ú_resolvetrivialrQ  ?  sÜ   € õ
 �'—-’-¥Ô!EÐ GÑHÔHÑIÔIð ð ˆØ�ˆ=ˆ=  a¤§¢¨X°a¬[Ñ!9Ô!9ˆ=à�OŠOØ•=Ô.°°nñô ð øõ �'—-’-¥Ô!EÐ GÑHÔHÑIÔIð "ð "ˆØ�ˆ=ˆ=  a¤§¢¨X°a¬[Ñ!9Ô!9ˆ=à×Ò˜qÑ!Ô!Ð!øð"ð "r!   c
                 óÌ  ‡‡— ddl m}
 d}t          |¦  «        dk    r3t          | |||d         |||||¦	  «	        }t	          | |||||	¦  «         �n;| j                             t          d¦  «        ||t          d¦  «                             d„ |D ¦   «         ¦  «        fz  ¦  «         i }t          ¦   «         }d\  }}|D �]d}| j                             t          d	¦  «        |z  ¦  «         t          | ||||||||d
¬¦
  «
        }t	          | |||||	¦  «         |�%t          |j
        ¦  «        t          |¦  «        k     r|j
        }|�%t          |¦  «        t          |j        ¦  «        k     r|j        }|j                             |j        ¦  «         |                     d
¬¦  «        D ]x\  }}|\  }}}| j                             d|||                     ¦   «         fz  ¦  «         ||v r/||         }||v r||                              |¦  «         Œi|g||<   Œp||gi||<   Œy�Œf| j                             t          d¦  «        t          |¦  «        z  ¦  «         t%          |                     ¦   «         ¦  «        D �]Ð\  }}| j        j        r~| j                             d|z  ¦  «         t%          |                     ¦   «         ¦  «        D ]?\  }Š‰D ]7\  }}}| j                             d||                     ¦   «         fz  ¦  «         Œ8Œ@t          |¦  «        dk    r¡t+          |                     ¦   «         ¦  «        d         \  }Št-          ˆfd„‰dd…         D ¦   «         ¦  «        rT| j                             t          d¦  «        ||                     ¦   «         fz  ¦  «          |j        |g‰d         ¢R Ž  �ŒDt0          j        |v rP| j                             t          d¦  «        |z  ¦  «          |j        |g|t0          j                 d         ¢R Ž  �Œ¢t0          j        |v rP| j                             t          d¦  «        |z  ¦  «          |j        |g|t0          j                 d         ¢R Ž  �Œ t0          j        |v r^t0          j        |v rP| j                             t          d¦  «        |z  ¦  «          |j        |g|t0          j                 d         ¢R Ž  �Œlt0          j        |v rP| j                             t          d¦  «        |z  ¦  «          |j        |g|t0          j                 d         ¢R Ž  �ŒÊt0          j        |v r^t0          j        |v rP| j                             t          d¦  «        |z  ¦  «          |j        |g|t0          j                 d         ¢R Ž  �Œ6t0          j        |v r…|t0          j                 d         Št-          ˆfd„|t0          j                 dd…         D ¦   «         ¦  «        r:| j                             t          d¦  «        |z  ¦  «          |j        |g‰¢R Ž  �ŒÉ| j                             t          d¦  «        |z  ¦  «         t%          |                     ¦   «         ¦  «        D ]?\  }Š‰D ]7\  }}}| j                             d||                     ¦   «         fz  ¦  «         Œ8Œ@t+          |                     ¦   «         ¦  «        d         \  }Š| j                             t          d¦  «        ||                     ¦   «         fz  ¦  «          |j        |g‰d         ¢R Ž  �ŒÒ| j                             t          d¦  «        ¦  «         |                      ||¦  «         | !                    ¦   «         €tE          ||||¦  «         |
 #                    | ||||¦  «         tI          | |||d         |¦  «         |S )aŠ  
    Calculate the actions needed to merge mctx into wctx using ancestors

    Uses manifestmerge() to merge manifest and get list of actions required to
    perform for merging two manifests. If there are multiple ancestors, uses bid
    merge if enabled.

    Also filters out actions which are unrequired if repository is sparse.

    Returns mergeresult object same as manifestmerge().
    r   ©ÚsparseNr   s5   note: merging %s and %s using bids from ancestors %s
s    and c              3   ó>   K  — | ]}t          j        |¦  «        V — Œd S r?   )r   r  )r   r‰   s     r   rl   z#calculateupdates.<locals>.<genexpr>€  s-   è è € Ð LÐ L¸3¥Ô!1°#Ñ!6Ô!6Ð LÐ LÐ LÐ LÐ LÐ Lr!   r  s"   
calculating bids for ancestor %s
T)r8  ©rò   ó    %s: %s -> %s
s/   
auction for merging merge bids (%d ancestors)
s    list of bids for %s:
s      %s -> %s
c              3   ó0   •K  — | ]}|‰d          k    V — ŒdS )r   Nr   )r   rê   Úls     €r   rl   z#calculateupdates.<locals>.<genexpr>Ç  s+   øè è € Ð0Ð0 Q�q˜A˜aœD’yÐ0Ð0Ð0Ð0Ð0Ð0r!   s    %s: consensus for %s
s    %s: picking 'keep' action
s"    %s: picking 'keep absent' action
s&    %s: picking 'changed/deleted' action
s    %s: picking 'keep new' action
s%    %s: picking 'delete/changed' action
c              3   ó$   •K  — | ]
}|‰k    V — Œd S r?   r   )r   rê   Úga0s     €r   rl   z#calculateupdates.<locals>.<genexpr>û  s'   øè è € ÐLÐL A�q˜C’xÐLÐLÐLÐLÐLÐLr!   s    %s: picking 'get' action
s%    %s: multiple bids for merge action:
s     %s -> %s
s(    %s: ambiguous merge - picked %s action
s   end of auction

)%Ú rT  rõ   rN  r�   r"   r  r   r$   r×   râ   rã   rß   r`   rÍ   r  Ú	__bytes__r  rw   r¡   Ú	debugflagrI   Úallrt   rn   r.  r2  r�   r0  rp   ru   rx   rä   r#  r•   ÚfilterupdatesactionsrQ  )r&   r7   r8   Ú	ancestorsr“   r{   r6  r7  r5  r}   rT  r|   Úfbidsrâ   rã   rP  Úmresult1r9   rê   r”   r„   r+   rë   ÚbidsÚ_fr[  rY  s                            @@r   Úcalculateupdatesrf  Q  se  øø€ ð0 ÐÐÐÐÐà€GÝ
ˆ9�~„~˜ÒÐÝØØØØ�aŒLØØØØØñ

ô 

ˆõ 	˜4  t¨U°G¸ZÑHÔHÐHÑHð 	Œ�ŠÝÐGÑHÔHàØÝ�(‘”× Ò Ð LÐ LÀ)Ð LÑ LÔ LÑLÔLðññ	
ô 	
ð 	
ð ˆÝ‘-”-ˆØ *Ñˆ�Ø!ð )	(ñ )	(ˆHØŒG�LŠL�ÐBÑCÔCÀhÑNÑOÔOÐOÝ$ØØØØØØØØØØ"ðñ ô ˆHõ ˜t T¨4°¸À*ÑMÔMÐMð ˆ¥# hÔ&6Ñ"7Ô"7½#¸g¹,¼,Ò"FÐ"FØ"Ô*�ØÐ#¥s¨<Ñ'8Ô'8½3ØÔ%ñ<ô <ò (ð (ð  (Ô4�ð Ô×&Ò& xÔ';Ñ<Ô<Ð<à ×(Ò(¨dÐ(Ñ3Ô3ð 
(ð 
(‘��1Ø ‘��4˜Ø”—’Ð0°A°s¸A¿KºK¹M¼MÐ3JÑJÑKÔKÐKØ˜�:�:Ø˜aœ�AØ˜A�v�vØ˜!œŸš A™œ˜˜à !˜s˜˜!™˜à ! A 3˜x�E˜!‘H�Hñ
(ð 	Œ�ŠÝÐBÑCÔCÝ�)‰nŒnññ	
ô 	
ð 	
õ ˜eŸkšk™mœmÑ,Ô,ð O	ñ O	‰GˆAˆtØŒwÔ ð OØ”—’Ð8¸1Ñ<Ñ=Ô=Ð=Ý" 4§:¢:¡<¤<Ñ0Ô0ð Oð O‘D�A�qØ)*ð Oð O™˜˜D #ØœŸšÐ&6¸#¸q¿{º{¹}¼}Ð9MÑ&MÑNÔNÐNÐNðOõ �4‰yŒy˜AŠ~ˆ~Ý˜DŸJšJ™LœLÑ)Ô)¨!Ô,‘��1ÝÐ0Ð0Ð0Ð0¨!¨A¨B¨B¬%Ð0Ñ0Ô0Ñ0Ô0ð Ø”G—L’LÝÐ4Ñ5Ô5¸¸A¿KºK¹M¼MÐ8JÑJñô ð ð $�G”O AÐ-¨¨!¬Ð-Ð-Ð-Ð-ÙåÔ(¨DÐ0Ð0Ø”—’�QÐ>Ñ?Ô?À!ÑCÑDÔDÐDØ�” ÐG D­Ô)BÔ$CÀAÔ$FÐGÐGÐGÐGÙåÔ/°4Ð7Ð7Ø”—’�QÐEÑFÔFÈÑJÑKÔKÐKØ�” ÐN D­Ô)IÔ$JÈ1Ô$MÐNÐNÐNÐNÙõ Ô4¸Ð<Ð<Ý!Ô1°TÐ9Ð9à”—’�QÐIÑJÔJÈQÑNÑOÔOÐOØ�”ØðØ�]ÔAÔBÀ1ÔEðð ð ð ñ åÔ,°Ð4Ð4Ø”—’�QÐBÑCÔCÀaÑGÑHÔHÐHØ�” ÐK D­Ô)FÔ$GÈÔ$JÐKÐKÐKÐKÙõ Ô4¸Ð<Ð<Ý!Ô,°Ð4Ð4à”—’�QÐHÑIÔIÈAÑMÑNÔNÐNØ�”ØðØ�]ÔAÔBÀ1ÔEðð ð ð ñ åÔ'¨4Ð/Ð/Ø�=Ô3Ô4°QÔ7�ÝÐLÐLÐLÐL¨­mÔ.FÔ)GÈÈÈÔ)KÐLÑLÔLÑLÔLð Ø”G—L’L¥Ð#AÑ!BÔ!BÀQÑ!FÑGÔGÐGØ#�G”O AÐ,¨Ð,Ð,Ð,Ð,Ùð ŒG�LŠL�ÐDÑEÔEÈÑIÑJÔJÐJÝ˜tŸzšz™|œ|Ñ,Ô,ð Ið I‘��1Ø%&ð Ið I‘M�B˜˜cØ”G—L’L °C¸¿º¹¼Ð3GÑ!GÑHÔHÐHÐHðIõ ˜Ÿ
š
™œÑ%Ô% aÔ(‰DˆAˆqØŒG�LŠLÝÐ>Ñ?Ô?Ø�a—k’k‘m”mÐ$ñ%ñô ð ð ˆGŒO˜AÐ%  !¤Ð%Ð%Ð%Ð%ÙØŒ�Š•QÐ,Ñ-Ô-Ñ.Ô.Ð.Ø×Ò˜W lÑ3Ô3Ð3à‡x‚x�z„zÐÝ�t˜T ;°Ñ8Ô8Ð8à
×Ò  d¨D°+¸wÑGÔGÐGÝ�D˜$  i°¤l°GÑ<Ô<Ð<à€Nr!   c                  óL   — 	 t          j        ¦   «         S # t          $ r Y d S w xY wr?   )r
   ÚgetcwdÚFileNotFoundErrorr   r!   r   Ú_getcwdrj    s7   € ðÝŒÑ Ô Ð øÝð ð ð Øˆtˆtðøøøs   ‚ •
#¢#c           	   #   óÒ  K  — | j         j        }t          ¦   «         }d}|D ]ö\  }}}| j                              d||fz  ¦  «         |r*| j                              t          d¦  «        |z  ¦  «         ||                              ¦   «          	 ||                              d¬¦  «         nZ# t          $ rM}	| j          	                    t          d¦  «        |t          j        |	j        ¦  «        fz  ¦  «         Y d}	~	nd}	~	ww xY w|dk    r||fV — d}|d	z  }Œ÷|dk    r||fV — |r?t          ¦   «         s3| j          	                    t          d
¦  «        | j        z  ¦  «         dS dS dS )zSapply removes to the working directory

    yields tuples for progress updates
    r   s    %s: %s -> r
ó   removing %s
T)Úignoremissings    update failed to remove %s: %s!
Néd   r   sC   current directory was removed
(consider changing to repo root: %s)
)r"   Úverboserj  r  r  r   r1   r½   ÚOSErrorrx   r   ÚforcebytestrÚstrerrorÚroot)
r&   r7   rï   ro  ÚcwdÚir9   r„   r+   Úinsts
             r   Úbatchremoverw     sÊ  è è € ð
 ŒgŒo€GÝ
‰)Œ)€CØ	€AØð ð ‰ˆˆ4�ØŒ�ŠÐ'¨1¨c¨(Ñ2Ñ3Ô3Ð3Øð 	2ØŒG�LŠL�Ð+Ñ,Ô,¨qÑ0Ñ1Ô1Ð1ØˆQŒ�Š‰Œˆð	Ø�ŒG�NŠN¨ˆNÑ.Ô.Ð.Ð.øÝð 	ð 	ð 	ØŒG�LŠLÝÐ6Ñ7Ô7Ø•jÔ-¨d¬mÑ<Ô<Ð=ñ>ñô ð ð ð ð ð ð øøøøð	øøøð
 �Š8ˆ8Ø�Q�$ˆJˆJˆJØˆAØ	ˆQ‰ˆˆØˆ1‚u€uØ�ˆdˆ
ˆ
ˆ
à
ð 	
•7‘9”9ð 	
ð 	Œ�ŠÝð:ñô ð Œiñ	ñ	
ô 	
ð 	
ð 	
ð 	
ð	
ð 	
ð 	
ð 	
s   ÂB*Â*
DÂ4AC<Ã<Dc              #   ób  K  — i }| j         j        }|j        }| j         }d}	| j                             |t          |¦  «        ¬¦  «        5  |D �]´\  }
\  }}}| j                              d|
|fz  ¦  «         |r*| j                              t          d¦  «        |
z  ¦  «         |r©|
}| j         	                    |
¦  «        s5t          j        |
¦  «        D ] }| j                             |¦  «        r|} nŒ!| j         	                    |¦  «        r>t          j        || |¦  «        }t          j        |                      |¦  «        |¦  «         ||
         }|                     ¦   «          |                     dd¦  «        }|                      ||
¦  «                             ¦   «         |d|¬¦  «        }|r7|                     ¦   «         }|j        }t1          j        |¦  «        }|||f||
<   |	d	k    r
d
|	|
ffV — d}	|	dz  }	�Œ¶	 ddd¦  «         n# 1 swxY w Y   |	dk    rd
|	|
ffV — d|fV — dS )aj  apply gets to the working directory

    mctx is the context to get from

    Yields arbitrarily many (False, tuple) for progress updates, followed by
    exactly one (True, filedata). When wantfiledata is false, filedata is an
    empty dict. When wantfiledata is true, filedata[f] is a triple (mode, size,
    mtime) of the file f written for each action.
    r   )Úexpectedcounts    %s: %s -> g
s   getting %s
r]   s   update.atomic-fileT)ÚbackgroundcloseÚ
atomictemprn  Fr   N)r"   ro  Úfilectxr0   Úbackgroundclosingrõ   r  r  r   rK   r   rJ   r3   r   Ú
backuppathr   ÚrenameÚwjoinÚclearunknownrm   Úwriterè   ÚlstatÚst_moder   Úmtime_of)r&   r8   r7   Úwantfiledatarï   Úfiledataro  Úfctxr"   ru  r9   rŒ   r‹   r+   ÚconflictingrQ   ÚorigÚwfctxr{  Úsizer  ÚmodeÚmtimes                          r   Úbatchgetr�  G  sÔ  è è € ð €HØŒgŒo€GØŒ<€DØ	Œ€BØ	€AØ	Œ×	$Ò	$ Rµs¸7±|´|Ð	$Ñ	DÔ	Dð Að AØ'.ð @	ñ @	Ñ#ˆA‰��v ØŒG�MŠMÐ+¨q°#¨hÑ6Ñ7Ô7Ð7Øð 5Ø”—’�Q˜Ñ/Ô/°!Ñ3Ñ4Ô4Ð4àð ?ð  �Ø”y×(Ò(¨Ñ+Ô+ð "Ý%Ô.¨qÑ1Ô1ð "ð "˜Øœ9×1Ò1°!Ñ4Ô4ð "Ø*+˜KØ!˜Eð"ð ”9×$Ò$ [Ñ1Ô1ð ?Ý"Ô-¨b°$¸ÑDÔD�DÝ”K §
¢
¨;Ñ 7Ô 7¸Ñ>Ô>Ð>Ø˜”GˆEØ×ÒÑ Ô Ð ØŸš Ð8MÑNÔNˆJØ—;’;Ø��Q‘”—’‘”ØØ $Ø%ð	 ñ ô ˆDð ð !2ð: —K’K‘M”M�Ø”y�Ý!Ô*¨1Ñ-Ô-�à# T¨5Ð1�˜‘Ø�CŠxˆxØ˜a ˜V�mÐ#Ð#Ð#Ø�Ø�‰FˆA‰AðA@	ðAð Að Añ Aô Að Að Að Að Að Að Aøøøð Að Að Að AðD 	ˆ1‚u€uØ�a˜�VˆmÐÐÐØ
�ˆ.ÐÐÐÐÐs   Á
F9HÈHÈHc                 ó  — |                      t          j        t          j        t          j        t          j        g¦  «        }t          j        }t          j        } || | 	                    ¦   «          || |¦  «        fg¦  «         dS )z„Invoke ``scmutil.prefetchfiles()`` for the files relevant to the dict
    of merge actions.  ``ctx`` is the context being merged in.N)
rS   rn   ru   rp   rr   rv   r   Úprefetchfilesr)  r#  )r&   Úctxr|   rS   Úprefetchr)  s         r   Ú_prefetchfilesr”  �  s�   € ð �MŠMåÔ$ÝÔ0ÝÔ5ÝÔ&ð		
ñô €Eõ Ô$€HÝÔ#€JØ€HØð —’‘	”	Ø�
˜4 Ñ'Ô'ðð	
ñô ð ð ð r!   T)Úfrozenc                   óŒ   — e Zd Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Zd„ Z	dS )Úupdateresultc                 ó<   — | j         p| j        p| j        p| j         S r?   )ÚupdatedcountÚmergedcountÚremovedcountÚunresolvedcountrC   s    r   Úisemptyzupdateresult.isemptyÁ  s5   € àÔð $ØÔð$àÔ ð$ð Ô#ð	
ð 	
r!   N)
rW   rX   rY   r   Úibr™  rš  r›  rœ  r�  r   r!   r   r—  r—  º  sW   € € € € € à�4”7‘9”9€LØ�$”'‘)”)€KØ�4”7‘9”9€LØ�d”g‘i”i€Oð
ð 
ð 
ð 
ð 
r!   r—  c                 óF  — t          | ||¦  «         d\  }}}	|                     d¬¦  «        }
|
                     |                     ¦   «                              ¦   «         |                     ¦   «         |¦  «         |j                             ¦   «         D ]\  }}|
                     ||¦  «         Œ|                     t          j
        j        ¦  «        }|                     ¦   «         |z
  }| j                             t          d¦  «        t          d¦  «        |¬¦  «        }d|j        t          j                 v rt#          j        | |||||¦  «         |                     t          j        gd¬¦  «        D ]·\  }}}|\  }}| j        j        } |t          d	¦  «        |z  ¦  «         |d
k    r |t          d¦  «        |z  ¦  «         n |t          d¦  «        |z  ¦  «          |t          d¦  «        |z  ¦  «         |
                     |||¦  «         |                     |¬¦  «         Œ¸|                     ¦   «         rdnd}t3          j        | j        |t4          | |ft7          |                     t          j        gd¬¦  «        ¦  «        ¦  «        }|D ]\  }}|                     ||¬¦  «         Œ|                     t          j        f¦  «        }	|                     t          j        gd¬¦  «        D �]!\  }}}| j                             d||fz  ¦  «         |\  }}||                              ¦   «         rÆ| j                             t          d¦  «        ||fz  ¦  «         ||                               ¦   «          ||          !                    | "                    |¦  «         #                    ¦   «         | "                    |¦  «         $                    ¦   «         ¦  «         ||          %                    ¦   «          |                     |¬¦  «         �Œ#| j         &                    dd¦  «        }t3          j        | j        |tN          | |||ft7          |                     t          j(        gd¬¦  «        ¦  «        |d¬¦  «        }i }|D ]&\  }}|r|}Œ
|\  }}|                     ||¬¦  «         Œ'd|j        t          j(                 v rt#          j        | |||||¦  «         |                     t          j)        fd¬¦  «        D ];\  }}}| j                             d||fz  ¦  «         |                     |¬¦  «         Œ<|                     t          j*        fd¬¦  «        D ];\  }}}| j                             d||fz  ¦  «         |                     |¬¦  «         Œ<|                     t          j+        fd¬¦  «        D ];\  }}}| j                             d||fz  ¦  «         |                     |¬¦  «         Œ<t          j
        j        D ]S}|                     |fd¬¦  «        D ]8\  }}}| j                             d||| ,                    ¦   «         fz  ¦  «         Œ9ŒT|                     t          j-        fd¬¦  «        D ]á\  }}}| j                             d||fz  ¦  «         |                     |¬¦  «         |\  }} | j                             t          d¦  «        ||fz  ¦  «         ||                               ¦   «          ||          !                    | "                    |¦  «         #                    ¦   «         | ¦  «         ||          %                    ¦   «          Œâ|                     t          j.        fd¬¦  «        D ]­\  }}}| j                             d||fz  ¦  «         |                     |¬¦  «         |\  }} | j                             t          d¦  «        ||fz  ¦  «         ||          !                    | "                    |¦  «         #                    ¦   «         | ¦  «         Œ®|                     t          j/        fd¬¦  «        D ]y\  }}}| j                             d||fz  ¦  «         |                     |¬¦  «         |\  } ||                               ¦   «          ||          0                    d
| v d| v ¦  «         Œzg }!t7          |                     t          j1        t          j2        t          j3        gd¬¦  «        ¦  «        }"|"D ]Ú\  }}}|\  }}#}$}%}&|dk    rŒ|€ti          j5        ||$¦  «        }'n'| j                             d!||fz  ¦  «         ||         }'|#€ti          j5        ||$¦  «        }(n||#         }(| |&         })|$|)v r	|)|$         }*n|  "                    |tl          ¬"¦  «        }*|
 7                    |'|(|*|¦  «         ||k    r|%r|! 8                    |¦  «         ŒÛ|!D ]m}||                              ¦   «         rQ| j                             d#|z  ¦  «         ||                               ¦   «          ||          %                    ¦   «          Œn|                     t          j(        t          j/        t          j.        t          j-        f¦  «        }	 |"D ]¶\  }}}| j                             d$||fz  ¦  «         |
                     |d%d&i¦  «         |                     |¬¦  «         |dk    r-t#          j        | ||| 9                    |¦  «        ||¦  «         Œ†||                               ¦   «          |
 :                    ||¦  «         Œ·n# tv          j<        $ r Y nw xY w|
 =                    ¦   «          n# |
 =                    ¦   «          w xY w|
 >                    ¦   «         }+|
 ?                    ¦   «         \  },}-}.||,z  }||-z  }|	|.z  }	|
 @                    ¦   «         }/| A                    ¦   «          t…          |||	|+¦  «        ||/fS )'aº  apply the merge action list to the working directory

    mresult is a mergeresult object representing result of the merge
    wctx is the working copy context
    mctx is the context to be merged into the working copy

    Return a tuple of (counts, filedata), where counts is a tuple
    (updated, merged, removed, unresolved) that describes how many
    files were affected by the update, and filedata is as described in
    batchget.
    )r   r   r   T)Úcleans   updatings   files)ÚunitÚtotalr  rV  sD   %s: path conflict - a file or link has the same name as a directory
r³   s&   the local file has been renamed to %s
s'   the remote file has been renamed to %s
s1   resolve manually then use 'hg resolve --mark %s'
)Úitemr   gü©ñÒMbP?)Ústepr£  s    %s: %s -> pr
s   moving %s to %s
r]   s   worker.wdir-get-thread-safe)Ú
threadsafeÚ	hasretvals    %s: %s -> f
s    %s: %s -> a
s    %s: %s -> am
rW  s    %s: %s -> dm
s    %s: %s -> dg
s   getting %s to %s
s    %s: %s -> e
ó   xNs!    preserving %s for resolve of %s
)Úfileidrl  s    %s: %s -> m
s   mergedr  )Cr”  r   ÚstartÚp1r-  r   r¡   rÑ   rõ   rn   ÚMergeActionÚNO_OP_ACTIONSr"   Úmakeprogressr   rà   r�   r   Úsubmergerq   r¼   ÚstatusÚaddpathconflictÚ	incrementr/   r   rw  rI   r»   r  rK   r  r1   r‚  r|  rè   rŒ   r½   rm   r�  ru   r�   r›   rœ   r]  rŸ   rr   r
  Úsetflagsr�   rp   rv   r   Úabsentfilectxr   rL   r  rP  Úresolver   ÚInterventionRequiredÚcommitrœ  Úcountsrï   Úcompleter—  )0r&   r|   r7   r8   Ú	overwriter†  ÚlabelsÚupdatedÚmergedr’   Úmsr9   ÚopÚ	num_no_opÚ
numupdatesÚprogressr„   r+   r¥   Úfor  ÚcostÚprogru  r£  Úf0Úorigf0r¥  ÚgetfiledataÚfinalr  rê   rŒ   ÚmovesÚmergeactionsr:   r¦   r§   r‰   ÚfclÚfcoÚactxÚfcaÚ
unresolvedÚ	msupdatedÚmsmergedÚ	msremovedÚextraactionss0                                                   r   ÚapplyupdatesrÔ  Ê  sË  € õ* �4˜˜wÑ'Ô'Ð'à&Ñ€GˆV�WØ	�Š˜tˆÑ	$Ô	$€BØ‡H‚HˆT�WŠW‰YŒY�^Š^ÑÔ˜tŸyšy™{œ{¨FÑ3Ô3Ð3àÔ#×)Ò)Ñ+Ô+ð  ð  ‰ˆˆ2ð 	×Ò˜˜BÑÔÐÐà—’�MÔ5ÔCÑDÔD€IØ—’‘” Ñ*€JØŒw×#Ò#Ý	ˆ+‰Œ�Q˜x™[œ[°
ð $ñ ô €Hð ˜Ô/µÔ0KÔLÐLÐLÝÔ˜T 4¨¨t°YÀÑGÔGÐGð  ×*Ò*Ý	Ô	+Ð,°4ð +ñ ô ð #ð #‰ˆˆ4�ð ‰ˆˆBØŒGŒNˆØ	ˆÝðñô ð ñ	ñ	
ô 	
ð 	
ð �Š:ˆ:ØˆA�aÐ:Ñ;Ô;¸bÑ@ÑAÔAÐAÐAàˆA�aÐ;Ñ<Ô<¸rÑAÑBÔBÐBØ	ˆ�!ÐAÑ
BÔ
BÀQÑ
FÑGÔGÐGØ
×Ò˜1˜b "Ñ%Ô%Ð%Ø×Ò ÐÑ"Ô"Ð"Ð"ð —’Ñ!Ô!Ð,ˆ1ˆ1 u€Dõ Œ=ØŒØÝØ	ˆtˆÝˆW×Ò¥Ô!<Ð =ÀDÐÑIÔIÑJÔJñô €Dð ð .ð .‰ˆˆ4Ø×Ò ¨ÐÑ-Ô-Ð-Ð-Ø�kŠk�=Ô6Ð8Ñ9Ô9€Gð  ×*Ò*Ý	Ô	3Ð4¸4ð +ñ ô ð 
#ñ 
#‰ˆˆ4�ð 	Œ�ŠÐ(¨A¨s¨8Ñ3Ñ4Ô4Ð4Ø‰ˆˆVØ�Œ8×ÒÑÔð 	ØŒG�LŠL�Ð/Ñ0Ô0°B¸°7Ñ:Ñ;Ô;Ð;Ø�ŒG�MŠM‰OŒOˆOØ�ŒG�MŠM˜$Ÿ,š, rÑ*Ô*×/Ò/Ñ1Ô1°4·<²<ÀÑ3CÔ3C×3IÒ3IÑ3KÔ3KÑLÔLÐLØ�ŒH�OŠOÑÔÐØ×Ò ÐÑ"Ô"Ð"Ñ"ð ”×#Ò#ØÐ7ñô €Jõ Œ=ØŒØÝØ	ˆt�T˜<Ð(ÝˆW×Ò¥Ô!9Ð :ÀÐÑFÔFÑGÔGØØðñ ô €Dð €KØð 2ð 2‰
ˆˆsØð 	2ØˆKˆKà‰GˆAˆtØ×Ò A¨DÐÑ1Ô1Ð1Ð1à˜Ô/µÔ0HÔIÐIÐIÝÔ˜T 4¨¨t°YÀÑGÔGÐGð  ×*Ò*Ý	Ô	$Ð&¨Tð +ñ ô ð #ð #‰ˆˆ4�ð 	Œ�ŠÐ'¨1¨c¨(Ñ2Ñ3Ô3Ð3Ø×Ò ÐÑ"Ô"Ð"Ð"ð  ×*Ò*Ý	Ô	!Ð#¨$ð +ñ ô ð #ð #‰ˆˆ4�ð 	Œ�ŠÐ'¨1¨c¨(Ñ2Ñ3Ô3Ð3Ø×Ò ÐÑ"Ô"Ð"Ð"ð  ×*Ò*Ý	Ô	*Ð,°4ð +ñ ô ð #ð #‰ˆˆ4�ð 	Œ�ŠÐ(¨A¨s¨8Ñ3Ñ4Ô4Ð4Ø×Ò ÐÑ"Ô"Ð"Ð"õ Ô&Ô4ð Hð HˆØ#×.Ò.°¨t¸$Ð.Ñ?Ô?ð 	Hð 	H‰LˆAˆt�SØŒG�MŠMÐ,°°3¸¿º¹¼Ð/FÑFÑGÔGÐGÐGð	Hð
  ×*Ò*Ý	Ô	3Ð5¸Dð +ñ ô ð 	ð 	‰ˆˆ4�ð 	Œ�ŠÐ(¨A¨s¨8Ñ3Ñ4Ô4Ð4Ø×Ò ÐÑ"Ô"Ð"Ø‰	ˆˆEØŒ�Š•QÐ+Ñ,Ô,°°A¨wÑ6Ñ7Ô7Ð7ØˆQŒ�Š‰ŒˆØˆQŒ�Š�d—l’l 2Ñ&Ô&×+Ò+Ñ-Ô-¨uÑ5Ô5Ð5ØˆRŒ�ŠÑÔÐÐð  ×*Ò*Ý	Ô	2Ð4¸4ð +ñ ô ð 6ð 6‰ˆˆ4�ð 	Œ�ŠÐ(¨A¨s¨8Ñ3Ñ4Ô4Ð4Ø×Ò ÐÑ"Ô"Ð"Ø‰	ˆˆEØŒ�Š•QÐ,Ñ-Ô-°°Q°Ñ7Ñ8Ô8Ð8ØˆQŒ�Š�d—l’l 2Ñ&Ô&×+Ò+Ñ-Ô-¨uÑ5Ô5Ð5Ð5ð  ×*Ò*Ý	Ô	"Ð$¨4ð +ñ ô ð 7ð 7‰ˆˆ4�ð 	Œ�ŠÐ'¨1¨c¨(Ñ2Ñ3Ô3Ð3Ø×Ò ÐÑ"Ô"Ð"Ø‰ˆØˆQŒ�Š‰ŒˆØˆQŒ×Ò˜ ˜¨°¨Ñ6Ô6Ð6Ð6à€Eõ Ø×ÒåÔ4ÝÔ4ÝÔ*ðð
 ð 	ñ 	
ô 	
ñ	ô 	€Lð %ð ð ‰ˆˆ4�Ø $ÑˆˆB��D˜#Ø�ÒÐØØˆ:ÝÔ)¨$°Ñ3Ô3ˆCˆCàŒG�MŠMÐ?À2ÀqÀ'ÑIÑJÔJÐJØ�r”(ˆCØˆ:ÝÔ)¨$°Ñ3Ô3ˆCˆCà�r”(ˆCØ�CŒyˆØ�ˆ:ˆ:Ø�r”(ˆCˆCð —,’,˜r­'�,Ñ2Ô2ˆCØ
�Šˆs�C˜˜aÑ Ô Ð Ø�Š7ˆ7�tˆ7Ø�LŠL˜ÑÔÐøð ð ð ˆØ�Œ7�?Š?ÑÔð 	ØŒG�MŠMÐ*¨QÑ.Ñ/Ô/Ð/Ø�ŒG�MŠM‰OŒOˆOØ�ŒG�NŠNÑÔÐøð �kŠkåÔ$ÝÔ%ÝÔ5ÝÔ6ð		
ñô €GðØ(ð 
	 ð 
	 ‰LˆAˆt�SØŒG�MŠMÐ+¨q°#¨hÑ6Ñ7Ô7Ð7Ø×Ò˜Q ¨FÐ 3Ñ4Ô4Ð4Ø×Ò AÐÑ&Ô&Ð&Ø�NÒ"Ð"ÝÔ$Ø˜$  d§m¢m°DÑ&9Ô&9¸9Àfñô ð ð Ø�ŒG�MŠM‰OŒOˆOØ�JŠJ�q˜$ÑÔÐÐð
	 øõ Ô%ð ð ð ð 	ˆðøøøð
 	�	Š	‰Œˆˆøˆ�	Š	‰Œˆˆøøøà×#Ò#Ñ%Ô%€Jà%'§Y¢Y¡[¤[Ñ"€Iˆx˜ØˆyÑ€GØ
ˆhÑ€FØˆyÑ€Gà—:’:‘<”<€Là×ÒÑÔÐå�W˜f g¨zÑ:Ô:ØØðð s+   ê.B9m( í'n í(m:í7n í9m:í:n în(c                 ó:  — | j                              dd¦  «        }| j                              dd¦  «        }t          j        d¦  «        }|�| j                              dd¦  «        }	 ddlm} |                     d¦  «         | j                              dd¦  «        d	k    }n# t          $ r d
}Y nw xY w|r[|s[|| j
        k    rR||k    rNt          j                             d¦  «        r1| j                              t          d¦  «        ¦  «         d S d S d S d S d S d S )Ns	   fsmonitors   warn_when_unuseds   warn_update_file_countr4   s   warn_update_file_count_rustr   )Ú
extensionss   modes   offF)s   linuxs   darwins�   (warning: large working directory being used without fsmonitor enabled; enable fsmonitor to improve performance; see "hg help -e fsmonitor")
)r"   rm   Ú	configintr   Ú
importrustr\  rÖ  Úfindr#   ÚKeyErrorÚnullidr   Úsysplatformr¢   rx   r   )r&   Únum_getsÚp1nodeÚfsmonitorwarningÚfsmonitorthresholdÚdirstate_rustmodrÖ  Úfsmonitorenableds           r   Ú_advertisefsmonitorrã  Ò  s‡  € ð ”w×)Ò)¨,Ð8KÑLÔLÐØœ×*Ò*ØÐ/ñô Ðõ Ô(¨Ñ4Ô4ÐàÐ#à!œW×.Ò.ØØ*ñ
ô 
Ðð

!à Ð Ð Ð Ð Ð à�Š˜Ñ%Ô%Ð%Øœ7Ÿ>š>¨,¸Ñ@Ô@ÀFÒJÐÐøõ ð !ð !ð !Ø ÐÐÐð!øøøð 	ð
à ð
ð �d”kÒ!Ð!ØÐ*Ò*Ð*ÝÔ ×+Ò+Ð,AÑBÔBð +ð 	Œ�ŠÝð1ñô ñ	
ô 	
ð 	
ð 	
ð 	
ð
ð 
ð 
ð 
ð "Ð!Ø*Ð*Ð*Ð*s   Á):B$ Â$B3Â2B3r   s   nones   linears
   noconflictc                 ó´  ‡ — ddl m} |€J ‚|s;|s9|
€t          }
t          t          t          f}|
|vrd}||
|fz  }t          |¦  «        ‚|�(|                     ¦   «         rt          j        ¦   «         }n‰  	                    ¦   «         }|5  |€‰ d         }| 
                    ¦   «         }|d         }‰ |         }|�
‰ |         g}n›‰ j                             dd¦  «        dgk    rc‰ j                             |                     ¦   «         |                     ¦   «         ¦  «        }ˆ fd	„t!          |¦  «        p‰ j        gD ¦   «         }n|                     ||¬
¦  «        g}|                     ¦   «         |                     ¦   «         t'          |¦  «        t'          |¦  «        f\  }}}}|o| }|s�t)          |¦  «        dk    r!t+          j        t/          d¦  «        ¦  «        ‚|                     ¦   «         }|                     ¦   «         r4t/          d¦  «        }t/          d¦  «        }t+          j        ||¬¦  «        ‚|�rBt/          d¦  «        }||gk    rt+          j        |¦  «        ‚||gk    r`|s^|                     ¦   «         |                     ¦   «         k    r4t/          d¦  «        }t/          d¦  «        }t+          j        ||¬¦  «        ‚|s\|                     ¦   «         s|                     ¦   «         r4t/          d¦  «        }t/          d¦  «        }t+          j        ||¬¦  «        ‚|                     ¦   «         s>t!          |j        ¦  «        D ])}|                     |¦  «                              ¦   «          Œ*ný|sû||k    rP‰  !                    dd|d¬¦  «         ‰  !                    d|dd¬¦  «         tE          dddd¦  «        cddd¦  «         S |
t          k    rš||g|gfvr’| #                    d¬¦  «        }|rytI          j%        ‰ |                     ¦   «         g¦  «        }‰ |                              ¦   «         |v rn5t/          d¦  «        }t/          d¦  «        }t+          j&        ||¬¦  «        ‚	 |r|g}n|s|g}‰ j         '                    dd¦  «        } |rd} n
|d         sd} |s| #                    d¬¦  «        sd} tQ          ‰ ||||||| ||¬¦
  «
        }!|
t          k    rH|! )                    ¦   «         r4t/          d¦  «        }t/          d¦  «        }t+          j        ||¬¦  «        ‚|! *                    d ¦  «        }"|"�rdd }#|"\  }$}%}tW          j,        |¦  «        }&|#|&d!<   |$tZ          j.        k    r˜‰ j         /                    t/          d"¦  «        |&z  d¦  «        r#|! 0                    |#tZ          j1        dd#¦  «         nå|#|v r#|! 0                    |#tZ          j2        dd$¦  «         n¾|! 0                    |#tZ          j3        dd$¦  «         n›|$tZ          j4        k    r‹|%\  }'}(})}*}+||(          5                    ¦   «         },‰ j         /                    t/          d%¦  «        |&z  d¦  «        dk    r%|! 0                    |#tZ          j6        |,dfd&¦  «         n|! 7                    |#¦  «         t          j8        ‰ j9        ¦  «        sb|s=|s| #                    dd¬'¦  «        s$tu          ‰ | ;                    ¦   «         d¦  «         n#tu          ‰ | ;                    ¦   «         |!¦  «         t!          |!j<         =                    ¦   «         ¦  «        D ]^\  }#}-‰ j         >                    t/          d(¦  «        |#z  ¦  «         t!          |-¦  «        D ]}.‰ j         >                    d)|.z  ¦  «         Œ Œ_t!          |!j?         =                    ¦   «         ¦  «        D ]^\  }#}-‰ j         >                    t/          d*¦  «        |#z  ¦  «         t!          |-¦  «        D ]}.‰ j         >                    d)|.z  ¦  «         Œ Œ_|s|‰ j        |df\  }}}}|du p| @                    ¦   «         }/|	o|/o|                     ¦   «          }	|	rF‰  !                    dd||¬¦  «         ‰ jA         B                    d+| C                    ¦   «         ¦  «         t‰          ‰ |!                     tZ          j6        f¦  «        |                     ¦   «         ¦  «         |	o| }0t‹          ‰ |!||||0|¬,¦  «        \  }1}2}3|	�rö|3r^|3 =                    ¦   «         D ]I\  }4}5|5D ]}6 |!j0        |6d         |4g|6dd…         ¢R Ž  Œ |4tZ          j6        k    r|0r|5D ]}6d|2|6d         <   ŒŒJt)          |2¦  «        |0r |!                     tZ          j6        f¦  «        ndk    sJ ‚‰ jF         G                    ¦   «         5  |2r‰i }7t‘          jI        ‰ jA        ¦  «        }8|8€d}2ni|8d         }9|2 =                    ¦   «         D ]-\  }#}$|$�&|$d-         d         |9k    r|$d         |$d         df|7|#<   Œ.|7 =                    ¦   «         D ]
\  }#}$|$|2|#<   Œ‰  J                    ||¦  «         t[          jK        ‰ |!jL        ||2¦  «         t          jM        ‰ jA         N                    d+¦  «        ¦  «         |s,‰ jF         O                    |                     ¦   «         ¦  «         |s| P                    ‰ ¦  «         ddd¦  «         n# 1 swxY w Y   ddd¦  «         n# 1 swxY w Y   |	r‰  !                    d|||1j        ¬¦  «         |1S ).a�	  
    Perform a merge between the working directory and the given node

    node = the node to update to
    branchmerge = whether to merge between branches
    force = whether to force branch merging or file overwriting
    matcher = a matcher to filter file lists (dirstate not updated)
    mergeancestor = whether it is merging with an ancestor. If true,
      we should accept the incoming changes for any prompts that occur.
      If false, merging with an ancestor (fast-forward) is only allowed
      between different named branches. This flag is used by rebase extension
      as a temporary fix and should be avoided in general.
    labels = labels to use for local, other, and base
    mergeforce = whether the merge was run with 'merge --force' (deprecated): if
      this is True, then 'force' should be True as well.

    The table below shows all the behaviors of the update command given the
    -c/--check and -C/--clean or no options, whether the working directory is
    dirty, whether a revision is specified, and the relationship of the parent
    rev to the target rev (linear or not). Match from top first. The -n
    option doesn't exist on the command line, but represents the
    experimental.updatecheck=noconflict option.

    This logic is tested by test-update-branches.t.

    -c  -C  -n  -m  dirty  rev  linear  |  result
     y   y   *   *    *     *     *     |    (1)
     y   *   y   *    *     *     *     |    (1)
     y   *   *   y    *     *     *     |    (1)
     *   y   y   *    *     *     *     |    (1)
     *   y   *   y    *     *     *     |    (1)
     *   *   y   y    *     *     *     |    (1)
     *   *   *   *    *     n     n     |     x
     *   *   *   *    n     *     *     |    ok
     n   n   n   n    y     *     y     |   merge
     n   n   n   n    y     y     n     |    (2)
     n   n   n   y    y     *     *     |   merge
     n   n   y   n    y     *     *     |  merge if no conflict
     n   y   n   n    y     *     *     |  discard
     y   n   n   n    y     *     *     |    (3)

    x = can't happen
    * = don't-care
    1 = incompatible options (checked in commands.py)
    2 = abort: uncommitted changes (commit or update --clean to discard changes)
    3 = abort: uncommitted changes (checked in commands.py)

    The merge is performed inside ``wc``, a workingctx-like objects. It defaults
    to repo[None] if None is passed.

    Return the same tuple as applyupdates().
    r   rS  Nz&Invalid updatecheck %r (can accept %r)r   r\   s   preferancestoró   *c                 ó    •— g | ]
}‰|         ‘ŒS r   r   )r   r‰   r&   s     €r   r    z_update.<locals>.<listcomp>o  s   ø€ ÐLÐLÐL S�t˜C”yÐLÐLÐLr!   )rx   s   outstanding uncommitted merges   outstanding merge conflictss   use 'hg resolve' to resolverË   s7   merging with a working directory ancestor has no effects   nothing to merges#   use 'hg update' or check 'hg heads's   uncommitted changess   use 'hg status' to list changess	   preupdateTr!   )ÚthrowÚparent1Úparent2s   update)rè  ré  r   )Úmissings+   commit or update --clean to discard changess   followcopiesF)r5  r}   s   conflicting changesr  ó   fsj   local%(l)s changed %(f)s which other%(o)s deleted
use (c)hanged version or (d)elete?$$ &Changed $$ &Deletes   prompt deletes   prompt keepsr   other%(o)s changed %(f)s which local%(l)s deleted
use (c)hanged version or leave (d)eleted?$$ &Changed $$ &Deleteds   prompt recreating)rê  Úbranchs<   note: possible conflict - %s was renamed multiple times to:
s    %s
s9   note: possible conflict - %s was deleted and renamed to:
s   updatestate)rº  é   )Qr\  rT  ÚUPDATECHECK_LINEARÚUPDATECHECK_NONEÚUPDATECHECK_NO_CONFLICTÚ
ValueErrorr/   r   ÚnullcontextmanagerÚwlockr  r"   Ú
configlistÚ	changelogÚcommonancestorsheadsr-  rw   rÛ  rP  r·   rõ   r   ry   r   r   rœ  rÓ   rì  rS   r‘   r$  r  ÚbailifchangedÚhookr—  r  r   Ú
foregroundÚUpdateAbortrm   rf  r  r¶   r   Ú
partextrasrn   r�   Úpromptchoicert   r�   rœ   r›   rp   rŒ   ru   rš   Úfscasesensitiverƒ   r­   r¯   râ   r¡   rx   rã   r™   Úvfsr‚  Úhexrã  rÔ  r4   Úparentchanger   Ú
get_fs_nowÚ
setparentsÚrecordupdatesr  Úunlinkr$   Ú	setbranchÚprunetemporaryincludes):r&   r-  r“   r{   rP  Úmergeancestorrº  r5  r}   ÚupdatedirstateÚupdatecheckÚwcrT  Úokayr+   Úmaybe_wlockÚplrª  r3  ÚpasÚcahsÚfp1Úfp2Úxp1Úxp2r¹  r½  rÌ   Úm_ar  r  rù  r7  r|   Úvalsr9   r”   r„   Úpromptsr¥   r:   r¦   r§   r‰   rŒ   rÈ   Únfr™   r†  ÚstatsrÇ  rÓ  ÚkÚactsrê   Úambiguous_mtimeÚnowÚnow_secs:   `                                                         r   Ú_updater    sy  ø€ ðF ÐÐÐÐÐð ÐÐÐØð 
"˜uð 
"ð ÐÝ,ˆKÝ Õ"4Õ6MÐNˆØ˜dÐ"Ð"Ø;ˆCØ�K Ð&Ñ&ˆCÝ˜S‘/”/Ð!Ø	€~˜"Ÿ-š-™/œ/€~ÝÔ-Ñ/Ô/ˆˆà—j’j‘l”lˆØ	ð @8ð @8Øˆ:Ø�d”ˆBØ�ZŠZ‰\Œ\ˆØ�ŒUˆØ�$ŒZˆØÐØ˜”>Ð"ˆCˆCàŒw×!Ò! (Ð,=Ñ>Ô>À4À&ÒHÐHØ”~×:Ò:¸2¿7º7¹9¼9ÀbÇgÂgÁiÄiÑPÔP�ØLÐLÐLÐL­V°D©\¬\Ð-J¸d¼k¸]ÐLÑLÔL��à—{’{ 2¨K�{Ñ8Ô8Ð9�àŸWšW™YœY¨¯ª©	¬	µ5¸±9´9½eÀB¹i¼iÐGÑˆˆS�#�sàÐ- +˜oˆ	àð 	7Ý�2‰wŒw˜Š{ˆ{ÝÔ&¥qÐ)IÑ'JÔ'JÑKÔKÐKØ—’‘”ˆBØ×!Ò!Ñ#Ô#ð 7ÝÐ6Ñ7Ô7�ÝÐ7Ñ8Ô8�ÝÔ& s°Ð6Ñ6Ô6Ð6Øñ *	ÝÐNÑOÔOˆCØ�r�dŠ{ˆ{Ý”k #Ñ&Ô&Ð&Ø˜˜’�Ø$ð 6¨¯ª©¬¸¿	º	¹¼Ò)CÐ)CÝÐ/Ñ0Ô0�CÝÐCÑDÔD�DÝœ+ c°Ð5Ñ5Ô5Ð5Øð 7˜bŸhšh™jœjð 7¨B¯JªJ©L¬Lð 7ÝÐ.Ñ/Ô/�ÝÐ;Ñ<Ô<�ÝÔ& s°Ð6Ñ6Ô6Ð6Ø—=’=‘?”?ð .Ý ¤Ñ,Ô,ð .ð .�AØ—F’F˜1‘I”I×+Ò+Ñ-Ô-Ð-Ð-øàð 	Ø�RŠxˆxà—	’	˜,¨d¸CÈ�	ÑMÔMÐMØ—	’	˜)¨S¸#ÀQ�	ÑGÔGÐGÝ# A q¨!¨QÑ/Ô/ðc@8ð @8ð @8ð @8ñ @8ô @8ð @8ð @8ðf Õ0Ò0Ð0°SØ�Ø�ðAð 6ð 6ð Ÿš¨˜Ñ.Ô.�Øð õ ")Ô!3°D¸2¿7º7¹9¼9¸+Ñ!FÔ!F�Jà˜D”z—’Ñ(Ô(¨JÐ6Ð6ØåÐ 6Ñ7Ô7˜Ý Ð!OÑPÔP˜Ý#Ô/°¸$Ð?Ñ?Ô?Ð?ð àð 	Ø�$ˆCˆCØð 	Ø�$ˆCð ”w×)Ò)¨(°OÑDÔDˆØð 	!Ø ˆLˆLØ�Q”ð 	!Ø ˆLØð 	! 2§8¢8°D 8Ñ#9Ô#9ð 	!Ø ˆLõ #ØØØØØØØØØØ!ð
ñ 
ô 
ˆð Õ1Ò1Ð1Ø×#Ò#Ñ%Ô%ð 7ÝÐ.Ñ/Ô/�ÝÐGÑHÔH�ÝÔ& s°Ð6Ñ6Ô6Ð6ð
 �Š˜~Ñ.Ô.ˆØñ 9	*ØˆAØ‰LˆAˆt�SÝÔ*¨6Ñ2Ô2ˆGØˆG�D‰MØ•MÔ8Ò8Ð8Ø”7×'Ò'Ýð2ñô ð
 ñð ñô ð ð —O’OØÝ%Ô3ØØ(ñ	ô ð ð ð ˜"�W�WØ—O’OØÝ%Ô9ØØ&ñ	ô ð ð ð —O’OØÝ%Ô0ØØ&ñ	ô ð ð ð •mÔ:Ò:Ð:Ø(,Ñ%��B˜˜D #Ø˜2œŸš™œ�à”G×(Ò(Ýð7ñô ð
 "ñ"ð ñô ð ò	ð 	ð —O’OØÝ%Ô0Ø ˜Ø,ñ	ô ð ð ð ×&Ò& qÑ)Ô)Ð)åÔ# D¤IÑ.Ô.ð 	>àð >Øð>ØŸXšX¨d¸5˜XÑAÔAð>õ    b§k¢k¡m¤m°TÑ:Ô:Ð:Ð:å  b§k¢k¡m¤m°WÑ=Ô=Ð=õ ˜GœO×1Ò1Ñ3Ô3Ñ4Ô4ð 		,ð 		,‰EˆAˆrØŒG�LŠLÝð,ñô ð ñ	ñô ð õ ˜R‘j”jð ,ð ,�Ø”—’˜X¨™]Ñ+Ô+Ð+Ð+ð,õ ˜GÔ0×6Ò6Ñ8Ô8Ñ9Ô9ð 		,ð 		,‰EˆAˆrØŒG�LŠLÝð)ñô ð ñ	ñô ð õ ˜R‘j”jð ,ð ,�Ø”—’˜X¨™]Ñ+Ô+Ð+Ð+ð,ð ð 	<Ø!$ d¤k°3¸Ð!;ÑˆC��c˜3ð ˜D�Ð4 G§N¢NÑ$4Ô$4ˆØ'ÐJ¨FÐJ¸2¿=º=¹?¼?Ð7JˆØð 	5Ø�IŠI�l¨$¸ÀSˆIÑIÔIÐIàŒH�NŠN˜>¨2¯6ª6©8¬8Ñ4Ô4Ð4åØ�'—+’+�}Ô7Ð9Ñ:Ô:¸B¿GºG¹I¼Iñ	
ô 	
ð 	
ð &Ð9¨k¨/ˆÝ+7ØØØØØØØð,
ñ ,
ô ,
Ñ(ˆˆ{˜Lð ñ \	8Øð 5Ø+×1Ò1Ñ3Ô3ð 5ð 5‘G�A�tØ!ð 9ð 9˜Ø'˜œ¨¨!¬¨aÐ8°!°A°B°B´%Ð8Ð8Ð8Ð8Ð8Ø�MÔ4Ò4Ð4¸Ð4à!%ð 5ð 5˜AØ04˜K¨¨!¬Ñ-Ð-øå�{Ñ#Ô#Ø<HÐO�—’�]Ô5Ð7Ñ8Ô8Ð8Èaòð ð ð ð ”×+Ò+Ñ-Ô-ð O8ð O8ðd ð /Ø&(�OÝ#Ô.¨t¬xÑ8Ô8�CØ�{ð '+˜˜à"% a¤&˜Ø$/×$5Ò$5Ñ$7Ô$7ð Hð H™D˜A˜qØ ˜}°°1´°a´¸GÒ1CÐ1CØ67¸´d¸A¸a¼DÀ$Ð5G °Ñ 2øØ$3×$9Ò$9Ñ$;Ô$;ð /ð /™D˜A˜qØ-.˜K¨™N˜Nà—’  SÑ)Ô)Ð)ÝÔ+Ø˜'Ô-¨{¸Kñô ð õ ”˜DœHŸMšM¨.Ñ9Ô9Ñ:Ô:Ð:à"ð 9Ø”M×+Ò+¨B¯IªI©K¬KÑ8Ô8Ð8ð #ð 8Ø×1Ò1°$Ñ7Ô7Ð7ð_O8ð O8ð O8ñ O8ô O8ð O8ð O8ð O8ð O8ð O8ð O8øøøð O8ð O8ð O8ð O8ðc@8ð @8ð @8ñ @8ô @8ð @8ð @8ð @8ð @8ð @8ð @8øøøð @8ð @8ð @8ð @8ðD
 ð 
Ø�	Š	Ø˜s¨C°uÔ7Lð 	ñ 	
ô 	
ð 	
ð €Ls?   Â	Ml-ÏW?l-çD/lì
l-ìl	ìl-ìl	ìl-ì-l1ì4l1c           	      óv   — t          |                      ¦   «         |                      ¦   «         |d|||¬¦  «        S )z…Merge another topological branch into the working copy.

    force = whether the merge was run with 'merge --force' (deprecated)
    T)rº  r“   r{   r}   r
  ©r  r&   r#  )r’  rº  r{   r
  s       r   Úmerger!  ­  s@   € õ Ø�Š‰
Œ
Ø�Š‰	Œ	ØØØØØðñ ô ð r!   c           	      óz   — t          |                      ¦   «         |                      ¦   «         ddg d¢||¬¦  «        S )a³  Do a regular update to the given commit, aborting if there are conflicts.

    The 'updatecheck' argument can be used to control what to do in case of
    conflicts.

    Note: This is a new, higher-level update() than the one that used to exist
    in this module. That function is now called _update(). You can hopefully
    replace your callers to use this new update(), or clean_update(), merge(),
    revert_to(), or graft().
    F)s   working copys   destinations   working copy parent)r“   r{   rº  r	  r
  r   )r’  r	  r
  s      r   r`   r`   ¾  sF   € õ Ø�Š‰
Œ
Ø�Š‰	Œ	ØØØHÐHÐHØØðñ ô ð r!   c                 ór   — t          |                      ¦   «         |                      ¦   «         dd|¬¦  «        S )z‰Do a clean update to the given commit.

    This involves updating to the commit and discarding any changes in the
    working copy.
    FT)r“   r{   r
  r   )r’  r
  s     r   Úclean_updater$  Ô  s-   € õ �3—8’8‘:”:˜sŸwšw™yœy°eÀ4ÈBÐOÑOÔOÐOr!   c           	      óv   — t          |                      ¦   «         |                      ¦   «         ddd||¬¦  «        S )z¤Revert the working copy to the given commit.

    The working copy will keep its current parent(s) but its content will
    be the same as in the given commit.
    FT)r“   r{   r  r5  r
  r   )r’  r5  r
  s      r   Ú	revert_tor&  Ý  s@   € õ Ø�Š‰
Œ
Ø�Š‰	Œ	ØØØØØðñ ô ð r!   c           
      óÒ  — |p| d         }|                      ¦   «         }|p|                      ¦   «         }| j                             |                     ¦   «         |                     ¦   «         ¦  «        p)|                     ¦   «         |                     ¦   «         k    }t          | |                     ¦   «         dd|                     ¦   «         |||¬¦  «        }	|r|	j        r|                     ¦   «         }
nc| j        }
|                     ¦   «         }|rFt          |¦  «        dk    r3||v r/| 
                    |¦  «         |d                              ¦   «         }
|
|                     ¦   «         k    r| j        }
|                     ¦   «         r?|                     |                     ¦   «         |
¦  «         t          j        |||¦  «         n›| j                             ¦   «         5  |                      |                     ¦   «         |
¦  «         | j                             |                      ¦   «         ¦  «         t          j        |||¦  «         ddd¦  «         n# 1 swxY w Y   |	S )aI  Do a graft-like merge.

    This is a merge where the merge ancestor is chosen such that one
    or more changesets are grafted onto the current changeset. In
    addition to the merge, this fixes up the dirstate to include only
    a single parent (if keepparent is False) and tries to duplicate any
    renames/copies appropriately.

    ctx - changeset to rebase
    base - merge base, or ctx.p1() if not specified
    labels - merge labels eg ['local', 'graft']
    keepparent - keep second parent if any
    keepconflictparent - if unresolved, keep parent used for the merge

    NT)r  rº  r
  rí  r   )rª  rõ  Ú
isancestorr-  r#  r  rœ  rÛ  r  rõ   r½   r/   r  r	   Úgraftcopiesr4   r   r‚  Úcurrenttransaction)r&   r’  Úbaserº  Ú
keepparentÚkeepconflictparentr7   Úpctxr  r  Úpotherr  s               r   Úgraftr0  ï  sV  € ð@ Ð�4˜”:€DØ�7Š7‰9Œ9€DØÐ�3—6’6‘8”8€DàŒ×!Ò! $§)¢)¡+¤+¨s¯xªx©z¬zÑ:Ô:ð 	$Ø�8Š8‰:Œ:˜Ÿš™œÒ#ð õ
 ØØ�Š‰
Œ
ØØØ�	Š	‰ŒØ#ØØð	ñ 	ô 	€Eð ð '˜eÔ3ð 'Ø—’‘”ˆˆà”ˆØ—+’+‘-”-ˆØð 	'�#˜g™,œ,¨!Ò+Ð+°¸°°Ø�NŠN˜4Ñ Ô Ð Ø˜Q”Z—_’_Ñ&Ô&ˆFà�—’‘”ÒÐØ”ˆà‡‚ÑÔð 	0Ø�Š˜Ÿ	š	™œ VÑ,Ô,Ð,åÔ˜4  dÑ+Ô+Ð+Ð+àŒ]×'Ò'Ñ)Ô)ð 	0ð 	0Ø�OŠO˜DŸIšI™KœK¨Ñ0Ô0Ð0ØŒM×Ò × 7Ò 7Ñ 9Ô 9Ñ:Ô:Ð:åÔ˜t S¨$Ñ/Ô/Ð/ð		0ð 	0ð 	0ñ 	0ô 	0ð 	0ð 	0ð 	0ð 	0ð 	0ð 	0øøøð 	0ð 	0ð 	0ð 	0ð
 €Ls   Ç%A+IÉI É#I c                 óô   — |€>|                       ¦   «         �d}t          j        |¦  «        ‚|                      ¦   «         }t	          |                      ¦   «         |dd|                      ¦   «         d¬¦  «        S )Ns/   must specify parent of merge commit to back outTF)r“   r{   rP  r  )r3  r   ÚProgrammingErrorrª  r  r&   r-  )r’  Úparentr
  r+   s       r   Úback_outr4  ;	  sq   € Ø€~Ø�6Š6‰8Œ8ÐØDˆCÝÔ(¨Ñ-Ô-Ð-Ø—’‘”ˆÝØ�Š‰
Œ
ØØØØ—’‘”Øðñ ô ð r!   c	                 óÔ  ‡ ‡— ˆˆ fd„}	|j         }
g }	 |rg }|j        |_         ‰                      |||¬¦  «        }|�rd}t          |j        ¦  «        }t          |j        ¦  «        }|r|rt          d¦  «        }|||fz  }nw|rt          d¦  «        }||z  }n`|rt          d¦  «        }||z  }nI|rGd}|D ],} ||¦  «        r‰ j                             |¦  «        s|dz  }Œ-|rt          d	¦  «        }||z  }|€	||
|_         S |d
z  }‰ j	         
                    |d¬¦  «        dk    r!t          j        t          d¦  «        ¦  «        ‚|rvt          |j        |j        z   ¦  «        D ]Y}|s@‰ j	                             t          d¦  «        |z  ¦  «          |	‰ j        j        |¦  «         |                     |¦  «         ŒZ|r�t          |d¬¦  «        D ]~} ||¦  «        rq‰ j                             |¦  «        sW|s@‰ j	                             t          d¦  «        |z  ¦  «          |	‰ j        j        |¦  «         |                     |¦  «         Œ||
|_         S # |
|_         w xY w)a  Purge the working directory of untracked files.

    ``matcher`` is a matcher configured to scan the working directory -
    potentially a subset.

    ``unknown`` controls whether unknown files should be purged.

    ``ignored`` controls whether ignored files should be purged.

    ``removeemptydirs`` controls whether empty directories should be removed.

    ``removefiles`` controls whether files are removed.

    ``abortonerror`` causes an exception to be raised if an error occurs
    deleting a file or directory.

    ``noop`` controls whether to actually remove files. If not defined, actions
    will be taken.

    ``confirm`` ask confirmation before actually removing anything.

    Returns an iterable of relative paths in the working directory that were
    or would be removed.
    c                 óæ   •— 	  | |¦  «         d S # t           $ rV t          d¦  «        |z  }‰rt          j        |¦  «        ‚‰j                             t          d¦  «        |z  ¦  «         Y d S w xY w)Ns   %s cannot be removeds   warning: %s
)rp  r   r   rÓ   r"   rx   )Úremovefnrƒ   r”   Úabortonerrorr&   s      €€r   r½   zpurge.<locals>.removeo	  sˆ   ø€ ð	6ØˆH�T‰NŒNˆNˆNˆNøÝð 	6ð 	6ð 	6ÝÐ)Ñ*Ô*¨TÑ1ˆAØð 6Ý”k !‘n”nÐ$à”—’�QÐ/Ñ0Ô0°1Ñ4Ñ5Ô5Ð5Ð5Ð5Ð5ð	6øøøs   ƒ �AA0Á/A0)r   ÚignoredÚunknownNs3   permanently delete %d unknown and %d ignored files?s$   permanently delete %d unknown files?s$   permanently delete %d ignored files?r   r   s1   permanently delete at least %d empty directories?s    (yN)$$ &Yes $$ &No)Údefaults   removal cancelleds   removing file %s
T)Úreverses   removing directory %s
)Útraversedirr  r¯  rõ   r9  r:  r   r0   Úlistdirr"   rü  r   ÚCanceledErrorrw   r  r  Úrmdir)r&   r5  r:  r9  ÚremoveemptydirsÚremovefilesr8  ÚnoopÚconfirmr½   Úoldtraversedirr  Údirectoriesr¯  r+   Ú
nb_ignoredÚ
nb_unknownÚ	dir_countr9   s   `     `            r   ÚpurgerJ  K	  s  øø€ ðH6ð 6ð 6ð 6ð 6ð 6ð Ô(€Nà
€Cð7-Øð 	5ØˆKØ"-Ô"4ˆGÔà—’ 7°GÀW�ÑMÔMˆàñ 	GØˆCÝ˜Vœ^Ñ,Ô,ˆJÝ˜Vœ^Ñ,Ô,ˆJØð %˜jð %ÝÐNÑOÔO�Ø˜
 JÐ/Ñ/��Øð %ÝÐ?Ñ@Ô@�Ø�zÑ!��Øð %ÝÐ?Ñ@Ô@�Ø�zÑ!��Ø ð 	%Ø�	Ø$ð 'ð '�AØ�w˜q‘z”zð '¨$¬)×*;Ò*;¸AÑ*>Ô*>ð 'Ø! Q™˜	øØð %ÝØLñô �Cð ˜9Ñ$�CØˆ{Øð0 -ˆÔÐð- Ð-Ñ-�Ø”7×'Ò'¨°QÐ'Ñ7Ô7¸1Ò<Ð<ÝÔ-­aÐ0DÑ.EÔ.EÑFÔFÐFàð 	Ý˜FœN¨V¬^Ñ;Ñ<Ô<ð ð �Øð 0Ø”G—L’L¥Ð#8Ñ!9Ô!9¸AÑ!=Ñ>Ô>Ð>Ø�F˜4œ9Ô+¨QÑ/Ô/Ð/Ø—
’
˜1‘”��àð 	"Ý˜K°Ð6Ñ6Ô6ð "ð "�Ø�7˜1‘:”:ð " d¤i×&7Ò&7¸Ñ&:Ô&:ð "Øð 3ØœŸš¥QÐ'AÑ%BÔ%BÀQÑ%FÑGÔGÐGØ˜˜tœyœ°Ñ2Ô2Ð2Ø—J’J˜q‘M”M�Møàð -ˆÔÐø˜nˆÔÐ,Ð,Ð,Ð,s   “C*I ÄEI É	I'r?   r  r.   )NFNNFTNN)NFNr  )NNFFN)TFTTFFF)BrÜ   ÚstructÚi18nr   r-  r   Ú
thirdpartyr   Úutilsr   Údirstateutilsr   r\  r	   r
   r   r   r   r*  r   rn   r   r   r   r   r   r   r   r   ÚpackÚ_packÚunpackÚ_unpackr,   r;   r=   r�   r•   r­   r°   rÉ   rÕ   r×   rN  rQ  rf  rj  rw  r�  r”  r  r—  rÔ  rã  ÚUPDATECHECK_ABORTrï  rî  rð  r  r!  r`   r$  r&  r0  r4  rJ  r   r!   r   ú<module>rU     s)  ðð Ð Ð Ð Ø €€€à Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø $Ð $Ð $Ð $Ð $Ð $ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð" 	Œ€Ø
Œ-€ðð ð ðð ð ð ð&5ð 5ð 5ð 5ð 5ñ 5ô 5ð 5ðp@Kð @Kð @KðFð ð ðBAð Að AðH
ð 
ð 
ðD
ð D
ð D
ðN ,ð  ,ð  ,ðF`ð `ð `ð `ð `ñ `ô `ð `ðZ ð~ð ~ð ~ð ~ðB"ð "ð "ð6 ØðEð Eð Eð EðPð ð ð$
ð $
ð $
ðNSð Sð Sðlð ð ð: €„ˆtÐÑÔð
ð 
ð 
ð 
ð 
ñ 
ô 
ñ Ôð
ð, ðEð Eð Eð EðP2
ð 2
ð 2
ðj Ð ØÐ ØÐ Ø'Ð ð ØØØØØØØð]ð ]ð ]ð ]ð@ð ð ð ð"ð ð ð ð,Pð Pð Pð Pðð ð ð ð* 
ØØØØ	ðIð Ið Ið IðXð ð ð ð& ØØØØØ	Øðk-ð k-ð k-ð k-ð k-ð k-r!   