Ë Z¹Lµ(zaã ó†—dZddlZddlZddlZddlZddlZddlZddlZddlm Z ddl m Z m Z ddl mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZmZddlm Z ejBZ!ejDZ"ejFZ$ejJZ&d Z'd Z(d Z)d Z*d Z+d Z,d Z-ej\d«Z/d„Z0d„Z1d„Z2d„Z3iZ4d›d„Z5Gd„d«Z6Gd„d«Z7Gd„de8«Z9d„Z:dœd„Z;Gd„d«Z< d�d„Z=d „Z>d!„Z?d"„Z@d#„ZAd$„ZBd%„ZCd&dd'd(d)d*œZDgd+¢ZEGd,„d-«ZFGd.„d/«ZGdžd0„ZHGd1„d2eG«ZId3eIiZJiZKd4„ZLeLd5«d6„«ZMGd7„d8«ZNd9ZOGd:„d;eG«ZPGd<„d=«ZQd>„ZRGd?„d@eG«ZSGdA„dBeS«ZTdddCddeUeVej®j±«««dDddEdFdGœ ZYdŸdH„ZZdI„Z[dJ„Z\ d dK„Z]dL„Z^dM„Z_dN„Z`dO„ZadP„ZbdQ„ZcdR„ZddS„ZedT„Zfd¡dU„Zg d¢dV„ZhdW„Zie5dXdY«dZ„«ZjeUgd[¢ej®j±«D�cgc]}d\|z‘Œ c}z«Zke5d]ek«d^„«Zle5d_d`«da„«Zme5db«dc„«Zne5dd«de„«Zoe5df«dg„«Zpe5dh«di„«Zqe5dj«dk„«Zre5dl«dm„«ZsGdn„doejè«Zue5dpdq«dr„«Zve5dsdt«du„«Zwe5dvdw«dx„«Zxe5dydz«d{„«Zye5d|d}«d~„«Zze5dd€«d�„«Z{e5d‚«dƒ„«Z|e5d„«d…„«Z}e5d†d`«d‡„«Z~e5dˆ«d‰„«Ze5dŠd‹«dŒ„«Z€e5d�«dŽ„«Z�e�jd�«Zƒe5d�«d‘„«Z„e5d’«d“„«Z…e5d”d•«d–„«Z†e5d—d˜«d™„«Z‡dš„Zˆycc}w)£aîHandling of the new bundle2 format The goal of bundle2 is to act as an atomically packet to transmit a set of payloads in an application agnostic way. It consist in a sequence of "parts" that will be handed to and processed by the application layer. General format architecture =========================== The format is architectured as follow - magic string - stream level parameters - payload parts (any number) - end of stream marker. the Binary format ============================ All numbers are unsigned and big-endian. stream level parameters ------------------------ Binary format is as follow :params size: int32 The total number of Bytes used by the parameters :params value: arbitrary number of Bytes A blob of `params size` containing the serialized version of all stream level parameters. The blob contains a space separated list of parameters. Parameters with value are stored in the form `=`. Both name and value are urlquoted. Empty name are obviously forbidden. Name MUST start with a letter. If this first letter is lower case, the parameter is advisory and can be safely ignored. However when the first letter is capital, the parameter is mandatory and the bundling process MUST stop if he is not able to proceed it. Stream parameters use a simple textual format for two main reasons: - Stream level parameters should remain simple and we want to discourage any crazy usage. - Textual data allow easy human inspection of a bundle2 header in case of troubles. Any Applicative level options MUST go into a bundle2 part instead. Payload part ------------------------ Binary format is as follow :header size: int32 The total number of Bytes used by the part header. When the header is empty (size = 0) this is interpreted as the end of stream marker. :header: The header defines how to interpret the part. It contains two piece of data: the part type, and the part parameters. The part type is used to route an application level handler, that can interpret payload. Part parameters are passed to the application level handler. They are meant to convey information that will help the application level object to interpret the part payload. The binary format of the header is has follow :typesize: (one byte) :parttype: alphanumerical part name (restricted to [a-zA-Z0-9_:-]*) :partid: A 32bits integer (unique in the bundle) that can be used to refer to this part. :parameters: Part's parameter may have arbitrary content, the binary structure is:: :mandatory-count: 1 byte, number of mandatory parameters :advisory-count: 1 byte, number of advisory parameters :param-sizes: N couple of bytes, where N is the total number of parameters. Each couple contains (, `. `chunksize` is an int32, `chunkdata` are plain bytes (as much as `chunksize` says)` The payload part is concluded by a zero size chunk. The current implementation always produces either zero or one chunk. This is an implementation limitation that will ultimately be lifted. `chunksize` can be negative to trigger special case processing. No such processing is in place yet. Bundle processing ============================ Each part is processed in order using a "part handler". Handler are registered for a certain part type. The matching of a part to its handler is case insensitive. The case of the part type is used to know if a part is mandatory or advisory. If the Part type contains any uppercase char it is considered mandatory. When no handler is known for a Mandatory part, the process is aborted and an exception is raised. If the part is advisory and no handler is known, the part is ignored. When the process is aborted, the full bundle is still read from the stream to keep the channel usable. But none of the part read from an abort are processed. In the future, dropping the stream may become an option for channel we do not care to preserve. éNé)Ú_)ÚhexÚshort)Ú bookmarksÚ changegroupÚencodingÚerrorÚobsoleteÚphasesÚpushkeyÚpycompatÚ requirementsÚscmutilÚ streamcloneÚtagsÚurlÚutil)Ú stringutilÚurlutil)Ú repositorys>is>Bs>Is>BBé€s[^a-zA-Z0-9_:-]cóR—|jdd«r|jd|z«yy)z(debug regarding output stream (bundling)ódeveló bundle2.debugsbundle2-output: %s N©Ú configboolÚdebug©ÚuiÚmessages ú5usr/lib/python3.12/site-packages/mercurial/bundle2.pyÚoutdebugr#Ês(€à ‡}�}�XÐ/Ô0Ø �‰Ð(¨7Ñ2Õ3ð1ócóR—|jdd«r|jd|z«yy)z"debug on input stream (unbundling)rrsbundle2-input: %s Nrrs r"Úindebugr&Ðs(€à ‡}�}�XÐ/Ô0Ø �‰Ð'¨'Ñ1Õ2ð1r$cóD—tj|«r t|«‚y)z9raise ValueError if a parttype contains invalid characterN)Ú_parttypeforbiddenÚsearchÚ ValueError©Úparttypes r"Úvalidateparttyper-Ös €ä× Ñ  Ô*ܘÓ"Ð"ð+r$có—dd|zzS)z�return a struct format to read part parameter sizes The number parameters is variable so we need to build that format dynamically. ó>sBB©)Únbparamss r"Ú_makefpartparamsizesr2Üs€ð �5˜8Ñ#Ñ $Ð$r$r0có,‡‡—t‰«ˆˆfd„}|S)zúdecorator that register a function as a bundle2 part handler eg:: @parthandler('myparttype', ('mandatory', 'param', 'handled')) def myparttypehandler(...): '''process a part of type "my part".''' ... cón•—‰j«}|tvsJ‚|t|<t‰«|_|S©N)ÚlowerÚparthandlermappingÚ frozensetÚparams)ÚfuncÚ lparttyper9r,s €€r"Ú _decoratorzparthandler.._decoratorôs:ø€Ø—N‘NÓ$ˆ ØÔ 2Ñ2Ð2Ð2Ø(,Ô˜9Ñ%Ü Ó'ˆŒ ؈ r$)r-)r,r9r<s`` r"Ú parthandlerr=èsù€ô�XÔõð Ðr$có@—eZdZdZd„Zd d„Zd„Zd„Zd„Zd„Z d „Z e Z y) Úunbundlerecordsa‘keep record of what happens during and unbundle New records are added using `records.add('cat', obj)`. Where 'cat' is a category of record and obj is an arbitrary object. `records['cat']` will return all entries of this category 'cat'. Iterating on the object itself will yield `('category', obj)` tuples for all entries. All iterations happens in chronological order. có.—i|_g|_i|_yr5)Ú _categoriesÚ _sequencesÚ_replies©Úselfs r"Ú__init__zunbundlerecords.__init__ s€ØˆÔ؈ŒØˆ� r$NcóÜ—|jj|g«j|«|jj||f«|�"|j |«j ||«yy)z€add a new record of a given category. The entry can then be retrieved in the list returned by self['category'].N)rAÚ setdefaultÚappendrBÚ getrepliesÚadd)rEÚcategoryÚentryÚ inreplytos r"rKzunbundlerecords.adds`€ð ×Ñ×#Ñ# H¨bÓ1×8Ñ8¸Ô?Ø �‰×Ñ ¨%Ð0Ô1Ø Ð Ø �O‰O˜IÓ &× *Ñ *¨8°UÕ ;ð !r$cóJ—|jj|t««S)z3get the records that are replies to a specific part)rCrHr?)rEÚpartids r"rJzunbundlerecords.getrepliess€à�}‰}×'Ñ'¨´Ó0AÓBÐBr$cóL—t|jj|d««S)Nr0)ÚtuplerAÚget)rEÚcats r"Ú __getitem__zunbundlerecords.__getitem__s €Ü�T×%Ñ%×)Ñ)¨#¨rÓ2Ó3Ð3r$có,—t|j«Sr5)ÚiterrBrDs r"Ú__iter__zunbundlerecords.__iter__"ó€Ü�D—O‘OÓ$Ð$r$có,—t|j«Sr5)ÚlenrBrDs r"Ú__len__zunbundlerecords.__len__%s€Ü�4—?‘?Ó#Ð#r$có,—t|j«Sr5)ÚboolrBrDs r"Ú __nonzero__zunbundlerecords.__nonzero__(rYr$r5) Ú__name__Ú __module__Ú __qualname__Ú__doc__rFrKrJrUrXr\r_Ú__bool__r0r$r"r?r?þs2„ñ òó <òCò4ò%ò$ò%ð�Hr$r?có*—eZdZdZ dd„Zd„Zd„Zy)ÚbundleoperationaPan object that represents a single bundling process Its purpose is to carry unbundle-related objects and states. A new object should be created at the beginning of each bundle processing. The object is to be returned by the processing function. The object has very little content now it will ultimately contain: * an access to the repo the bundle is applied to, * a ui object, * a way to retrieve a transaction to add changes to the repo, * a way to record the result of processing each part, * a way to construct a bundle response when applicable. Ncó´—||_||_|j|_t«|_d|_||_i|_||_i|_ ||_ yr5) ÚrepoÚremoter r?ÚrecordsÚreplyÚ captureoutputÚhookargsÚ_gettransactionÚmodesÚsource)rErhÚtransactiongetterrlrpris r"rFzbundleoperation.__init__>sS€ðˆŒ àˆŒ Ø—'‘'ˆŒÜ&Ó(ˆŒ ؈Œ Ø*ˆÔ؈Œ Ø0ˆÔàˆŒ ؈� r$có¸—|j«}|jr6|jj|j«|j|_d|_|Sr5)rnrmÚupdate)rEÚ transactions r"Úgettransactionzbundleoperation.gettransactionSsL€Ø×*Ñ*Ó,ˆ à �=Š=ð �M‰M× Ñ  ×!5Ñ!5Ô 6Ø#'§=¡=ˆKÔ ðˆŒ àÐr$có|—|j€tjd«‚|jj|«y)Ns@attempted to add hookargs to operation after transaction started)rmr ÚProgrammingErrorrs)rErms r"Ú addhookargszbundleoperation.addhookargsbs8€Ø �=‰=Ð Ü×(Ñ(ð7óð ð � ‰ ×јXÕ&r$)Tr$N)r`rarbrcrFrurxr0r$r"rfrf.s!„ñ ð&ØØó ò* ó'r$rfcó —eZdZy)ÚTransactionUnavailableN)r`rarbr0r$r"rzrzks„Ør$rzcó—t«‚)zždefault method to get a transaction while processing a bundle Raise an exception to highlight the fact that no transaction was expected to be created©rzr0r$r"Ú_notransactionr}os €ô !Ó "Ð"r$c ó,‡—t|t«r`d‰jd<|�d‰jvr|‰jd<|�d‰jvr|‰jd<t||ˆfd„||¬«St |ˆfd„||¬«}t ||‰||fi|¤Ž|S)Nó1óbundle2ssourceóurlcó•—‰Sr5r0©Útrs€r"Úzapplybundle..€sø€¡Rr$©rpricó•—‰Sr5r0rƒs€r"r…zapplybundle..„sø€©2r$)Ú isinstanceÚ unbundle20rmÚ processbundlerfÚ_processchangegroup)rhÚ unbundlerr„rprriÚkwargsÚops ` r"Ú applybundler�wsœø€ä�)œZÔ(Ø"&ˆ� ‰ �JÑØ Ð  )°2·;±;Ñ">Ø%+ˆB�K‰K˜ Ñ "Ø ˆ?˜v¨R¯[©[Ñ8Ø"%ˆB�K‰K˜Ñ ÜØ �)›Z°¸vô ð ô ˜T£:°fÀVÔ LˆÜ˜B  ¨2¨v°sÑE¸fÒE؈ r$có—eZdZd„Zd„Zd„Zy)Ú partiteratorcóX—||_||_||_d|_d|_d|_y)Nr)rhrŽrŒÚiteratorÚcountÚcurrent)rErhrŽrŒs r"rFzpartiterator.__init__Šs,€ØˆŒ ؈ŒØ"ˆŒØˆŒ ؈Œ ؈� r$có>‡—ˆfd„}|«‰_‰jS)Nc3ó¼•K—t‰jj«d«}|D].\}}|‰_|‰_|–—|j «d‰_Œ0y­w)Nr)Ú enumeraterŒÚ iterpartsr”r•Úconsume)Úitrr”ÚprEs €r"r:z$partiterator.__enter__..func“sQøèø€Ü˜DŸN™N×4Ñ4Ó6¸Ó:ˆCÛ‘��qØ"�” Ø �” ؒؗ ‘ ” Ø#�• ñ  ùsƒAA)r“)rEr:s` r"Ú __enter__zpartiterator.__enter__’sø€ô $ñ›ˆŒ Ø�}‰}Ðr$cóH—|jsyt|t«rÂd} |jr|jj «|jD]}|j «Œ d|_g}d}|j j�D|j jj«}|j jj}||_ ||_ |r|‚|jjjd|jz«y#t$rd}YŒ·wxYw)NFTs%bundle2-input-bundle: %i parts total )r“rˆÚ Exceptionr•ršÚduringunbundle2rŽrkÚ salvageoutputÚ capabilitiesÚ _replycapsÚ_bundle2salvagedoutputrhr rr”)rEÚtypeÚexcÚtbÚ seekerrorÚpartÚsalvagedÚ replycapss r"Ú__exit__zpartiterator.__exit__Ÿsî€Ø�}Š}Ø ô �cœ9Ô %ð ˆIð !Ø—<’<à—L‘L×(Ñ(Ô*à ŸMœM�Dà—L‘L•Nñ*ð#'ˆCÔ ØˆH؈IØ�w‰w�}‰}Ð(ØŸ7™7Ÿ=™=×6Ñ6Ó8�Ø ŸG™GŸM™M×6Ñ6� Ø&ˆCŒNØ)1ˆCÔ &ñØ� à � ‰ � ‰ ×ÑØ 5¸¿ ¹ Ñ Bõ øô-ò !Ø ’ ð !ús¡ADÄ D!Ä D!N)r`rarbrFr�r¬r0r$r"r‘r‘‰s„òò ó. r$r‘cóú—|€|€t}t||||¬«}|j|jjr²dg}|jr'|j dt |j«z«|j�|jtur|j d«n|j d«|j d«|jjdj|««t|||«|S)a,This function process a bundle, apply effect to/from a repo It iterates over each part then searches for and uses the proper handling code to process the part. Parts are processed in order. Unknown Mandatory part will abort the process. It is temporarily possible to provide a prebuilt bundleoperation to the function. This is used to ensure output is properly propagated in case of an error during the unbundling. This output capturing part will likely be reworked and this ability will probably go away in the process. r†sbundle2-input-bundle:s %i paramss no-transactions with-transactionó r$) r}rfr9r Ú debugflagrIr[rnrÚjoinÚ processparts)rhrŒrqrŽrpriÚmsgs r"rŠrŠÐsØ€ð( €zØ Ð $Ü .Ð Ü Ø Ø ØØô  ˆð×ÒØ ‡w�w×ÒØ'Ð(ˆØ × Ò Ø �J‰J�}¤s¨9×+;Ñ+;Ó'<Ñ<Ô =Ø × Ñ Ð %¨×);Ñ);¼~Ñ)MØ �J‰JÐ)Õ *à �J‰JÐ+Ô ,Ø � ‰ �5ÔØ �‰� ‰ �c—h‘h˜s“mÔ$ä��r˜9Ô%à €Ir$cóp—t|||«5}|D]}t||«Œ ddd«y#1swYyxYwr5)r‘Ú _processpart)rhrŽrŒÚpartsr©s r"r±r±s0€Ü �d˜B  Ô *¨eÛˆDÜ ˜˜TÕ "ñ÷ +× *Ñ *úsŽ,¬5c ó0—|j�K|jj�5|jj}|j«}|j|d<|j|j |||fi|¤Ž}|j jdd|i«|S)NÚdelta_base_reuse_policyó changegroupóreturn)riÚpathÚcopyÚdelta_reuse_policyÚapplyrhrjrK)rŽÚcgr„rprr�Ú remote_pathÚrets r"r‹r‹s…€Ø ‡y�yР§¡§¡Ð!;Ø—i‘i—n‘nˆ Ø—‘“ˆØ,7×,JÑ,JˆÐ(Ñ)Ø ˆ"�(‰(�2—7‘7˜B ¨Ñ 6¨vÑ 6€C؇J�J‡N�NØà �sð ôð €Jr$cóP—d} tj|j«}|€"d}tj|j¬«‚t |j d|jz«|j|jz }|rPt|«}|j«ddj|«z}tj|j|¬«‚d} |j jrêd |jzg}|js|jd «t|j«}t|j«|z }|s|rN|jd «|r|jd |z«|r|jd|z«|jd«|jd|z«|j j!dj|««|S#tj$�r1}|jr‚t |j d |z«Yd}~|j jrëd |jzg}|js|jd «t|j«}t|j«|z }|s|rN|jd «|r|jd |z«|r|jd|z«|jd«|jd|z«|j j!dj|««yyd}~wwxYw#|j jrëd |jzg}|js|jd «t|j«}t|j«|z }|s|rN|jd «|r|jd |z«|r|jd|z«|jd«|jd|z«|j j!dj|««wwxYw)Nsunknownsunsupported-typer+sfound a handler for part %ssunsupported-params (%s)s, )r,r9s supporteds%ignoring unsupported advisory part %ssbundle2-input-part: "%s"ó (advisory)ó (params:ó %i mandatoryó %i advisoryó)s %s r$)r7rSr¥r ÚBundleUnknownFeatureErrorr&r Ú mandatorykeysr9ÚlistÚsortr°Ú mandatoryr¯rIr[r) rŽr©ÚstatusÚhandlerÚ unknownparamsr¦r²ÚnbmpÚnbaps r"Ú _gethandlerrÑsJ€Ø €Fð#'Ü$×(Ñ(¨¯©Ó3ˆØ ˆ?Ø(ˆFÜ×1Ñ1¸4¿9¹9ÔEÐ EÜ�—‘Ð5¸¿ ¹ ÑAÔBØ×*Ñ*¨W¯^©^Ñ;ˆ Ù Ü  Ó/ˆMØ × Ñ Ô Ø/°%·*±*¸]Ó2KÑKˆFÜ×1Ñ1ØŸ™¨=ôð ð‰ð �5‰5�?Š?Ø.°·±Ñ:Ð;ˆCØ—>’>Ø— ‘ ˜>Ô*Ü�t×)Ñ)Ó*ˆDÜ�t—{‘{Ó# dÑ*ˆDÙ‘tØ— ‘ ˜<Ô(ÙØ—J‘JÐ/°$Ñ6Ô7ÙØ—J‘J˜°Ñ5Ô6Ø— ‘ ˜4Ô Ø �J‰J�x &Ñ(Ô )Ø �E‰E�K‰K˜Ÿ™ › Ô &à €Nøô- × *Ñ *óØ �>Š>Ø Ü�—‘Ð?À#ÑEÔFÛà �5‰5�?Š?Ø.°·±Ñ:Ð;ˆCØ—>’>Ø— ‘ ˜>Ô*Ü�t×)Ñ)Ó*ˆDÜ�t—{‘{Ó# dÑ*ˆDÙ‘tØ— ‘ ˜<Ô(ÙØ—J‘JÐ/°$Ñ6Ô7ÙØ—J‘J˜°Ñ5Ô6Ø— ‘ ˜4Ô Ø �J‰J�x &Ñ(Ô )Ø �E‰E�K‰K˜Ÿ™ › Õ &ð ûð ûð �5‰5�?Š?Ø.°·±Ñ:Ð;ˆCØ—>’>Ø— ‘ ˜>Ô*Ü�t×)Ñ)Ó*ˆDÜ�t—{‘{Ó# dÑ*ˆDÙ‘tØ— ‘ ˜<Ô(ÙØ—J‘JÐ/°$Ñ6Ô7ÙØ—J‘J˜°Ñ5Ô6Ø— ‘ ˜4Ô Ø �J‰J�x &Ñ(Ô )Ø �E‰E�K‰K˜Ÿ™ › Õ &ð ús+„CGÇLÇ.&LÈL"ÌLÌL"Ì"DP%cój—t||«}|€yd}|jr+|j�|jj dd¬«d} |||«|�|jj «}|rP|jj d|d¬«}|jdtj|j«d¬ «yy#|�|jj «}|rP|jj d|d¬«}|jdtj|j«d¬ «wwxYw) z™process a single part from a bundle The part is guaranteed to have been fully consumed when the function exits (even if an exception is raised).NT)r Úsubprocr$óoutputF©ÚdatarËó in-reply-to©rË) rÑrlrkr Ú pushbufferÚ popbufferÚnewpartÚaddparamrÚbytestrÚid)rŽr©rÍÚoutputÚoutparts r"r´r´@s$€ô ˜"˜dÓ#€GØ€Øð €FØ ×Ò˜BŸH™HÐ0Ø �‰×јt¨TÐÔ2؈ð Ù��DÔà Ð Ø—U‘U—_‘_Ó&ˆFÙ Ø—h‘h×&Ñ& y°vÈÐ&ÓOˆGØ × Ñ Ø¤× 0Ñ 0°·±Ó 9ÀUð õ ð øð Ð Ø—U‘U—_‘_Ó&ˆFÙ Ø—h‘h×&Ñ& y°vÈÐ&ÓOˆGØ × Ñ Ø¤× 0Ñ 0°·±Ó 9ÀUð õ ð ús Á CÃA0D2có—i}|j«D]p}|sŒd|vr|d}}n&|jdd«\}}|jd«}tj|«}|D�cgc]}tj|«‘Œ}}|||<Œr|Scc}w)zñdecode a bundle2 caps bytes blob into a dictionary The blob is a list of capabilities (one per line) Capabilities may have values using a line of the form:: capability=value1,value2,value3 The values are always a list.ó=r0ró,)Ú splitlinesÚsplitÚurlreqÚunquote)ÚblobÚcapsÚlineÚkeyÚvalsÚvs r"Ú decodecapsrî]s“€ð €DØ—‘Ö!ˆÙØ Ø �tÑ Ø˜b�‰CàŸ ™  4¨Ó+‰IˆC�Ø—:‘:˜dÓ#ˆDÜ�n‰n˜SÓ!ˆÙ+/Ó0©4 a”—‘˜qÕ!¨4ˆÐ0؈ˆSŠ ð"ð €Kùò1sÁ!Bcó—g}t|«D]g}||}tj|«}|D�cgc]}tj|«‘Œ}}|rd|dj|«fz}|j |«Œidj|«Scc}w)z2encode a bundle2 caps dictionary into a bytes blobó%s=%srãr®)ÚsortedræÚquoter°rI)réÚchunksÚcarìrís r"Ú encodecapsrõus„€à €FÜ�TŽlˆØ�B‰xˆÜ �\‰\˜"Ó ˆÙ)-Ó.© A”— ‘ ˜Q•¨ˆÐ.٠ؘR §¡¨4£Ð1Ñ1ˆBØ� ‰ �bÕð ð �:‰:�fÓ Ðùò /s¯B )r$óUN)óHG10UNrö)óHG10sBZ)óHG10GZsGZ)r$óHG20r÷óHG10BZrù)rùrûr÷có`—eZdZdZdZdd„Zdd„Zed„«Zdd„Z d„Z d „Z d „Z d „Z d „Zd „Zy)Úbundle20zïrepresent an outgoing bundle2 container Use the `addparam` method to add stream level parameter. and `newpart` to populate it. Then call `getchunks` to retrieve all the binary chunks of data that compose the bundle2 container.rúcó²—||_g|_g|_t|«|_t j jd«|_d|_ d|_ y)NröT) r Ú_paramsÚ_partsÚdictr¢rÚ compenginesÚ forbundletypeÚ _compengineÚ _compoptsÚprefercompressed)rEr r¢s r"rFzbundle20.__init__™sN€ØˆŒØˆŒ ؈Œ Ü  Ó.ˆÔÜ×+Ñ+×9Ñ9¸%Ó@ˆÔ؈Œð!%ˆÕr$NcóÄ—|dvrytd„|jD««rJ‚|jd|«tjj |«|_||_y)z$setup core part compression to )NröNc3óHK—|]\}}|j«dk(–—Œy­w)ó compressionN)r6)Ú.0Únrís r"Ú z*bundle20.setcompression..©s èø€ÐL¹|±t°q¸!�q—w‘w“y NÕ2¹|ùs‚ "s Compression)ÚanyrÿrÜrrrrr)rEÚalgÚcompoptss r"Úsetcompressionzbundle20.setcompression¥sS€à �-Ñ Ø ÜÑL¸t¿|º|ÓLÔLÐLÐLØ � ‰ �n cÔ*Ü×+Ñ+×9Ñ9¸#Ó>ˆÔØ!ˆ�r$có,—t|j«S)z*total number of parts added to the bundler)r[rrDs r"Únbpartszbundle20.nbparts®s€ô�4—;‘;ÓÐr$cóì—|stjd«‚|ddtjtj «vrtjd|z«‚|j j||f«y)zadd a stream level parametersempty parameter namerrsnon letter first character: %sN)r rwrrÝÚstringÚ ascii_lettersrÿrI)rEÚnameÚvalues r"rÜzbundle20.addparam´sp€áÜ×(Ñ(Ð)@ÓAÐ AØ ��!ˆ9œH×,Ñ,Ü × Ñ ó ñ ô×(Ñ(Ø1°DÑ8óð ð � ‰ ×јT 5˜MÕ*r$cóŠ—|j�J‚t|j«|_|jj|«y)z_add a new part to the bundle2 container Parts contains the actual applicative payload.N)rÞr[rrI)rEr©s r"Úaddpartzbundle20.addpartÀs4€ð�w‰wˆÐˆÜ�d—k‘kÓ"ˆŒØ � ‰ ×ј4Õ r$cóF—t|g|¢­i|¤Ž}|j|«|S)aqcreate a new part and add it to the containers As the part is directly added to the containers. For now, this means that any failure to properly initialize the part after calling ``newpart`` should result in a failure of the whole bundling process. You can still fall back to manually create and add if you need better control.)Ú bundlepartr)rEÚtypeidÚargsr�r©s r"rÛzbundle20.newpartÈs)€ô˜&Ð2 4Ò2¨6Ñ2ˆØ � ‰ �TÔØˆ r$c#óÐK—|jjr”d|jzg}|jr'|j dt |j«z«|j dt |j «z«|jjdj|««t|jd|jz«|j–—|j«}t|jd|z«ttt |««–—|r|–—|jj|j«|j «D]}|–—Œy­w)Nsbundle2-output-bundle: "%s",s (%i params)s %i parts total r$sstart emission of %s streamsbundle parameter: %s)r r¯Ú _magicstringrÿrIr[rrr°r#Ú _paramchunkÚ_packÚ_fstreamparamsizerÚcompressstreamÚ _getcorechunkr)rEr²ÚparamÚchunks r"Ú getchunkszbundle20.getchunksÖsèø€Ø �7‰7× Ò Ø2°T×5FÑ5FÑFÐGˆCØ�|Š|Ø— ‘ ˜?¬S°·±Ó->Ñ>Ô?Ø �J‰JÐ+¬c°$·+±+Ó.>Ñ>Ô ?Ø �G‰G�M‰M˜#Ÿ(™( 3›-Ô (Ü�—‘Ð8¸4×;LÑ;LÑLÔMØ×ÑÒØ× Ñ Ó"ˆÜ�—‘Ð1°EÑ9Ô:ÜÔ%¤s¨5£zÓ2Ò2Ù ØŠKØ×%Ñ%×4Ñ4Ø × Ñ Ó  $§.¡.ö ˆEð‹Kñ ùs‚E$E&cóØ—g}|jD]I\}}tj|«}|�tj|«}d||fz}|j|«ŒKdj |«S)z1return a encoded version of all stream parametersrðó )rÿræròrIr°)rEÚblocksÚparrs r"r zbundle20._paramchunkésf€àˆØŸ,œ,‰JˆC�Ü—,‘,˜sÓ#ˆCØÐ ÜŸ ™  UÓ+�Ø # u Ñ-�Ø �M‰M˜#Õ ð 'ð �y‰y˜Ó Ð r$c#ó:K—t|jd«|jD]J}t|jd|jz«|j |j¬«D]}|–—ŒŒLt|jd«t t d«–—y­w)zUyield chunk for the core part of the bundle (all but headers and parameters)sstart of partssbundle part: "%s"©r s end of bundlerN)r#r rr¥r'r!Ú_fpartheadersize)rEr©r&s r"r$zbundle20._getcorechunkôszèø€ô �—‘Ð+Ô,Ø—K”KˆDÜ �T—W‘WÐ2°T·Y±YÑ>Ô ?ØŸ™¨4¯7©7˜Ö3�Ø“ ñ4ð ô �—‘Ð*Ô+ÜÔ$ aÓ(Ó(ùs‚BBcó¢—g}|jD]=}|jjd«sŒ|j|j ««Œ?|S)z¢return a list with a copy of all output parts in the bundle This is meant to be used during error handling to make sure we preserve server outputrÔ)rr¥Ú startswithrIr»)rErªr©s r"r¡zbundle20.salvageoutputsB€ð ˆØ—K”KˆDØ�y‰y×#Ñ# IÕ.Ø—‘ § ¡ £ Õ,ð ðˆr$©r0r5)r`rarbrcrrFrÚpropertyrrÜrrÛr'r r$r¡r0r$r"rýrý�sO„ñ0ð €Ló %ó"ðñ óð ó +ò!ò òò& !ò )ó r$rýcó"—eZdZdZd„Zd„Zd„Zy)Ú unpackermixinz6A mixin to extract bytes and struct data from a streamcó—||_yr5)Ú_fp)rEÚfps r"rFzunpackermixin.__init__s €Øˆ�r$cób—|jtj|««}t||«S)aunpack this struct format from the stream This method is meant for internal usage by the bundle2 protocol only. They directly manipulate the low level stream including bundle2 level instruction. Do not use it to implement higher-level logic or methods.)Ú _readexactÚstructÚcalcsizeÚ_unpack©rEÚformatrÖs r"r<zunpackermixin._unpacks(€ð�‰œvŸ™¨vÓ6Ó7ˆÜ�v˜tÓ$Ð$r$cóB—tj|j|«S)aread exactly bytes from the stream This method is meant for internal usage by the bundle2 protocol only. They directly manipulate the low level stream including bundle2 level instruction. Do not use it to implement higher-level logic or methods.)rÚ readexactlyr6)rEÚsizes r"r9zunpackermixin._readexacts€ô×&Ñ& t§x¡x°Ó6Ð6r$N)r`rarbrcrFr<r9r0r$r"r4r4 s„Ù@òò %ó7r$r4có\—|€tj|d«}|dd|dd}}|dk7r4|jd||fz«tjt d««‚t j|«}|€!tjt d«|z«‚|||«}t|d|z«|S) z7return a valid unbundler object for a given magicstringérésHGs6error: invalid magic: %r (version %r), should be 'HG' snot a Mercurial bundlesunknown bundle version %ssstart processing of %s stream) rr@rr ÚAbortrÚ formatmaprSr&)r r7Ú magicstringÚmagicÚversionÚunbundlerclassrŒs r"Ú getunbundlerrK(s»€àÐÜ!×-Ñ-¨b°!Ó4ˆ Ø   1Ð% {°1°QÐ'7ˆ7€EØ �‚~Ø �‰Ø FØ�gÐñ ô ô�k‰kœ!Ð5Ó6Ó7Ð7Ü—]‘] 7Ó+€NØÐÜ�k‰kœ!Ð8Ó9¸GÑCÓDÐDÙ˜r 2Ó&€IÜ ˆBÐ0°;Ñ>Ô?Ø Ðr$cóv‡—eZdZdZdZˆfd„Zejd„«Zd„Z d„Z d„Z d d„Z d „Z d „Zd „ZˆxZS) r‰z|interpret a bundle2 stream This class is fed with a binary stream and yields parts through its `iterparts` methods.rúcó�•—||_tjjd«|_d|_t t|�#|«y)z؈ؗ\‘\Ô"3Ó4°QÑ7ˆ Ø ˜Š>Ü×(Ñ(Ø1°JÑ>óð ñ Ø—_‘_ ZÓ0ˆFØ×+Ñ+¨FÓ3ˆF؈ r$có>—tj«}|jd«D]o}|jdd«}|D�cgc]}tj |«‘Œ}}t |«dkr|j d«|j|Ž|d||d<Œq|Scc}w)Ú r)rârrDNr)rÚsortdictrårærçr[rIÚ _processparam)rEÚ paramsblockr9rœÚis r"rUzunbundle20._processallparamsYs’€ä—‘“ˆØ×"Ñ" 4Ö(ˆAØ—‘˜˜aÓ ˆAÙ,-Ó.©A q”—‘ Õ"¨AˆAÐ.Ü�1‹v˜ŠzØ—‘˜”Ø ˆD× Ñ  Ñ "ؘQ™4ˆF�1�Q‘4ŠLð )ðˆ ùò /s¿Bcór—|s td«‚|ddtjtj«vrtd|z«‚ t |j «}||||«y#t$rF|ddj«rt|jd|z«Yytj|f¬«‚wxYw)a�process a parameter, applying its effect if needed Parameter starting with a lower case letter are advisory and will be ignored when unknown. Those starting with an upper case letter are mandatory and will this function will raise a KeyError when unknown. Note: no option are currently supported. Any input will be either ignored or failing. zempty parameter namerrznon letter first character: %ssignoring unknown parameter %s)r9N) r*rrÝrrÚb2streamparamsmapr6ÚKeyErrorÚislowerr&r r rÇ)rErrrÍs r"rZzunbundle20._processparames¹€ñÜÐ3Ó4Ð 4Ø ��!ˆ9œH×,Ñ,Ü × Ñ ó ñ ôÐ=ÀÑDÓEÐ Eð 'Ü'¨¯ © « Ñ5ˆGñ �D˜$ Õ &øô ò FØ�A�aˆy× Ñ Ô"ܘŸ™Ð!AÀDÑ!HÖIä×5Ñ5¸d¸WÔEÐEð  FúsÁA'Á'5B6ÂB6c#óˆK—|j–—dt|«vsJ‚|jt«d}|dkrt j d|z«‚|r¥|j |«}|j|«g}|jd«D]<}|jdd«\}}|j«dk7sŒ,|j|«Œ>dj|«}ttt|««–—|–—ntt|«–—|jj|j «|_d}|dkr‚t"t$k(sJ‚|jt"«d}tt"|«–—|rd}n|dz }ŒI|t&k(rŒS|dkrt j d «‚|j |«–—|dkrŒ�y y ­w) aWutility to transfer a bundle2 as binary This is made necessary by the fact the 'getbundle' command over 'ssh' have no way to know then the reply end, relying on the bundle to be interpreted to know its end. This is terrible and we are sorry, but we needed to move forward to get general delta enabled. r9rrSr)rârr rDsnegative chunk size: %iN)rÚvarsr<r"r rTr9rUrår6rIr°r!r[rÚdecompressorreaderr6r.Ú _fpayloadsizeÚ flaginterrupt) rErVr9Ú outparamsrœÚkríÚ emptycountrAs r"Ú_forwardchunkszunbundle20._forwardchunkss¤èø€ð×ÑÒØœt D›zÑ)Ð)Ð)Ø—\‘\Ô"3Ó4°QÑ7ˆ Ø ˜Š>Ü×(Ñ(Ø1°JÑ>óð ñ Ø—_‘_ ZÓ0ˆFØ × "Ñ " 6Ô *ðˆIØ—\‘\ $Ö'�Ø—w‘w˜t QÓ'‘��1Ø—7‘7“9 Ó.Ø×$Ñ$ QÕ'ð(🠙  )Ó,ˆIÜÔ)¬3¨y«>Ó:Ò :Ø‹OäÔ)¨:Ó6Ò 6à×#Ñ#×6Ñ6°t·x±xÓ@ˆŒØˆ ؘ1Šnä#¤}Ò4Ð 4Ð4Ø—<‘<Ô 0Ó1°!Ñ4ˆDÜÔ(¨$Ó/Ò /ÙØ‘ à˜a‘� ØØ”}Ò$ØØ˜’Ü×,Ñ,Ð-GÓHÐHØ—/‘/ $Ó'Ò 'ð˜1�nùs‚B5GÂ8DGÇGc#óšK—|rtnt}|j|jj |j «|_t |jd«|j«}|�E||j||j «}|–—|j«|j«}|�ŒEt |jd«y­w)z'yield all parts contained in the streams!start extraction of bundle2 partsNsend of bundle2 stream) ÚseekableunbundlepartÚ unbundlepartr9rrcr6r&r Ú_readpartheaderrš)rEÚseekableÚclsÚ headerblockr©s r"r™zunbundle20.iterparts°s£èø€á&.Õ"´Lˆà � Š à×#Ñ#×6Ñ6°t·x±xÓ@ˆŒÜ�—‘Ð=Ô>Ø×*Ñ*Ó,ˆ ØÐ%Ù�t—w‘w  ¨T¯X©XÓ6ˆDØŠJð �L‰LŒNà×.Ñ.Ó0ˆKðÑ%ô �—‘Ð1Õ2ùs ‚B1C Â4C cóÆ—|jt«d}|dkrtjd|z«‚t |j d|z«|r|j |«Sy)úQreads a part header size and return the bytes blob returns None if emptyrónegative part header size: %ispart header size: %iN©r<r.r rTr&r r9©rEÚ headersizes r"rmzunbundle20._readpartheaderÃse€ð—\‘\Ô"2Ó3°AÑ6ˆ Ø ˜Š>Ü×(Ñ(Ø0°:Ñ=óð ô �—‘Ð0°:Ñ=Ô>Ù Ø—?‘? :Ó.Ð .Ør$có2—|j|jSr5)r9rNrDs r"Ú compressedzunbundle20.compressedÑs€Ø � Š Ø×ÑÐr$cóx—tj|jd«r|jj«Sy)zclose underlying fileÚcloseN)rÚ safehasattrr6rzrDs r"rzzunbundle20.closeÕs,€ä × Ñ ˜DŸH™H gÔ .Ø—8‘8—>‘>Ó#Ð #ð /r$)F)r`rarbrcrrFrÚ propertycacher9rUrZrir™rmrxrzÚ __classcell__©rQs@r"r‰r‰;sRø„ñð €Lô-ð ×Ññ óð ò ò'ò4/(ób3ò& ò ö$r$r‰s20có‡—ˆfd„}|S)z/register a handler for a stream level parametercó.•—‰tvsJ‚|t‰<|Sr5)rFr^)r:rs €r"Ú decoratorz'b2streamparamhandler..decoratorãs!ø€Øœ9Ñ$Ð$Ð$Ø"&Ô˜$ÑØˆ r$r0)rr�s` r"Úb2streamparamhandlerr‚àsø€ôð Ðr$r cóÊ—|tjjvrtj|f|f¬«‚tjj |«|_|�d|_yy)z)rQrar`rÞr¥rË)rEros r"Ú__repr__zbundlepart.__repr__ sR€ØŸ™×2Ó2°D·N±N×4KÒ4KÐLˆØCØ Ü ˆt‹HØ �G‰GØ �I‰IØ �N‰Nð G ñ ð r$cóÔ—tj|jd«rJ‚|j|j|j |j |j|j«S)zšreturn a copy of the part The new part have the very same content but no partid assigned yet. Parts with generated data cannot be copied.Únext) rr{rÖrQr¥r‹rŒrŠrËrDs r"r»zbundlepart.copy*sV€ô ×#Ñ# D§I¡I¨vÔ6Ð6Ð6Ø�~‰~Ø �I‰IØ × !Ñ !Ø × Ñ Ø �J‰JØ �N‰Nó  ð r$có—|jSr5)rŠrDs r"rÖzbundlepart.data9s €à�z‰zÐr$cóT—|j�tjd«‚||_y)Nópart is being generated)r�r ÚReadOnlyPartErrorrŠ)rErÖs r"rÖzbundlepart.data=s%€à �?‰?Ð &Ü×)Ñ)Ð*DÓEÐ E؈� r$có,—t|j«Sr5)rRr‹rDs r"r�zbundlepart.mandatoryparamsCs€ô�T×*Ñ*Ó+Ð+r$có,—t|j«Sr5)rRrŒrDs r"r‘zbundlepart.advisoryparamsHs€ô�T×)Ñ)Ó*Ð*r$có—|j�tjd«‚||jvrt d|z«‚|jj |«|j }|r |j}|j||f«y)zîadd a parameter to the part If 'mandatory' is set to True, the remote handler must claim support for this parameter or the unbundling will be aborted. The 'name' and 'value' cannot exceed 255 bytes each. Nr›r‰) r�r rœrŽr*rKrŒr‹rI)rErrrËr9s r"rÜzbundlepart.addparamMs|€ð �?‰?Ð &Ü×)Ñ)Ð*DÓEÐ EØ �4×#Ñ#Ñ #ÜÐ5¸Ñ<Ó=Ð =Ø ×Ñ×јTÔ"Ø×%Ñ%ˆÙ Ø×*Ñ*ˆFØ� ‰ �t˜U�mÕ$r$c #óÎ K—|j�tjd«‚d|_|j�rqd|jzg}|j s|j d«t|j«}t|j«}|s|rN|j d«|r|j d|z«|r|j d|z«|j d«|js|j d «nytj|jd «s tj|jd «r|j d «n'|j d t|j«z«|j d«|jdj|««|j r|jj«}n|jj!«}t#|dt%j&|j(«|fz«t+t,t|««|t+t.|j(«g}|j}|j}|j t+t0t|«t|«««g} |D]9\} } | j t| ««| j t| ««Œ;|D]9\} } | j t| ««| j t| ««Œ;t+t3t| «dz«g| ¢­Ž} |j | «|D]'\} } |j | «|j | «Œ)|D]'\} } |j | «|j | «Œ) dj|«} t#|dt| «z«t+t6t| ««–—| –— |j9«D]9}t#|dt|«z«t+t:t|««–—|–—Œ; t#|d«t+t:d«–—d|_y#t4$rt5d|z«‚wxYw#t<$r|jd«‚t>$rÉ}tAjB|«}|jd|z«tEjF«d}d|z}tIdd|fgd¬«}d|_t+t:d«–—|jK|¬«D]}|–—Œt#|d«t+t:d«–—t%jL||«Yd}~�Œ(d}~wwxYw­w) Nspart can only be consumed onceFsbundle2-output-part: "%s"rÂrÃrÄrÅrÆs empty payloadr˜s__next__s streamed payloads %i bytes payloadr®r$s part %s: "%s"rDz8Found a non-bytes trying to build bundle part header: %rsheader chunk size: %iópayload chunk size: %isbundle2-generatorexit s5bundle2-input-stream-interrupt: encoding exception %ssunexpected error: %só error:abortómessagerØréÿÿÿÿr-sclosing payload chunkT)'r�r rwr¯r¥rËrIr[r�r‘rÖrr{rr°Úupperr6r#rrÝrÞr!Ú_fparttypesizeÚ_fpartidÚ_fpartparamcountr2Ú TypeErrorr.Ú_payloadchunksrdÚ GeneratorExitÚ BaseExceptionrÚ forcebytestrÚsysÚexc_inforr'Ú raisewithtb)rEr r²rÏrÐr,ÚheaderÚmanparÚadvparÚparsizesrërÚ paramsizesÚ headerchunkr&r¦Úbexcr§Ú interparts r"r'zbundlepart.getchunks`s|èø€Ø �?‰?Ð &Ü×(Ñ(Ð)JÓKÐ K؈Œà �<‹<Ø/°$·)±)Ñ;Ð<ˆCØ—>’>Ø— ‘ ˜>Ô*Ü�t×+Ñ+Ó,ˆDÜ�t×*Ñ*Ó+ˆDÙ‘tØ— ‘ ˜<Ô(ÙØ—J‘JÐ/°$Ñ6Ô7ÙØ—J‘J˜°Ñ5Ô6Ø— ‘ ˜4Ô Ø—9’9Ø— ‘ Ð,Õ-Ü×!Ñ! $§)¡)¨VÔ4¼×8HÑ8HØ— ‘ ˜;ô9ð— ‘ Ð/Õ0à— ‘ Ð/´#°d·i±i³.Ñ@ÔAØ �J‰J�uÔ Ø �H‰H�S—X‘X˜c“]Ô #ð �>Š>Ø—y‘y—‘Ó(‰Hà—y‘y—‘Ó(ˆHÜ�Ð%¬×)9Ñ)9¸$¿'¹'Ó)BÀHÐ(MÑMÔNô ”.¤# h£-Ó 0Ø Ü ”(˜DŸG™GÓ $ð ˆð×%Ñ%ˆØ×$Ñ$ˆØ� ‰ ”eÔ,¬c°&«k¼3¸v»;ÓGÔHàˆÛ ‰JˆC�Ø �O‰OœC ›HÔ %Ø �O‰OœC ›JÕ 'ð!ó!‰JˆC�Ø �O‰OœC ›HÔ %Ø �O‰OœC ›JÕ 'ð!ôÔ/´°H³ ÀÑ0BÓCÐOÀhÒOˆ Ø� ‰ �jÔ!ã ‰JˆC�Ø �M‰M˜#Ô Ø �M‰M˜%Õ ð!ó!‰JˆC�Ø �M‰M˜#Ô Ø �M‰M˜%Õ ð!ð ØŸ(™( 6Ó*ˆKô �Ð-´°KÓ0@Ñ@ÔAÜÔ$¤c¨+Ó&6Ó7Ò7ØÒð *Ø×,Ñ,Ö.�ܘÐ6¼¸U»ÑCÔDÜœM¬3¨u«:Ó6Ò6Ø“ ñ/ô< �Ð-Ô.Ü”M 1Ó%Ò%؈�øôUò Üð/Ø17ñ8óð ð ûôò ð �H‰HÐ/Ô 0Ø Üò *Ü×*Ñ*¨3Ó/ˆDà �H‰HØHÈ4ÑOô ô—‘“ Ñ"ˆBØ)¨DÑ0ˆCÜ"Ø *¨cÐ!2Ð 3¸uôˆIðˆIŒLÜœ  rÓ*Ò *Ø"×,Ñ,°Ð,Ö3�Ø“ ð4ä �RÐ1Ô 2äœ  qÓ)Ò )Ü × Ñ   b× )Ò )ûð% *üsJ‚NU%ÎQÎ07U%Ï(A Q6Ð4'U%ÑQ3Ñ3U%Ñ6#U"ÒB>UÕU%ÕU"Õ"U%c#ó|K—tj|jd«s tj|jd«rTtj|j«}|j t «}|r|–—|j t «}|rŒyyt |j«r|j–—yy­w)zmyield chunks of a the part payload Exists to handle the different methods to provide data to a part.r˜Ú__next__N)rr{rÖÚ chunkbufferÚreadÚpreferedchunksizer[)rEÚbuffr&s r"rªzbundlepart._payloadchunksÎsŽèø€ô × Ñ ˜DŸI™I vÔ .´$×2BÑ2BØ �I‰I�zô3 ô×#Ñ# D§I¡IÓ.ˆDØ—I‘IÔ/Ó0ˆEÙØ’ ØŸ ™ Ô"3Ó4�ôô�—‘Œ^Ø—)‘)‹Oðùs ‚BB<Â'B<N)r0r0r$T)r$T)r`rarbrcrFr–r»r2rÖÚsetterr�r‘rÜr'rªr0r$r"rrõs‰„ñ ð$ØØ Øó #ò6 ò  ðñóðð ‡[�[ñóðð ñ,óð,ðñ+óð+ó%ò&ló\r$rr¤có.‡—eZdZdZˆfd„Zd„Zd„ZˆxZS)Úinterrupthandlerzþread one part and process it with restricted capability This allows to transmit exception raised on the producer size during part iteration while the consumer is reading a part. Part processed in this manner only have access to a ui object,có:•—tt|� |«||_yr5)rOrÁrFr rPs €r"rFzinterrupthandler.__init__ësø€Ü Ô Ñ.¨rÔ2؈�r$cóÆ—|jt«d}|dkrtjd|z«‚t |j d|z«|r|j |«Sy)rrrrsspart header size: %i Nrtrus r"rmz interrupthandler._readpartheaderïse€ð—\‘\Ô"2Ó3°AÑ6ˆ Ø ˜Š>Ü×(Ñ(Ø0°:Ñ=óð ô �—‘Ð2°ZÑ?Ô@Ù Ø—?‘? :Ó.Ð .Ør$cóü—|jjd«t|jd«|j«}|€t|jd«yt |j||j «}t |j«}d} t||« |s|j« |jjd«y#ttf$rd}‚wxYw#|s|j«wwxYw)Ns<bundle2-input-stream-interrupt: opening out of band context s0bundle2 stream interruption, looking for a part.s"no part found during interruption.FTs<bundle2-input-stream-interrupt: closing out of band context ) r rr&rmrlr6Úinterruptoperationr´Ú SystemExitÚKeyboardInterruptrš)rErpr©rŽÚ hardaborts r"Ú__call__zinterrupthandler.__call__ýsØ€à �‰� ‰ Ø Lô ô �—‘ÐLÔMØ×*Ñ*Ó,ˆ Ø Ð Ü �D—G‘GÐBÔ CØ Ü˜DŸG™G [°$·(±(Ó;ˆÜ  §¡Ó (ˆØˆ ð Ü ˜˜TÕ "ñ Ø— ‘ •Ø �‰� ‰ Ø Lõ øô Ô-Ð.ò ؈IØ ð ûñØ— ‘ •ðús CÃC#Ã#C&Ã&C;)r`rarbrcrFrmrÉr}r~s@r"rÁrÁãsø„ñFôò ö r$rÁcó,—eZdZdZd„Zed„«Zd„Zy)rÅzpA limited operation to be use by part handler during interruption It only have access to an ui object. có.—||_d|_d|_y)NF)r rkrl)rEr s r"rFzinterruptoperation.__init__s€ØˆŒØˆŒ Ø"ˆÕr$có,—tjd«‚©Ns'no repo access from stream interruption)r rwrDs r"rhzinterruptoperation.repo"s€ä×$Ñ$Ð%OÓPÐPr$có—td«‚rÍr|rDs r"ruz!interruptoperation.gettransaction&s€Ü$Ð%OÓPÐPr$N)r`rarbrcrFr2rhrur0r$r"rÅrÅs(„ñò #ð ñQóðQóQr$rÅc#óâK—|jdd«}|j}tjt«}|j }|j }tj}|j}||||««d} t|d| z«| rÝ| dk\rG|| «} t| «| kr,tjtd«t| «| fz«‚| –—n3| tk(rt!||««ntj"d| z«‚||«} t| «|kr,tjtd«t| «| fz«‚|| «d} |r |d| z«| rŒÜyy­w) z¡Reads bundle2 part payload data into chunks. Part payload data consists of framed chunks. This function takes a file handle and emits those chunks. rrrr¡s6stream ended unexpectedly (got %d bytes, expected %d)snegative payload chunk size: %ss&bundle2-input: payload chunk size: %i N)rrr:ÚStructrdrAÚunpackrr@r¼r&r[r rErrerÁrT) r ÚfhÚdologrÚ headerstructrvrÑr@r¼Ú chunksizeÚss r"Údecodepayloadchunksr×*syèø€ð �M‰M˜(Ð$4Ó 5€EØ �H‰H€Eä—=‘=¤Ó/€LØ×"Ñ"€JØ × Ñ €Fä×)Ñ)€KØ �7‰7€Dá‘{ 2 zÓ2Ó3°AÑ6€IÜ ˆBÐ)¨IÑ5Ô6ñ Ø ˜Š>Ù�Y“ˆAÜ�1‹v˜ Ò!Ü—k‘kÜð8óô˜1“v˜yÐ)ñ *óðð‹GØ œ-Ò 'ð %Ô ˜R Ó $Õ &ä×(Ñ(Ø2°YÑ>óð ñ �Ó ˆÜ ˆq‹6�JÒ Ü—+‘+ÜÐKÓLÜ�q“6˜9Ð%ñ&óð ñ ˜1“I˜a‘Lˆ ñ Ù Ð<¸yÑHÔ IôC ùs ‚E*E/Å-E/cóN‡—eZdZdZˆfd„Zd„Zd„Zd„Zd„Zd„Z d„Z d d „Z ˆxZ S) rlz a bundle part read from a bundlecóh•—tt|� |«tj|d«xrtj|d«|_||_||_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_|j#«d|_d|_y)NÚseekÚtellrFr0)rOrlrFrr{Ú _seekabler Ú _headerdataÚ _headeroffsetÚ _initializedÚconsumedrÞr¥r�r‘r9rÈÚ _readheaderÚ _mandatoryÚ_pos©rEr r±r7rQs €r"rFzunbundlepart.__init__es¬ø€Ü Œl˜DÑ*¨2Ô.Ü×)Ñ)¨"¨fÓ5ò ¼$×:JÑ:JØ �ó; ˆŒðˆŒà!ˆÔØˆÔØ!ˆÔ؈Œ àˆŒØˆŒ Ø#ˆÔØ"ˆÔ؈Œ ØˆÔØ ×ÑÔØˆŒØˆ� r$cóV—|j}|j|||z}||z|_|S)z+return the next byte from the header)rÞrÝ)rErAÚoffsetrÖs r"Ú _fromheaderzunbundlepart._fromheader{s4€à×#Ñ#ˆØ×Ñ ¨&°4©-Ð9ˆØ# d™]ˆÔ؈ r$cób—|jtj|««}t||«S)zaread given format from header This automatically compute the size of the format to read.)rçr:r;r<r=s r"Ú _unpackheaderzunbundlepart._unpackheader‚s*€ð×Ѥ§¡°Ó 7Ó8ˆÜ�v˜tÓ$Ð$r$có—t|«|_t|«|_tj|j«|_|j j |j«td„|D««|_y)z7internal function to setup all logic related parametersc3ó&K—|] }|d–—Œ y­w)rNr0)r rœs r"r z+unbundlepart._initparams..‘sèø€Ð&E±_° q¨¥t±_ùó‚N) rRr�r‘rrYr9rsr8rÈ)rEr�r‘s r"Ú _initparamszunbundlepart._initparams‰s_€ô % _Ó5ˆÔÜ# NÓ3ˆÔä—m‘m D×$8Ñ$8Ó9ˆŒ Ø � ‰ ×ј4×.Ñ.Ô/Ü&Ñ&E±_Ó&EÓEˆÕr$c óT—|jt«d}|j|«|_t |j d|jz«|jt «d|_t |j dtj|j«z«|j|jj«k7|_ |jj«|_|jt«\}}t |j d||zz«t||z«}|j|«}tt|ddd…|ddd…««}|d|}||d}g}|D]6\} } |j!|j| «|j| «f«Œ8g} |D]6\} } | j!|j| «|j| «f«Œ8|j#|| «t%j&|j)««|_d|_y) z$read the header and setup the objectrspart type: "%s"s part id: "%s"spart parameters: %iNrDrT)rér¦rçr¥r&r r§rÞrrÝr6rËr¨r2rÉÚziprIrírr»rªÚ_payloadstreamrß) rEÚtypesizeÚmancountÚadvcountÚ fparamsizesrµÚmansizesÚadvsizesÚ manparamsrërÚ advparamss r"rázunbundlepart._readheader“sà€à×%Ñ%¤nÓ5°aÑ8ˆØ×$Ñ$ XÓ.ˆŒ Ü�—‘Ð+¨d¯i©iÑ7Ô8Ø×$Ñ$¤XÓ.¨qÑ1ˆŒÜ�—‘Ð)¬H×,<Ñ,<¸T¿W¹WÓ,EÑEÔFàŸ™ d§i¡i§o¡oÓ&7Ñ7ˆŒØ—I‘I—O‘OÓ%ˆŒ ð"×/Ñ/Ô0@ÓAш�(Ü�—‘Ð/°8¸hÑ3FÑGÔHä*¨8°hÑ+>Ó?ˆ Ø×'Ñ'¨ Ó4ˆ äœ#˜j©¨1¨™o¨z¸!¸$¸Q¸$Ñ/?Ó@ÓAˆ à˜i˜xÐ(ˆØ˜h˜iÐ(ˆàˆ Û"‰JˆC�Ø × Ñ ˜d×.Ñ.¨sÓ3°T×5EÑ5EÀeÓ5LÐMÕ Nð#àˆ Û"‰JˆC�Ø × Ñ ˜d×.Ñ.¨sÓ3°T×5EÑ5EÀeÓ5LÐMÕ Nð#à ×ј IÔ.ä"×.Ñ.¨t×/BÑ/BÓ/DÓEˆÔà ˆÕr$cóB—t|j|j«S)z+Generator of decoded chunks in the payload.)r×r r6rDs r"rªzunbundlepart._payloadchunks¶s€ä" 4§7¡7¨D¯H©HÓ5Ð5r$cóª—|jry|jd«}|r3|xjt|«z c_|jd«}|rŒ2yy)zµRead the part payload until completion. By consuming the part data, the underlying stream read offset will be advanced to the next part (or end of stream). Nr)ràr¼rãr[)rEr&s r"ršzunbundlepart.consumeºsD€ð �=Š=Ø à— ‘ ˜%Ó ˆÙØ �IŠIœ˜U›Ñ #�IØ—I‘I˜eÓ$ˆEôr$có˜—|js|j«|€|jj«}n|jj|«}|xjt |«z c_|�t |«|krG|j s4|jr(|jjd|jz«d|_|S)zread payload datas*bundle2-input-part: total payload size %i T) rßrárðr¼rãr[ràr r)rErArÖs r"r¼zunbundlepart.readÈsŸ€à× Ò Ø × Ñ Ô Ø ˆ<Ø×&Ñ&×+Ñ+Ó-‰Dà×&Ñ&×+Ñ+¨DÓ1ˆDØ � Š ”S˜“YÑ� Ø ˆ<œ3˜t›9 tÒ+Ø—=’= T§Y¢YØ—‘— ‘ ØBÀTÇYÁYÑNôð!ˆDŒM؈ r$r5) r`rarbrcrFrçrérírárªršr¼r}r~s@r"rlrlbs0ø„Ù*ôò,ò%òFò!!òF6ò %÷r$rlcób‡—eZdZdZˆfd„Zd d„Zd„Zd„Zejfd„Z d d„Z d„Z ˆxZ S) rkaÉA bundle2 part in a bundle that is seekable. Regular ``unbundlepart`` instances can only be read once. This class extends ``unbundlepart`` to enable bi-directional seeking within the part. Bundle2 part data consists of framed chunks. Offsets when seeking refer to the decoded data, not the offsets in the underlying bundle2 stream. To facilitate quickly seeking within the decoded data, instances of this class maintain a mapping between offsets in the underlying stream and the decoded payload. This mapping will consume memory in proportion to the number of chunks within the payload (which almost certainly increases in proportion with the size of the part). có>•—g|_tt|�|||«yr5)Ú _chunkindexrOrkrFräs €r"rFzseekableunbundlepart.__init__ìsø€àˆÔä Ô" DÑ2°2°v¸rÕBr$c#óTK—t|j«dk(r8|dk(sJd«‚|jjd|j«f«nC|t|j«ks Jd|z«‚|j |j|d«|j|d}t |j |j«D]\}|dz }|t|«z }|t|j«k(r+|jj||j«f«|–—Œ^y­w)z/seek to specified chunk and start yielding datarsMust start with chunk 0sUnknown chunk %drN)r[rþrIÚ_tellfpÚ_seekfpr×r r6)rEÚchunknumÚposr&s r"rªz#seekableunbundlepart._payloadchunksòs èø€ä ˆt×ÑÓ  AÒ %ؘq’=Ð <Ð"<Ó <�=Ø × Ñ × #Ñ # Q¨¯ © «Ð$7Õ 8àœc $×"2Ñ"2Ó3Ò3ð Ø# hÑ.ó Ð3ð �L‰L˜×)Ñ)¨(Ñ3°AÑ6Ô 7à×јxÑ(¨Ñ+ˆä(¨¯©°$·(±(Ö;ˆEØ ˜‰MˆHØ ”3�u“:Ñ ˆCØœ3˜t×/Ñ/Ó0Ò0Ø× Ñ ×'Ñ'¨¨d¯l©l«nÐ(=Ô>à‹Kñ <ùs‚D&D(có¶—t|j«D]7\}\}}||k(r|dfcS||kDsŒ|dz ||j|dz dz fcStd«‚)z>for a given payload position, return a chunk number and offsetrrs Unknown chunk)r˜rþr*)rErr&ÚpposÚfposs r"Ú _findchunkzseekableunbundlepart._findchunksm€ä#,¨T×-=Ñ-=Ö#>Ñ ˆE‘<�D˜$Ø�sŠ{ؘa�x’ؘ“ؘq‘y #¨×(8Ñ(8¸À¹Ñ(CÀAÑ(FÑ"FÐFÒFð $?ô Ð)Ó*Ð*r$có—|jSr5)rãrDs r"rÛzseekableunbundlepart.tells €Ø�y‰yÐr$cób—|tjk(r|}nŽ|tjk(r|j|z}nk|tjk(rI|j s'|j d«}|r|j d«}|rŒ|jdd|z }ntd|fz«‚||jddkDr3|j s'|j d«}|r|j d«}|rŒd|cxkr|jddkstd«‚td«‚|j|k7r‚|j|«\}}tj|j|««|_ |j |«}t|«|k7rtj t#d««‚||_yy)Nrr¤rsUnknown whence value: %riœsOffset out of ranges Seek failed )ÚosÚSEEK_SETÚSEEK_CURrãÚSEEK_ENDràr¼rþr*rrr»rªrðr[r rEr)rEræÚwhenceÚnewposr&ÚinternaloffsetÚadjusts r"rÚzseekableunbundlepart.seeks‡€Ø ”R—[‘[Ò Ø‰FØ ”r—{‘{Ò "Ø—Y‘Y Ñ'‰FØ ”r—{‘{Ò "Ø—=’=àŸ ™  %Ó(�ÙØ ŸI™I eÓ,�Eòà×%Ñ% bÑ)¨!Ñ,¨vÑ5‰FäÐ8¸F¸9ÑDÓEÐ Eà �D×$Ñ$ RÑ(¨Ñ+Ò +°D·M²Mà—I‘I˜eÓ$ˆEÙØŸ ™  %Ó(�òð�FÔ5˜d×.Ñ.¨rÑ2°1Ñ5Ò5ÜÐ3Ó4Ð 4ð6ÜÐ3Ó4Ð 4à �9‰9˜Ò Ø$(§O¡O°FÓ$;Ñ !ˆE�>Ü"&×"2Ñ"2°4×3FÑ3FÀuÓ3MÓ"NˆDÔ Ø—Y‘Y˜~Ó.ˆFÜ�6‹{˜nÒ,Ü—k‘k¤!Ð$4Ó"5Ó6Ð6؈D�Ið r$cóz—|jr|jj||«Stt d««‚)amove the underlying file pointer This method is meant for internal usage by the bundle2 protocol only. They directly manipulate the low level stream including bundle2 level instruction. Do not use it to implement higher-level logic or methods.sFile pointer is not seekable)rÜr6rÚÚNotImplementedErrorr)rErærs r"rzseekableunbundlepart._seekfp3s1€ð �>Š>Ø—8‘8—=‘= ¨Ó0Ð 0ä%¤aÐ(GÓ&HÓIÐ Ir$cóÊ—|jr |jj«Sy#t$r0}|jtj k(rd|_n‚Yd}~yd}~wwxYw)a,return the file offset, or None if file is not seekable This method is meant for internal usage by the bundle2 protocol only. They directly manipulate the low level stream including bundle2 level instruction. Do not use it to implement higher-level logic or methods.FN)rÜr6rÛÚIOErrorÚerrnoÚESPIPE)rEÚes r"rzseekableunbundlepart._tellfp@s[€ð �>Š>ð Ø—x‘x—}‘}“Ð&ð øô ò Ø—7‘7œeŸl™lÒ*Ø%*�D•Nàó#ðûð  úsŽ)© A"²&AÁA")r)r`rarbrcrFrªrrÛr r rÚrrr}r~s@r"rkrkÚs7ø„ñô"Có ò*+òð#%§+¡+óó@ Jör$rk)sabortsunsupportedcontents pushracedópushkey)shttpshttps)sheads)óv2) rúó bookmarksserrorólistkeysródigestsóremote-changegroupó hgtagsfnodesóphasesóstreamcó—|dvrtjd«‚tj«}t t t j|«««|d<tj|tj«r%t d„tjD««}||d<|rd|d<|jjdd «}|d k(rd |d <d |jjdd«vr|jd «|dk(rO|jj!ddd¬«}|jj!dd«}|r|s|jd«|jj!dd«rd|vr |dxxdz cc<|S)a_return the bundle2 capabilities for a given repo Exists to allow extensions (like evolution) to mutate the capabilities. The returned value is used for servers advertising their capabilities as well as clients advertising their capabilities to servers as part of bundle2 requests. The ``role`` argument specifies which is which. )óclientóservers&role argument must be client or serverr¸c3ó&K—|] }d|z–—Œ y­w)sV%iNr0)r rís r"r zgetrepocaps..tsèø€ÐEÑ4D¨q ¨¥ Ñ4Dùrìó obsmarkersr0spushbackr$sconcurrent-push-modes check-related)srelateds checkheadsr rslegacy.exchanges uncompressedT)Ú untrustedsbundle2.streamr!ó experimentals stream-v3)óv3-exp)r rwr¢r»rRrñrÚsupportedincomingversionsr Ú isenabledÚ exchangeoptÚformatsr ÚconfigÚ configlistÚpopr)rhÚ allowpushbackÚroleréÚsupportedformatÚcpmodeÚstreamsupportedÚfeaturesupporteds r"Ú getrepocapsr7csk€ð Ð)Ñ)Ü×$Ñ$Ð%NÓOÐOä × Ñ Ó €DÜ ÜŒ{×4Ñ4°TÓ:Ó;ó€DˆÑô×ј$¤× 4Ñ 4Ô5ÜÑE´H×4DÒ4DÓEÓEˆØ-ˆˆ]ÑÙØˆˆ[ÑØ �W‰W�^‰^˜IÐ'>Ó ?€FØ Ð!Ò!Ø+ˆˆ]ÑØ�D—G‘G×&Ñ& xÐ1CÓDÑDØ �‰�Ôð ˆyÒØŸ'™'×,Ñ,Ø �°$ð-ó ˆð Ÿ7™7×-Ñ-¨iÐ9JÓKÐáÑ&6Ø �H‰H�YÔ ð ‡w�w×ј/¨<Ô8Ø ˜Ñ Ø �‹O˜|Ñ +‹Oð €Kr$có”—|jd«}|s|dk7riStj|jd««}t|«S)z0return the bundle capabilities of a peer as dictr€r$)Úcapablerærçrî)riÚrawÚcapsblobs r"Ú bundle2capsr<”s@€à �.‰.˜Ó $€CÙ �3˜#’:؈ Ü�~‰~˜fŸn™n¨ZÓ8Ó9€HÜ �hÓ Ðr$cóŒ—|jdd«}|D�cgc]"}|jd«sŒt|dd«‘Œ$c}Scc}w)zIextract the list of supported obsmarkers versions from a bundle2caps dictr&r0óVrN)rSr0Úint)réÚobscapsÚcs r"ÚobsmarkersversionrB�s?€à�h‰h�} bÓ)€GÙ 'Ó >¡˜1¨1¯<©<¸Õ+=ŒC��!�"��J Ñ >Ð>ùÒ >s —A®Ac óÊ—|jd«r*tj||d|«} t|| ||||| ¬«S|jd«st j d|z«‚|j d|j«} | rC| sAt|j d|j««} d}|| z}t j |«‚i}|jdd «rd |d <|jd «rd g|d<n|jd«rdg|d<t||«}|j|| «t||||||«|j«}tj||||¬«S)Nrøó01)ÚvfsÚ compressionrrúsunknown bundle type: %ss%ln and _internal()z3backup bundle would contains %d internal changesetsó obsolescenceF)sV1r&óstreamv2rr!ó streamv3-expr)©rE)r0rÚmakechangegroupÚ writebundler rwÚrevsÚ ancestorsofr[ÚmissingrSrýrÚ_addpartsfromoptsr'Ú writechunks)r rhrpÚfilenameÚ bundletypeÚoutgoingÚoptsrErFrÚallow_internalr¾Úbundled_internalr”r²réÚbundleÚ chunkiters r"ÚwritenewbundlerZ£si€ð×јWÔ%Ü × (Ñ (¨¨x¸ÀÓ GˆÜØ Ø Ø Ø ØØ#Øô ð ð× "Ñ " 7Ô +Ü×$Ñ$Ð%?À*Ñ%LÓMÐMð—y‘yÐ!7¸×9MÑ9MÓNÐÙ¡Ü�D—I‘IÐ4°h×6FÑ6FÓGÓHˆØCˆØ ˆu‰ ˆÜ×$Ñ$ SÓ)Ð)à €DØ ‡x�x� Ô'Ø&ˆˆ]ÑØ ‡x�x� ÔØ ˜'ˆˆYŠØ �‰�/Ô "Ø$˜+ˆˆY‰Ü �b˜$Ó €FØ ×ј+ xÔ0Ü�b˜$ ¨°¸$Ô?Ø× Ñ Ó"€Iä × "Ñ " 2 y°(ÀÔ DÐDr$có2—|jdd«�r(|jd«}|€tj|«}tj||||«}|j d|j «¬«}|j d|j«d|jvr$|j dd|jdzd ¬ «|jd «rhtj} |jD]} t| || j««} Œ!| tjkDr|j d d| zd ¬ «tj|j vrj d d«|jdd «rt#||d¬«|jdd «rt#||d¬«|jdd«r t%|||«|jdd«r t'|||«|jdd «rC|j(j+|j,«} t/|| |jdd«¬ «|jd d «rItj0||j,«} tj2| «} |j d| ¬«yy)Nr¸Ts cg.version©rÖóversionóclcountó nbchangesó%dFrØr ó targetphaseó exp-sidedatarrH)ÚstreamrIstagsfnodescachesrevbranchcacherGsobsolescence-mandatoryó phase-heads)rSrÚ safeversionrKrÛr'rÜrIÚextrasr ÚdraftrNÚmaxÚphaserÚREPO_FEATURE_SIDE_DATAÚfeaturesÚaddpartbundlestream2ÚaddparttagsfnodescacheÚaddpartrevbranchcacheÚobsstoreÚrelevantmarkersrOÚbuildobsmarkerspartÚsubsetphaseheadsÚ binaryencode)r rhÚbundlerrprTrUÚ cgversionr¾r©Ú target_phaseÚheadÚ obsmarkersÚ headsbyphaseÚ phasedatas r"rPrPÕs1€ð ‡x�x� Õ%Ø—H‘H˜]Ó+ˆ Ø Ð Ü#×/Ñ/°Ó5ˆIÜ × (Ñ (¨¨x¸ÀFÓ KˆØ�‰˜~°B·L±L³NˆÓCˆØ � ‰ �j "§*¡*Ô-Ø ˜Ÿ™Ñ "Ø �M‰Mؘe b§i¡i° Ñ&;Ñ;Àuð ô ð �8‰8�IÔ Ü!Ÿ<™<ˆLØ ×,Ô,�Ü" <°°d±×1AÑ1AÓ1CÓD‘ ð-àœfŸl™lÒ*Ø— ‘ Ø"ؘLÑ(Ø#ðôô ×(Ñ(¨D¯M©MÑ9Ø � ‰ �o tÔ,à ‡x�x� ˜UÔ#ܘW d°4Õ8à ‡x�x� Ô'ܘW d°4Õ8à ‡x�xÐ" DÔ)ܘt W¨hÔ7à ‡x�xÐ! 4Ô(ܘd G¨XÔ6à ‡x�x� Ô'Ø—]‘]×2Ñ2°8×3CÑ3CÓDˆ ÜØ Ø Ø—h‘hÐ8¸$Ó?õ ð  ‡x�x� ˜5Ô!Ü×.Ñ.¨t°X×5EÑ5EÓFˆ Ü×'Ñ'¨ Ó5ˆ Ø�‰˜¨YˆÕ7ð"r$có —tj|j««}g}|jD]+}|j |d¬«}|sŒ|j ||g«Œ-|r#|j ddj|«¬«yy)NF)Úcomputemissingrr$r\)rÚhgtagsfnodescacheÚ unfilteredrNÚgetfnodeÚextendrÛr°)rhrtrTÚcacheróÚnodeÚfnodes r"rmrmsz€ô × "Ñ " 4§?¡?Ó#4Ó 5€EØ €Fð×$Ô$ˆà—‘˜t°E�Ó:ˆÚ Ø �M‰M˜4 ˜-Õ (ð %ñ Ø�‰˜¨c¯h©h°vÓ.>ˆÕ?ðr$cóX‡ —|j«}|j«j}tjd„«Š |j D]<}|j |j|««\}}‰ ||j|«Œ>ˆ fd„}|jd|«d¬«y)Ncó*—t«t«fSr5)r�r0r$r"r…z'addpartrevbranchcache../s €´C³E¼3»5±>r$c3ó@•K—t‰j««D]}\}\}}tj|«}tj t |«t |«t |««–—|–—t|«D]}|–—Œt|«D]}|–—ŒŒy­wr5)rñÚitemsr Ú fromlocalÚ rbcstructÚpackr[)ÚbranchÚnodesÚclosedÚ utf8branchr Ú branchesdatas €r"Úgeneratez'addpartrevbranchcache..generate4s„øèø€Ü'-¨l×.@Ñ.@Ó.BÖ'CÑ #ˆF‘O�U˜FÜ!×+Ñ+¨FÓ3ˆJÜ—.‘.¤ Z£´#°e³*¼cÀ&»kÓJÒ JØÒ ܘE–]�Ø“ð#ä˜F–^�Ø“ñ$ñ (DùsƒBBócache:rev-branch-cacheFrÕ) Úrevbranchcacher~Ú changelogÚ collectionsÚ defaultdictrOÚ branchinfoÚrevrKrÛ) rhrtrTr�Úclr‚r‹rzr�r�s @r"rnrn*s–ø€ð × Ñ Ó !€EØ �‰Ó × $Ñ $€BÜ×*Ñ*Ñ+AÓB€LØ× Ô ˆØ×(Ñ(¨¯©°«Ó6‰ ˆ�Ø�VјUÑ#×'Ñ'¨Õ-ð!ôð ‡O�OÐ-±H³JÈ%€OÕPr$có�—|D�cgc] }|dk7sŒ |‘Œ }}tjdjt|«««Scc}w)Nssharedrã)ræròr°rñ)rÚreqs r"Ú_formatrequirementsspecr›As@€Ù#/ÓD¡<˜C°3¸)Ó3C’C <€LÐDÜ �<‰<˜Ÿ ™ ¤&¨Ó"6Ó7Ó 8Ð8ùòEs … A�AcóP—t|«}dtjd«|fz}|S)Ns%s%ss requirements=)r›rærò)rr9s r"Ú_formatrequirementsparamsr�Fs*€Ü*¨<Ó8€LØ œŸ ™ Ð%5Ó6¸ ÐEÑ E€FØ €Mr$cóx—d}|jr+djd„t|j«D««}|S)z\Formats a repo's wanted sidedata categories into a bytestring for capabilities exchange.r$rãc3óFK—|]}tj|«–—Œy­wr5)rrÝ)r rAs r"r z0format_remote_wanted_sidedata..Qs èø€ð Ù)F AŒH× Ñ ˜Q× Ñ)Fùs‚!)Ú_wanted_sidedatar°rñ)rhÚwanteds r"Úformat_remote_wanted_sidedatar¢Ls?€ð€FØ ×ÒØ—‘ñ Ü)/°×0EÑ0EÔ)Fó ó ˆð €Mr$có:—|jd«}t|«S)Nóexp-wanted-sidedata)r9Úread_wanted_sidedata)riÚsidedata_categoriess r"Úread_remote_wanted_sidedatar§Ws€Ø Ÿ.™.Ð)?Ó@ÐÜ Ð 3Ó 4Ð4r$cóN—|rt|jd««St«S)Nrã)r�rå)Ú formatteds r"r¥r¥\s €ÙÜ�9—?‘? 4Ó(Ó)Ð)Ü ‹5€Lr$c óþ—|jdd«sytj|«s-td«}td«}t j ||¬«‚d|j vr-td«}td«}t j ||¬«‚t|j d«}tt|d¬ «jdg««}||z}|s[td «}d jt|««}d jt|««} ||| fz}t j |«‚t|«} d|_ |jd «} |jd «} |jjdd«} | s| r | st j td««‚d}|jrOt!|j «}|st j td««‚|jj"|vrd}| dk(r’tj$|| | |«\}}}tj&|«}t)|«}|j+d|¬«}|j-dd|zd¬«|j-dd|zd¬«|j-d|d¬«y| dk(r`tj.|| | |«}tj&|«}t)|«}|j+d|¬«}|j-d|d¬«yy)NrcFs<stream data requested but server does not allow this featuresthe client seems buggy©Úhintr!sOstream data requested but supported streaming clone versions were not specifiedr#)r2s3no common supported version with the client: %s; %srãÚ includepatsÚ excludepatsr(sserver.stream-narrow-cloness,server does not support narrow stream clonessPserver has obsolescence markers, but client cannot receive them via stream cloneTróstream2r\ó bytecountr`rØó filecountó requirementsr)ó stream3-exp)rSrÚallowservergenerationrr rEr¢r�r7r°rñrhrr rrorBÚ_versionÚ generatev2Ústreamed_requirementsr›rÛrÜÚ generatev3)rtrhr�r²r¬Úclient_supportedÚserver_supportedÚcommon_supportedÚ str_serverÚ str_clientrIr­r®Ú narrowstreamÚincludeobsmarkersÚremoteversionsÚ filecountÚ bytecountÚitrr©s r"rlrlbs×€Ø �:‰:�h Ô &Øä × ,Ñ ,¨TÔ 2ÜÐOÓPˆÜÐ*Ó+ˆÜ�k‰k˜# DÔ)Ð)Ø ˜×-Ñ-Ñ -ÜØ ^ó ˆôÐ*Ó+ˆÜ�k‰k˜# DÔ)Ð)ܘ7×/Ñ/° Ñ:Ó;ÐÜœ; t°)Ô<×@Ñ@ÀÈBÓOÓPÐØ'Ð*:Ñ:ÐÙ ÜÐFÓGˆØ—Y‘YœvÐ&6Ó7Ó8ˆ Ø—Y‘YœvÐ&6Ó7Ó8ˆ Ø � ˜JÐ'Ñ'ˆÜ�k‰k˜#ÓÐÜÐ"Ó#€Gð %€GÔð—*‘*˜]Ó+€KØ—*‘*˜]Ó+€Kà—7‘7×%Ñ%ØÐ7ó€Lñ ‘{©LÜ�k‰kœ!ÐKÓLÓMÐMàÐØ ‡}‚}Ü*¨7×+?Ñ+?Ó@ˆÙÜ—+‘+Üð<óóð ð �]‰]× #Ñ # ~Ñ 5Ø $Ð à�%ÒÜ#.×#9Ñ#9Ø �+˜{Ð,=ó$ Ñ ˆ �9˜bô#×8Ñ8¸Ó>ˆ Ü.¨|Ó<ˆ Ø�‰˜z°ˆÓ3ˆØ � ‰ �l E¨IÑ$5Àˆ ÔFØ � ‰ �l E¨IÑ$5Àˆ ÔFØ � ‰ �o |¸tˆ ÕDØ �IÒ Ü × #Ñ #Ø �+˜{Ð,=ó ˆô#×8Ñ8¸Ó>ˆ Ü.¨|Ó<ˆ Ø�‰˜~°BˆÓ7ˆØ � ‰ �o |¸tˆ ÕDð r$cóΗ|syt|j«}tj|«}|€ t d«‚tj |d|¬«}|j d||¬«S)z¶add an obsmarker part to the bundler with No part is created if markers is empty. Raises ValueError if the bundler doesn't support any known obsmarker format. Ns0bundler does not support common obsmarker formatT)rIr&rÕ)rBr¢r Ú commonversionr*Ú encodemarkersrÛ)rtÚmarkersrËrÀrIrcs r"rqrq¬sd€ñ Øä& w×';Ñ';Ó<€NÜ×$Ñ$ ^Ó4€GØ€ÜÐLÓMÐMÜ × #Ñ # G¨T¸7Ô C€FØ �?‰?˜=¨vÀˆ?Ó KÐKr$cóЇ‡‡ ‡ —|dk(r�t|«}|j|‰«|jd‰j«¬«}|j d‰j «d‰j vr$|j dd‰j dzd¬ «|j«} n¨|�J‚‰j d k7rtjtd ««‚t|\Š } | tjjvr!tjtd «| z«‚tjj| «Š ˆˆ ˆˆ fd „} | «} tj || ||¬«S)zúWrite a bundle file and return its filename. Existing files will not be overwritten. If no filename is specified, a temporary file is created. bz2 compression can be turned off. The bundle file will be deleted in case of errors. rúr¸r\r]r^r_r`FrØrDs.old bundle types only supports v1 changegroupss#unknown stream compression type: %sc3óh•K—‰–—‰j‰j«‰«D]}|–—Œy­wr5)r#r')r&r¾Ú compenginerr±s €€€€r"rYzwritebundle..chunkiterãs/øèø€ØŠLØ#×2Ñ2°2·<±<³>À8ÖL�Ø“ ñMùsƒ/2rJ)rýrrÛr'rÜrIrfr rErÚ bundletypesrrr…rrrQ) r r¾rRrSrErFrrXr©rYÚcomprÊr±s ` ` @@r"rLrL½sCû€ð�WÒܘ"“ˆØ×јk¨8Ô4Ø�~‰~˜n°2·<±<³>ˆ~ÓBˆØ � ‰ �j "§*¡*Ô-Ø ˜Ÿ™Ñ "Ø �M‰Mؘe b§i¡i° Ñ&;Ñ;Àuð ô ð×$Ñ$Ó&‰ ðÐ"Ð"Ð"Ø �:‰:˜Ò Ü—+‘+ÜÐCÓDóð ô # :Ñ.‰ ˆ�ð ”t×'Ñ'×<Ñ<Ñ <Ü—+‘+œaÐ FÓGÈ$ÑNÓOÐ OÜ×%Ñ%×3Ñ3°DÓ9ˆ ÷ ñ “Kˆ ô × "Ñ " 2 y°(ÀÔ DÐDr$cóô—|jdD�cgc]}|jdd«‘Œ}}d}d}|D]'}|dk(rd}n|dkr ||dzz }Œ|dkDsŒ ||dz z }Œ)|dkDrd|z}|S|dkrd|z}|Scc}w)z:logic to combine 0 or more addchangegroup results into oner¸r¹rrr¤)rjrS)rŽÚrÚresultsÚ changedheadsÚresultrÀs r"ÚcombinechangegroupresultsrÒïs³€à,.¯J©J°~Ò,FÓGÑ,F qˆq�u‰u�Y Õ"Ð,F€GÐGØ€LØ €FÛˆà �!Š8؈FÙ Ø �Š8Ø ˜C !™GÑ #‰LØ �1‹WØ ˜C !™GÑ #‰Lðð�aÒØ�\Ñ!ˆð €Mð ˜Ò Ø�lÑ"ˆØ €Mùò!Hs’A5r¸)r]r_rbr¤ó treemanifestracó8—ddlm}|j«}|jj dd«}t j ||d«}d}d|jvr$t|jj d««}d|jv�rtj|j«sút|jj«dk7rtjtd ««‚|jj j#t j$«|j'|jj(|jj |jj*«|jj,_tj0|j«i}|jj d «}|�t|«|d <|jj d «} t3| «|d <t5||||j6dfd|i|¤Ž} |j8�e|j8j;dd¬«} | j=dt?j@|jB«d¬«| j=dd| zd¬«|jE«rJ‚y)z$apply a changegroup part on the repor)Ú localrepor]rDNr_rÓrs[bundle contains tree manifests, but local repo is non-empty and does not use tree manifestsraÚ targetphaser¤r¦r€Ú expectedtotalóreply:changegroupFrØr×r¹ó%i)#ÚrÕrur9rSrrKr?rÚistreemanifestrhr[r“r rErrrKÚTREEMANIFEST_REQUIREMENTÚresolvestorevfsoptionsr rkÚsvfsÚoptionsÚwritereporequirementsr¥r‹rprkrÛrÜrrÝrÞr¼) rŽÚinpartrÕr„Úunpackerversionr¾Ú nbchangesetsÚ extrakwargsrÖÚremote_sidedatarÀr©s r"Úhandlechangegroupræs,€õà × Ñ Ó €BØ—m‘m×'Ñ'¨ °EÓ:€Oä × !Ñ ! /°6¸4Ó @€Bð€LØ�v—}‘}Ñ$ܘ6Ÿ=™=×,Ñ,¨\Ó:Ó;ˆ ؘ&Ÿ-™-Ò'´×0FÑ0FÀrÇwÁwÔ0OÜ ˆr�w‰w× Ñ Ó ! QÒ &Ü—+‘+ÜðAóóð ð �‰×Ñ× Ñ ¤×!FÑ!FÔGØ(×?Ñ?Ø �G‰G�J‰J˜Ÿ™×,Ñ,¨b¯g©g×.>Ñ.>ó ˆ�‰� ‰ Ôô ×%Ñ% b§g¡gÔ.à€KØ—-‘-×#Ñ# NÓ3€KØÐÜ%(¨Ó%5ˆ �MÑ"à—m‘m×'Ñ'Ð(>Ó?€OÜ)=¸oÓ)N€KÐ%Ñ&ä Ø Ø Ø Ø � ‰ Øñ  ð #ð  ð ñ €Cð ‡x�xÐð�x‰x×ÑÐ 4ÀÐÓFˆØ � ‰ Ø œH×,Ñ,¨V¯Y©YÓ7À5ð ô ð � ‰ �i ¨¡¸ˆ Ô>Ø�{‰{Œ}ÐÐ ˆ}r$)r�ósizeró digest:%srcóˆ— |jd}t j |«}|jtdvr+tjt d«|jz«‚ t|jd«}i}|jjdd«j«D]}d |z} |j|}|||<Œtjt j|j |«||«} |j#«} d d lm} | j)|j*j | |«} t-| t.j0«s4tjt d «t j2|«z«‚t5|| | |j6d «} |j8�c|j8j;d«}|j=dt?j@|jB«d¬«|j=dd| zd¬« | jE«|jI«rJ‚y#t$r"tjt d«dz«‚wxYw#t$r"tjt d«dz«‚t$r"tjt d«dz«‚wxYw#t$r"tjt d«|z«‚wxYw#tj$rE}tjt d«t j2|«|jFfz«‚d}~wwxYw)a÷apply a bundle10 on the repo, given an url and validation information All the information about the remote bundle to import are given as parameters. The parameters include: - url: the url to the bundle10. - size: the bundle10 file size. It is used to validate what was retrieved by the client matches the server knowledge about the bundle. - digests: a space separated list of the digest types provided as parameters. - digest:: the hexadecimal representation of the digest with that name. Like the size, it is used to validate what was retrieved by the client matches what the server knows about the bundle. When multiple digest types are given, all of them are checked. r�s&remote-changegroup: missing "%s" paramrs+remote-changegroup does not support %s urlsrçs0remote-changegroup: invalid value for param "%s"rr$rèr)Úexchanges%s: not a bundle version 1.0r€NrØr×FrØr¹rÙsbundle at %s is corrupted: %s)%r9r_r rErrrÚschemer¢r?r*rSrårÚ digestcheckerÚopenr rurÚrêÚ readbundlerhrˆrÚ cg1unpackerÚ hidepasswordr‹rprkrÛrÜrrÝrÞÚvalidater!r¼)rŽráÚraw_urlÚ parsed_urlrAÚdigestsÚtypr%rÚ real_partr„rêr¾rÀr©rs r"Úhandleremotechangegroupr÷Lsõ€ð"QØ—-‘- Ñ'ˆô—‘˜WÓ%€JØ×Ѥ Ð-BÑ CÑCÜ�k‰kÜ Ð<Ó =Ø×Ññ ó ð ð  Ü�6—=‘= Ñ)Ó*ˆð€GØ�}‰}× Ñ  ¨SÓ1×7Ñ7Ö9ˆØ˜sÑ"ˆð Ø—M‘M %Ñ(ˆEð ˆ�Š ð:ô×"Ñ"¤3§8¡8¨B¯E©E°7Ó#;¸TÀ7ÓK€Ià × Ñ Ó €BÝà × Ñ ˜RŸW™WŸZ™Z¨°GÓ <€BÜ �bœ+×1Ñ1Ô 2Ü�k‰kÜ Ð-Ó .´×1EÑ1EÀgÓ1NÑ Nó ð ô ˜b " b¨"¯)©)°ZÓ @€CØ ‡x�xÐð�x‰x×ÑÐ 4Ó5ˆØ � ‰ Ø œH×,Ñ,¨V¯Y©YÓ7À5ð ô ð � ‰ �i ¨¡¸ˆ Ô>ð Ø×ÑÔð �{‰{Œ}ÐÐ ˆ}øôs òQÜ�k‰kœ!ÐEÓFÈÑOÓPÐPðQûô ò Ü�k‰kÜ ÐAÓ BÀWÑ Ló ð ô ò Ü�k‰kÜ Ð7Ó 8¸7Ñ Bó ð ð ûôò Ü—+‘+ÜÐ;Ó<¸uÑDóð ð ûô6 �;‰;ò Ü�k‰kÜ Ð/Ó 0Ü×#Ñ# GÓ,¨a¯i©iÐ8ñ 9ó ð ûð ús=‚H6Á'I$Â4J;ÈK)È6+I!É$AJ8Ê;+K&Ë)MË I¨sÐ#3°WÕ=r$scheck:bookmarkscób—tj|j|«}d}d}d}|D]„\}}|jjj |«}||k7sŒ1|€||t |«fz} n-|€||t |«fz} n||t |«t |«fz} t j| «‚y)z÷check location of bookmarks This part is to be used to detect push race regarding bookmark, it contains binary encoded (bookmark, node) tuple. If the local state does not marks the one in the part, a PushRaced exception is raised s]remote repository changed while pushing - please try again (bookmark "%s" move from %s to %s)sbremote repository changed while pushing - please try again (bookmark "%s" is missing, expected %s)sfremote repository changed while pushing - please try again (bookmark "%s" set on %s, expected missing)N)rÚ binarydecoderhÚ _bookmarksrSrr Ú PushRaced) rŽráÚbookdataÚ msgstandardÚ msgmissingÚmsgexistÚbookr‚Ú currentnodeÚfinalmsgs r"Úhandlecheckbookmarksr¢s΀ô×%Ñ% b§g¡g¨vÓ6€Hð .ðð  3ðð  7ð ó‰ ˆˆdØ—g‘g×(Ñ(×,Ñ,¨TÓ2ˆ Ø ˜$Ó Øˆ|Ø# t¬U°;Ó-?Ð&@Ñ@‘ØÐ$Ø%¨¬u°T«{Ð(;Ñ;‘à&ØÜ˜$“Kܘ+Ó&ð*ñ�ô —/‘/ (Ó+Ð +ñr$s check:headscó�—|jd«}g}t|«dk(r1|j|«|jd«}t|«dk(rŒ1|rJ‚|jj dd«r|j «t |«t |jj««k7rtjd«‚y)z›check that head of the repo did not change This is used to detect a push race when using unbundle. This replaces the "heads" argument of unbundle.ér(óbundle2lazylockingó:remote repository changed while pushing - please try againN) r¼r[rIr rrurñrhÚheadsr rÿ)rŽráÚhr s r"ÚhandlecheckheadsrÈs¤€ð � ‰ �B‹€AØ €EÜ ˆa‹&�BŠ,Ø � ‰ �QŒØ �K‰K˜‹Oˆô ˆa‹&�B‹,ñ€Lˆ5à ‡u�u×јÐ)>Ô?Ø ×ÑÔÜ ˆeƒ}œ˜rŸw™wŸ}™}›Ó/Ò/Ü�o‰oØ Ió ð ð0r$scheck:updated-headscóØ—|jd«}g}t|«dk(r1|j|«|jd«}t|«dk(rŒ1|rJ‚|jj dd«r|j «t «}|jj«j«D]}|j|«Œ|D]}||vsŒtjd«‚y)aNcheck for race on the heads touched by a push This is similar to 'check:heads' but focus on the heads actually updated during the push. If other activities happen on unrelated heads, it is ignored. This allow server with high traffic to avoid push contention as long as unrelated parts of the graph are involved.r r(r r N) r¼r[rIr rrur�rhÚ branchmapÚ iterheadsrsr rÿ)rŽrár r Ú currentheadsÚlss r"ÚhandlecheckupdatedheadsrÝsÏ€ð � ‰ �B‹€AØ €EÜ ˆa‹&�BŠ,Ø � ‰ �QŒØ �K‰K˜‹Oˆô ˆa‹&�B‹,ñ€Lˆ5à ‡u�u×јÐ)>Ô?Ø ×ÑÔä“5€LØ�g‰g×ÑÓ!×+Ñ+Ö-ˆØ×јBÕð.óˆØ �LÒ Ü—/‘/ð$óð ñr$s check:phasescó°—tj|«}|jj«}|j}|j }d}|j «D]z\}}|D]p} |j||j| ««} | |k7sŒ*|t| «tj| tj|fz} tj| «‚Œ|y)zjcheck that phase boundaries of the repository did not change This is used to detect a push race. sQremote repository changed while pushing - please try again (%s is %s expected %s)N) r rýrhr~r“Ú _phasecacher‡rir—rÚ phasenamesr rÿ) rŽráÚ phasetonodesÚunfir˜Ú phasecacher²Ú expectedphaserŒr Ú actualphasers r"ÚhandlecheckphasesrýsÍ€ô ×&Ñ& vÓ.€LØ �7‰7× Ñ Ó €DØ �‰€BØ×!Ñ!€Jð "ðð!-× 2Ñ 2Ö 4ш �uÛˆAØ$×*Ñ*¨4°·±¸³Ó;ˆKؘmÓ+ØÜ˜!“HÜ×%Ñ% kÑ2Ü×%Ñ% mÑ4ð"ñ�ô —o‘o hÓ/Ð/ññ!5r$rÔcó˜—|j«j«D])}|jjt d«|z«Œ+y)z3forward output captured on the server to the clients remote: %s N)r¼rär rÌr)rŽrárês r"Ú handleoutputr s7€ð— ‘ “ ×(Ñ(Ö*ˆØ �‰� ‰ ”Q�Ó'¨$Ñ.Õ/ñ+r$s replycapscó†—t|j««}|j€t|j|«|_yy)zqNotify that a reply bundle should be created The payload contains the capabilities information for the replyN)rîr¼rkrýr )rŽrárés r"Úhandlereplycapsr! s5€ô �f—k‘k“mÓ $€DØ ‡x�xÐܘBŸE™E 4Ó(ˆ�ðr$có—eZdZdZy)Ú AbortFromPartz=Sub-class of Abort that denotes an error from a bundle2 part.N)r`rarbrcr0r$r"r#r#( s„ÚGr$r#r¢)r£óhintcóh—t|jd|jjd«¬«‚)z*Used to transmit abort error over the wirer£r$r«)r#r9rS©rŽrás r"Úhandleerrorabortr', s.€ô Ø� ‰ �jÑ!¨¯ © ×(9Ñ(9¸'Ó(Bô ðr$s error:pushkey)ó namespaceókeyónewóoldóretr×cóÆ—i}dD]%}|jj|«}|€Œ!|||<Œ'tj|jdfit j |«¤Ž‚)z=Used to transmit failure of a mandatory pushkey over the wire©r(r)r*r+r,r×)r9rSr Ú PushkeyFailedrÚ strkwargs)rŽrár�rrs r"Úhandleerrorpushkeyr14 sj€ð €FÛ>ˆØ— ‘ ×!Ñ! $Ó'ˆØ Ñ Ø ˆF�4ŠLð?ô × Ñ Ø� ‰ �nÑ%ñ Ü)1×);Ñ);¸FÓ)Cñ ðr$serror:unsupportedcontent)óparttypeóparamscóü—i}|jjd«}|�||d<|jjd«}|�|jd«|d<tjdit j |«¤Ž‚)z4Used to transmit unknown content error over the wirer2r3ór0)r9rSrår rÇrr0)rŽrár�r,r9s r"Úhandleerrorunsupportedcontentr6D sy€ð€FØ�}‰}× Ñ  Ó-€HØÐØ&ˆˆ{ÑØ �]‰]× Ñ ˜yÓ )€FØ ÐØ"ŸL™L¨Ó/ˆˆyÑä × )Ñ )Ñ G¬H×,>Ñ,>¸vÓ,FÑ GÐGr$serror:pushraced)r£cóZ—tjtd«|jd«‚)z.Used to transmit push race error over the wires push failed:r£)r Ú ResponseErrorrr9r&s r"Úhandleerrorpushracedr9R s%€ô × Ñ œa Ó0°&·-±-À Ñ2KÓ LÐLr$r)r(có¤—|jd}tj|j««}|jj d||f«y)z6retrieve pushkey namespace content stored in a bundle2r(rN)r9r Ú decodekeysr¼rjrK)rŽráÚ namespacerÎs r"Úhandlelistkeysr=X s>€ð— ‘ ˜lÑ+€IÜ×ј6Ÿ;™;›=Ó)€A؇J�J‡N�N�; ¨A Õ/r$r©r(r)r+r*cód—tj}||jd«}||jd«}||jd«}||jd«}|jj dd«r|j «|j j||||«}||||dœ}|jjd|«|j�c|jjd «} | jd tj|j«d ¬ «| jdd|zd ¬ «|jrd|sai} dD]#}||jvsŒ|j|| |<Œ%t!j"ddd|jzitj$| «¤Ž‚y y )zprocess a pushkey requestr(r)r+r*r(r r>rNó reply:pushkeyr×FrØr¹rÙr.rPr`r0)r Údecoder9r rrurhrjrKrkrÛrÜrrÝrÞrËr r/r0) rŽráÚdecr<rëÚoldÚnewrÀÚrecordÚrpartr�s r"Ú handlepushkeyrG` sŒ€ô �.‰.€CÙ�F—M‘M ,Ñ/Ó0€IÙ ˆf�m‰m˜FÑ#Ó $€CÙ ˆf�m‰m˜FÑ#Ó $€CÙ ˆf�m‰m˜FÑ#Ó $€Cð ‡u�u×јÐ)>Ô?Ø ×ÑÔØ �'‰'�/‰/˜) S¨#¨sÓ 3€CØ%¨s¸CÈÑ M€F؇J�J‡N�N�:˜vÔ&Ø ‡x�xÐØ—‘× Ñ Ð!1Ó2ˆØ �‰Ø œH×,Ñ,¨V¯Y©YÓ7À5ð ô ð �‰�y %¨#¡+¸ˆÔ?Ø ×ҡ؈ÛAˆCØ�f—m‘mÒ#Ø$Ÿm™m¨CÑ0��s’ ðBô×!Ñ!ñ ؘ6Ÿ9™9Ñ$ð Ü(0×(:Ñ(:¸6Ó(Bñ ð ð !$Ðr$rcó:‡‡ —tj‰j|«}‰jjj dd«}‰j j dd«}|dk(�ri‰j«}‰jj}|r¯gŠ |D]o\}}|jj«} d| d<d| d<|| d<t|j |d ««| d <t|�|nd «| d <‰ j| «Œq‰ D]4} ‰jj dd ditj| «¤ŽŒ6|D]=\}}tj |«sŒt#d«|z} t%j&| «‚|j)‰j‰j«|«|r"ˆ ˆfd„} ‰jj+| «y y |dk(r,|D]&\}}||dœ} ‰j,j/d| «Œ(y t%j0d|z«‚)adtransmit bookmark information The part contains binary encoded bookmark information. The exact behavior of this part can be controlled by the 'bookmarks' mode on the bundle operation. When mode is 'apply' (the default) the bookmark information is applied as is to the unbundling repository. Make sure a 'check:bookmarks' part is issued earlier to check for push races in such update. This behavior is suitable for pushing. When mode is 'records', the information is recorded into the 'bookmarks' records of the bundle operation. This behavior is suitable for pulling. r$sbookmarks-pushkey-compatrsapplyrs pushkeycompatr(r)r$r+Nr*ÚthrowTs$cannot accept divergent bookmark %s!cór•—‰D]1}‰jjditj|«¤ŽŒ3y)N)r)rhÚhookrr0)Úunused_successrmÚallhooksrŽs €€r"Úrunhookzhandlebookmark..runhook³ s-ø€Û (�HØ �B—G‘G—L‘LÑL¬x×/AÑ/AÀ(Ó/KÓLñ!)r$srecords)sbookmarksnodesunknown bookmark mode: %s)s prepushkey)rrýrhr rrorSrurþrmr»rrIrKrr0Ú isdivergentrr rEÚ applychangesÚ _afterlockrjrKrw)rŽráÚchangesÚ pushkeycompatÚ bookmarksmoder„Ú bookstorerr‚rmr²rNrErMs` @r"ÚhandlebookmarkrV sù€ô"×$Ñ$ R§W¡W¨fÓ5€Gà—G‘G—J‘J×)Ñ)ØÐ.ó€Mð—H‘H—L‘L ¨xÓ8€Mà˜Ó Ø × Ñ Ó ˆØ—G‘G×&Ñ&ˆ ٠؈HÛ%‘ ��dØŸ;™;×+Ñ+Ó-�Ø-1�Ð)Ñ*Ø)5�˜Ñ&Ø#'�˜Ñ Ü#& y§}¡}°T¸3Ó'?Ó#@�˜Ñ Ü#&¨tÐ/?¡tÀSÓ#I�˜Ñ Ø—‘ Õ)ð&ó%�Ø�—‘— ‘ Ø!ñØ)-ðÜ19×1CÑ1CÀHÓ1Móð%ó "‰JˆD�$Ü×$Ñ$ TÕ*ÜÐ?Ó@À4ÑG�Ü—k‘k #Ó&Ð&ð"ð ×јrŸw™w¨×(9Ñ(9Ó(;¸WÔEá õ Mð �G‰G× Ñ ˜wÕ 'ð ð ˜*Ò $Û!‰JˆD�$Ø#'°$Ñ7ˆFØ �J‰J�N‰N˜<¨Õ 0ñ"ô×$Ñ$Ø (¨=Ñ 8ó ð r$rdcó —tj|«}tj|jj «|j |«y)z%apply phases from bundle part to repoN)r rýÚ updatephasesrhr~ru)rŽrárys r"Ú handlephasesrYà s9€ô×&Ñ& vÓ.€LÜ ×јŸ™×*Ñ*Ó,¨b×.?Ñ.?ÀÕNr$r@có¢—t|jd«}t|jd«}|jjdd|i|«y)ú(retrieve the result of a pushkey requestr¹r×rNrù©rŽrárÀrPs r"Úhandlepushkeyreplyr]Ê sC€ô ˆf�m‰m˜IÑ&Ó '€CÜ �—‘˜~Ñ.Ó /€F؇J�J‡N�N�:  ¨3Ð/°Õ8r$r&có —|j«}|j«}|jjdd«r'|jj dt |«z«|j sF|jjjr&|jjjd«y|jjj||«}|jj«|jjdd|i«|j�d|jj!d«}|j#d t%j&|j(«d ¬ «|j#dd |zd ¬ «yy) z&add a stream of obsmarkers to the repor(sobsmarkers-exchange-debugs&obsmarker-exchange: %i bytes received s3ignoring obsolescence markers, feature not enabled Nr&r*óreply:obsmarkersr×FrØrÙ)rur¼r r.Ú writenoi18nr[rËrhroÚreadonlyrÚ mergemarkersÚinvalidatevolatilesetsrjrKrkrÛrÜrrÝrÞ)rŽrár„Ú markerdatarDrFs r"ÚhandleobsmarkerreÒ s.€ð × Ñ Ó €BØ—‘“€JØ ‡u�u‡|�|�OÐ%AÔBØ �‰×ÑØ 6¼¸Z»Ñ Hô ð × Ò  §¡× 0Ñ 0× 9Ò 9Ø �‰� ‰ ×ÑØ Cô ð Ø �'‰'× Ñ × 'Ñ '¨¨JÓ 7€C؇G�G×"Ñ"Ô$؇J�J‡N�N�= 6¨3 -Ô0Ø ‡x�xÐØ—‘× Ñ Ð!4Ó5ˆØ �‰Ø œH×,Ñ,¨V¯Y©YÓ7À5ð ô ð �‰�v˜u s™{°eˆÕ<ð r$r_)r*r×có¢—t|jd«}t|jd«}|jjdd|i|«y)r[r*r×r&Nrùr\s r"Úhandleobsmarkerreplyrgí sB€ô ˆf�m‰m˜FÑ#Ó $€CÜ �—‘˜~Ñ.Ó /€F؇J�J‡N�N�= 6¨3 -°Õ8r$rcóü—|jjdd«r|j«tj|j j ««}d} |jd«}|jd«}t|«dkst|«dkr|jjd«n|j||«|dz }Œr|j«|jjd|z«y) z|Applies .hgtags fnodes cache entries to the local repo. Payload is pairs of 20 byte changeset nodes and filenodes. r(r rr s1ignoring incomplete received .hgtags fnodes data rs'applied %i hgtags fnodes cache entries N) r rrurr}rhr~r¼r[rÚsetfnodeÚwrite)rŽrár�r”r‚rƒs r"Úhandlehgtagsfnodesrkõ sÊ€ð ‡u�u×јÐ)>Ô?Ø ×ÑÔÜ × "Ñ " 2§7¡7×#5Ñ#5Ó#7Ó 8€Eà €EØ Ø�{‰{˜2‹ˆØ— ‘ ˜B“ˆÜ ˆt‹9�rŠ>œS ›Z¨"š_Ø �E‰E�K‰KÐMÔ NØ Ø �‰�t˜UÔ#Ø �‰ ˆð ð ‡K�K„M؇E�E‡K�KÐ;¸eÑCÕDr$s>IIIr‘có—y)zÖLegacy part, ignored for compatibility with bundles from or for Mercurial before 5.7. Newer Mercurial computes the cache efficiently enough during unbundling that the additional transfer is unnecessary.Nr0r&s r"Ú handlerbcrm s�r$spushvarscóÀ—|jjdd«rBi}|jD]\}}|j«}d|z}|||<Œ!|j |«yy)z5unbundle a bundle2 containing shellvars on the serverspushspushvars.serversUSERVAR_N)r rr‘r¥rx)rŽr©rmrërs r"Úbundle2getvarsro se€ð ‡u�u×јÐ!3Ô4؈Ø×-Ô-‰JˆC�Ø—)‘)“+ˆCð Ñ#ˆCØ!ˆH�SŠMð .ð �‰�xÕ ð5r$r¯)r²r±r°cóª—tj|jd«}|r|jd«ng}t |jd«}t |jd«}|j }t |«r td«}tj|«‚|jjd«tj|||||«y)Nr²rãr±r°ó1cannot apply stream clone to non empty repositoryóapplying stream bundle )rærçr9rår?rhr[rr rEr rrÚ applybundlev2)rŽr©rrÁrÂrhr²s r"Úhandlestreamv2bundlert( s©€ô—>‘> $§+¡+¨oÑ">Ó?€LÙ/;Ð%�<×%Ñ% dÔ+À€LÜ�D—K‘K  Ñ-Ó.€IÜ�D—K‘K  Ñ-Ó.€Ià �7‰7€DÜ ˆ4„yÜÐDÓEˆÜ�k‰k˜#ÓÐà‡G�G‡M�MÐ-Ô.Ü×јd D¨)°YÀ ÕMr$r³)r²cóF—tj|jd«}|r|jd«ng}|j}t |«r t d«}tj|«‚|jjd«tj|||«y)Nr²rãrqrr) rærçr9rårhr[rr rEr rrÚ applybundlev3)rŽr©rrhr²s r"Úhandlestreamv3bundlerw9 s}€ä—>‘> $§+¡+¨oÑ">Ó?€LÙ/;Ð%�<×%Ñ% dÔ+À€Là �7‰7€DÜ ˆ4„yÜÐDÓEˆÜ�k‰k˜#ÓÐà‡G�G‡M�MÐ-Ô.Ü×јd D¨,Õ7r$cóZ—t«}|j} |jd|«D]"} |j| j | ««Œ$|r�t j |||||¬«} | j|jht|«ddd¬«} |jd| ¬«} | jd|«tj|«r| jd d «tj|j vr/ jd d «t#|«}| jd |«|S) aKgenerates bundle2 for widening a narrow clone bundler is the bundle to which data should be added repo is the localrepository instance oldmatcher matches what the client already has newmatcher matches what the client needs (including what it already has) common is set of common heads between server and client known is a set of revs known on the client side (used in ellipses) cgversion is the changegroup version to send ellipses is boolean value telling whether to send ellipses data or not returns bundle2 of the data required for extending s::%ln)Ú oldmatcherÚmatcherÚ fullnodesFs narrow_widen)r“r¸r\r]rÓrrbr¤)r�r“rMrKr‚rÚ getbundlerr�ÚnullidrÉrÛrÜrrÛrrjrkr¢)rtrhryÚ newmatcherÚcommonÚknownruÚellipsesÚ commonnodesr˜rÎÚpackerÚcgdatar©r¡s r"Ú widen_bundler…G s €ô “%€KØ �‰€BØ �Y‰Y�x Ö (ˆØ�‰˜Ÿ™ › Õ#ð)áÜ×'Ñ'Ø Ø Ø!ØØ!ô  ˆð—‘Ø �[‰[ˆMÜ �Ó Ø Ø Øð !ó ˆð�‰˜~°FˆÓ;ˆØ � ‰ �j )Ô,Ü × !Ñ ! $Ô 'Ø �M‰M˜/¨4Ô 0Ü×(Ñ(¨D¯M©MÑ9Ø � ‰ �o tÔ,Ü.¨tÓ4ˆØ � ‰ Ð,¨fÔ5à €Nr$r1)NN)NNr$Nr5)FN)NNNF)T)NNN)‰rcr”rr Úrerr:r®Úi18nrr‚rrrÚrrr r r r r rrrrrrrÚutilsrrÚ interfacesrÚurlerrrærŠr!rÑr<r"r.r¦r§rdr¨r½Úcompiler(r#r&r-r2r7r=r?rfÚ RuntimeErrorrzr}r�r‘rŠr±r‹rÑr´rîrõrËÚbundlepriorityrýr4rKr‰rFr^r‚r†rrerÁrÅr×rlrkrRrñÚDIGESTSÚkeysr¢r7r<rBrZrPrmrnr›r�r¢r§r¥rlrqrLrÒræÚ_remotechangegroupparamsr÷rûrrrrrr!rEr#r'r1r6r9r=rGrVrYr]rergrkrÐr‰rmrortrwr…)rgs0r"Úr‘s×ðñKó\Û Û Û Û Û Û å÷÷÷÷÷÷ õ#à �‰€Ø �‰€à� ‰ €Ø �-‰-€àÐØÐØ€Ø €Ø€ ØÐàÐà�R—Z‘ZÐ 2Ó3Ðò4ò 3ò #ò %ðÐó÷,-ñ-÷`:'ñ:'ôz ˜\ô ò#ó÷$D ñD ðTØ Ø Ø ó .òb#ò ò'òTò:ò0 ð ðØ!ØØ!ñ€ ò3€÷yñy÷x7ñ7ó8ô&]$�ô]$ð@�JÐ € àÐòñ�nÓ%ñ%ó&ð%÷hñhðV€ ô1 �}ô1 ÷hQñQò&5Jôpu�=ôuôpv˜<ôvðxØØIØØÙ‘f˜TŸ\™\×.Ñ.Ó0Ó1Ó2Ø.ØØØñ € ó.òb ò?ð ØØ Øó/Eòd98òx@ò2Qò.9ò ò ò5ò ò GEóTLð$HLó/Eòdñ* Øðó ñ4ó ð4ñn!Ú!Ø!%§¡×!2Ñ!2Ô!4Ó5Ñ!4˜A€|�aÓÐ!4Ñ5ñ6óÐñ  Ð "Ð$<Ó=ñKó>ðKñ\ Ð !Ð#>Ó?ñ>ó@ð>ñ  Ð Ó ñ",ó!ð",ñJ ˆ^Óñ óð ñ( Ð #Ó$ñó%ðñ> ˆ_Óñ0óð0ñ2 ˆYÓñ0óð0ñ  ˆ\Óñ)óð)ôH�E—K‘KôHñ ˆ^Ð2Ó3ñó4ðñ ØØBóñ ó ð ñ Ð (Ð*BÓCñ HóDð Hñ Ð  Ó/ñMó0ðMñ  ˆ[˜/Ó*ñ0ó+ð0ñ ˆZÐ?Ó@ñ óAð ñ< ˆ\Óñ@ óð@ ñF ˆ^ÓñOóðOñ  Ð Ð:Ó;ñ9ó<ð9ñ ˆ]Óñ=óð=ñ4 Ð Ð":Ó;ñ9ó<ð9ñ ˆ_ÓñEóðEð0 ˆF�MŠM˜'Ó "€ ñ Ð &Ó'ñó(ðñ ˆ[Óñ !óð !ñ ˆZÐFÓGñ NóHð Nñ  ˆ^Ð/Ó0ñ 8ó1ð 8ó-ùò6sÈ! N>