Ë Cƒ|…¡°§¸ãó—ddlZddlZddlmZddlmZmZmZddlm Z dZ dZ dZ d Z d „Zd Zgd ¢Zdd „Z dd„ZGd„dej&«Zed«Zd„Z dd„Zy)éNé)Ú_)ÚerrorÚpycompatÚutil)Ú stringutilésalls prefinalizes postfinalizecó‡—ˆfd„}|S)Ncód•—|jdk(rtjd«‚‰|g|¢­i|¤ŽS)Nrs;cannot use transaction when it is already committed/aborted)Ú_countrÚProgrammingError)ÚselfÚargsÚkwdsÚfuncs €ú9usr/lib/python3.12/site-packages/mercurial/transaction.pyÚ_activezactive.._active!s<ø€Ø �;‰;˜!Ò Ü×(Ñ(ØNóð ñ�DÐ(˜4Ò( 4Ñ(Ð(ó©)rrs` rÚactiver sø€ô)ð €Nró%s.backupfiles))óstores %s.narrowspec)óplains%s.narrowspec.dirstate)rs %s.branch)rs %s.bookmarks)rs %s.phaseroots)rs %s.dirstate)rs%s.desc)rs%scó8—t|z}g}g}|d} ||«5}t||«}ddd«|D]%\} }} } | |vsŒ | sŒ|j|| | f«Œ'|j||f«tD]\} } |j|| | |zf«Œ |D]\}} |j|«Œy#1swYŒŠxYw#t$rc}|jtjk7rð(6ð×Ñ�t˜^Ð,Ô-ß:ш�)Ø×ј6 (Ñ+¨Y¸Ñ-DÐEÕFð ;ã'ш�ð Ø �N‰N˜8Õ $ñ(÷"Ð !ûä òØ �7‰7”e—l‘lÒ "ÜÐ.Ó/ˆCØ �D—I‘I˜nÓ-¬z×/FÑ/FÀqÓ/IÐJÑ JˆCÙ �3ŒKÿøð ûô ò Ø�w‰wœ%Ÿ,™,Ò&ÜÐ2Ó3�ؘŸ ™  XÓ.´ ×0GÑ0GÈÓ0JÐKÑK�Ù�s” ÿøð  úsG”B>œ B2©B>ÂD-Â2B;Â7B>Â> D*ÃAD%Ä%D*Ä- FÄ6AFÆFcóT‡‡—gŠˆˆfd„}i} |D]?} | \} } } }|| }|jd«|jd«k(}|sŒ5| sŒ8| sŒ;| | | <ŒAt«}tt|«j ««D]Ø\}}| j |«}|�-|\} } } }d}|r| | f|v}||| | |«|j |«|s|s}|xr|df|v} ||d|¬«}|j«|kr2tjtd«|||j«fz«‚|j|«|j«ŒÇ |j|«ŒÚ|D]Y} | |vrŒ| \}}}}||vr|r ‰d ||fz«||} |xr||f|v}|r|r |||||«n|xs|} |j|«Œ[d |z}|j#|«r|j|«|j|« ‰D](\}}|j#|«sŒ|j|«Œ*y#t$r‰td«|z«‚wxYw#t$rY�ŒÎwxYw#t$rYŒ¦wxYw#tt tjf$r|s‚Y�Œ(wxYw#tt tjf$rYywxYw) z…rollback a transaction : - truncate files that have been appended to - restore file backups - delete temporary files có•—|j|«}|j|«} tj|||¬«‰j||f«y#t$r1}t j |«}‰ td«||fz«‚d}~wwxYw)N©Ú checkambigsfailed to recover %s (%s) )r rÚcopyfiler"ÚIOErrorrr!r) Úvfsr,Úbr9ÚfilepathÚ backuppathÚexcÚe_msgÚ backupfilesr%s €€rÚrestore_one_backupz%_playback..restore_one_backupss~ø€Ø—8‘8˜A“;ˆØ—X‘X˜a“[ˆ ð Ü �M‰M˜* h¸:Õ FØ × Ñ   Q˜xÕ (øÜò Ü×+Ñ+¨CÓ0ˆEÙ ”1Ð3Ó4¸¸5°zÑAÔ BØ ûð ús¥+AÁ B Á,BÂB rNFóar8sBattempted to truncate %s to %d bytes, but it was already %d bytes sfailed to truncate %s s.couldn't handle %s: unknown cache location %s r)r ÚsetÚsortedÚdictÚitemsÚgetÚaddÚtellrÚAbortrÚtruncateÚcloser;r$ÚFileNotFoundErrorrÚexists)Újournalr%Úopenerr&ÚentriesÚ backupentriesr$ÚcheckambigfilesrCÚ store_backupÚentryr/Ú file_pathr0Úcacher<Úis_storeÚ copy_doner,ÚoÚ bck_entryr9ÚfpÚlr=r1Útargetr?rBs ` @rÚ _playbackrabsøù€ð€Kõ ð€LÛˆØ27Ñ/ˆ�)˜[¨%Ø�Xшؗ8‘8˜C“= F§K¡K°Ó$4Ñ4ˆÚ š ¢kØ&+ˆL˜Ò #ð ô “€Iô”t˜G“}×*Ñ*Ó,Ö-‰ˆˆ1ð!×$Ñ$ QÓ'ˆ Ø Ð Ø6?Ñ 3ˆH�i ¨e؈JÙØ'¨Ð2°oÐE� Ù ˜v y°+¸zÔ JØ �M‰M˜)Ô $á ‘FØ(ÒH¨a°¨X¸Ð-HˆJð Ù˜A˜t° Ô;�Ø—7‘7“9˜q’=ÜŸ+™+Üð2óð˜a §¡£Ð+ñ ,óðð— ‘ ˜A”Ø—‘• ð  Ø— ‘ ˜aÕ ðA.óHˆØ �IÑ Ø Ø‰ ˆˆ1ˆa�Ø �F‰?™qÙ ÐEÈÈAÈÑNÔ OØ�Q‰iˆð Ø(ÒF¨a°¨V°Ð-FˆJÙ‘QÙ" 3¨¨1¨jÕ9àš˜a�ð Ø—J‘J˜vÔ&øðð@# WÑ,€JØ ‡}�}�ZÔ Ø� ‰ �jÔ!Ø ‡M�M�'Ôð Û!‰FˆC�Ø�z‰z˜!�}Ø— ‘ ˜1• ñ"øô_ò Ù”qÐ3Ó4°qÑ8Ô9Øð ûô%ò Úð ûô$)ò ñð ûôœ¤%§+¡+Ð.ò ÙØòð ûô ”WœeŸk™kÐ *ò á ð úsgÃA1HÅH?Æ IÆ#IÇ/JÈ JÈH<È? I É I É IÉIÉIÉIÉ!JÊJÊJ'Ê&J'cóä—eZdZ d'd„Zd„Zd„Zed„«Zed„«Z ed„«Z ed„«Z d „Z ed(d „«Z d „Zed)d „«Ze d*d„«Zed„«Zd efd„Zed„«Zed„«Zed„«Zed+d„«Zd„Zd„Zd„Zed„«Zed„«Zed„«Zed„«Zed„«Zed„«Z ed„«Z!ed„«Z"ed „«Z#ed!„«Z$d"„Z%d#„Z&d$„Z'd%„Z(d&„Z)y),Ú transactionNc ó°—d|_d|_||_||_|j «}||d<||_||_i|_t«|_ ||_ g|_ ||_ g|_ | €d„} | |_t«|_| r|jj!| «| g|_i|_i|_|j)|jd«|_g|_i|_d|jz|_|j)|j0d«|_|j2j5dt6z«t«|_|�>|j;|j|d z«|j;|j0|d z«i|_i|_d |_ i|_!i|_"|�||jDd <i|_#i|_$y) a Begin a new transaction Begins a new transaction that allows rolling back writes in the event of an exception. * `after`: called after the transaction has been committed * `createmode`: the mode of the journal file that will be created * `releasefn`: called after releasing (with transaction and result) `checkambigfiles` is a set of (path, vfs-location) tuples, which determine whether file stat ambiguity should be avoided for corresponded files. rrNcó—y©Nr)ÚtrÚsuccesss rÚz&transaction.__init__.. s€¨Drsw+rówó%d i¶Fs 001-userhooks)%r Ú_usagesÚ_reportÚ_openerÚcopyÚ_vfsmapÚ_afterÚ _offsetmaprEÚ _newfilesÚ_journalÚ_journal_filesÚ _undonameÚ_queueÚ _releasefnÚ_checkambigfilesÚupdateÚ_namesÚchangesÚhookargsÚopenÚ_fileÚ_backupentriesÚ _backupmapÚ_backupjournalÚ _backupsfileÚwriteÚversionÚ _tmp_filesÚchmodÚ_filegeneratorsÚ_pendingcallbackÚ _anypendingÚ_finalizecallbackÚ_validatecallbackÚ_postclosecallbackÚ_abortcallback) rr%rRr&Ú journalnameÚundonameÚafterÚ createmodeÚ validatorÚ releasefnrUÚnames rÚ__init__ztransaction.__init__Üs¹€ð6ˆŒ ؈Œ ؈Œ àˆŒ à—‘“ˆØˆˆs‰ ؈Œ ؈Œ ؈ŒÜ›ˆŒØ#ˆŒ Ø ˆÔØ!ˆŒØˆŒ à Ð Ù0ˆIØ#ˆŒä #£ˆÔÙ Ø × !Ñ !× (Ñ (¨Ô 9à�fˆŒ ðˆŒ ðˆŒ Ø—[‘[ §¡°Ó6ˆŒ ð!ˆÔ؈ŒØ/°$·-±-Ñ?ˆÔØ"ŸK™K¨×(;Ñ(;¸TÓBˆÔØ ×Ñ×Ñ ¬'Ñ 1Ô2ä›%ˆŒà Ð !Ø �L‰L˜Ÿ™¨ °UÑ(:Ô ;Ø �L‰L˜×,Ñ,¨j¸5Ñ.@Ô Að "ˆÔà "ˆÔà ˆÔà!#ˆÔð"$ˆÔØ Ð Ø7@ˆD× "Ñ "Ð#3Ñ 4à"$ˆÔà ˆÕrcóp—dj|j«}d||j|jfzS)Nó/z*)r r{r rl©rr•s rÚ__repr__ztransaction.__repr__>s7€Ø�y‰y˜Ÿ™Ó%ˆØ;Ø Ø �K‰KØ �L‰Lð? ñ ð rcó>—|jr|j«yyrf)rtÚ_abort©rs rÚ__del__ztransaction.__del__Fs€Ø �=Š=Ø �K‰K�Mð rcó—|jduSrf©r‹r�s rÚ finalizedztransaction.finalizedJs€à×%Ñ%¨Ð-Ð-rcó:—|jjg«y)z±delay registration of file entry This is used by strip to delay vision of strip offset. The transaction sees either none or all of the strip actions to be done.N)rwr"r�s rÚ startgroupztransaction.startgroupNs€ð � ‰ ×ј2Õrcóp—|jj«}|D]\}}|j||«Œy)zºapply delayed registration of file entry. This is used by strip to delay vision of strip offset. The transaction sees either none or all of the strip actions to be done.N)rwÚpopÚ _addentry)rÚqr,r\s rÚendgroupztransaction.endgroupVs0€ð �K‰K�O‰OÓ ˆÛ‰DˆAˆqØ �N‰N˜1˜aÕ ñrcóô—||jvs*||jvs||jvs||jvry|jr!|jdj ||f«y|j ||«y)z5record the state of an append-only file before updateNéÿÿÿÿ)rsrrr�r†rwr"r¦©rÚfileÚoffsets rrJztransaction.add`si€ð �D—N‘NÑ "Ø�t—‘Ñ&Ø�t—‘Ñ&Ø�t—‘Ñ&à Ø �;Š;Ø �K‰K˜‰O× "Ñ " D¨& >Ô 2Ø à �‰�t˜VÕ$rcóD—||jvs*||jvs||jvs||jvry|r||j|<n|jj |«|j j d||fz«|j j«y)z3add a append-only entry to memory and on-disk stateNó%s%d )rsrrr�r†rJrr„Úflushr«s rr¦ztransaction._addentryps…€ð �D—N‘NÑ "Ø�t—‘Ñ&Ø�t—‘Ñ&Ø�t—‘Ñ&à Ù Ø$*ˆD�O‰O˜DÒ !à �N‰N× Ñ ˜tÔ $à � ‰ ×ј¨¨f ~Ñ5Ô6Ø � ‰ ×ÑÕrrcóÖ—|jrd}tj|«‚||jvs||jvry||j vr|sy|r,||j vrd}|||fz}tj|«‚|j |}|j|«\}}d|j|fz} |j|| «} |j|«r||j|«} |j| «} tjj| «} tj | |j"d¬«tj$| | |¬«nd} |j'||| d f«y) aºAdds a backup of the file to the transaction Calling addbackup() creates a hardlink backup of the specified file that is used to recover the file in the event of the transaction aborting. * `file`: the file path, relative to .hg/store * `hardlink`: use a hardlink to quickly create the backup If `for_offset` is set, we expect a offset for this file to have been previously recorded s/cannot use transaction.addbackup inside "group"NzKcalling `addbackup` with `for_offmap=True`, but no offset recorded: [%r] %rs%s.backup.%s.bckT)ÚmodeÚ notindexed©ÚhardlinkrF)rwrr rsr�rrrpÚsplitrtÚreljoinrPr ÚosÚpathÚdirnamerÚmakedirsr’r:Ú_addbackupentry)rr¬rµr/Ú for_offsetr.r<rºÚfilenameÚbackupfilenameÚ backupfiler>r?Úfinal_dir_names rÚ addbackupztransaction.addbackup�sD€ð �;Š;ØDˆCÜ×(Ñ(¨Ó-Ð -à �4—>‘>Ñ ! T¨T¯_©_Ñ%<Ø Ø �T—_‘_Ñ $©ZØ Ù ˜D¨¯©Ñ7ð2ð ð �H˜dÐ#Ñ #ˆCÜ×(Ñ(¨Ó-Ð -à�l‰l˜8Ñ$ˆØŸI™I d›Oш�Ø,°· ± ¸xÐ/HÑHˆØ—[‘[ ¨.Ó9ˆ Ø �:‰:�dÔ Ø—x‘x “~ˆHØŸ™ *Ó-ˆJô ŸW™WŸ_™_¨ZÓ8ˆNÜ �M‰M˜.¨s¯~©~È$Õ Oä �M‰M˜( J¸Ö BàˆJà ×јh¨¨j¸%Ð@ÕArcóú—|jj|«t|j«dz |j|d<|jj d|z«|jj «y)z0register a new backup entry and write it to diskró %s%s%s%d N)r€r"Úlenr�rƒr„r°)rrWs rr¼ztransaction._addbackupentry°sd€à ×Ñ×"Ñ" 5Ô)Ü$'¨×(;Ñ(;Ó$<¸qÑ$@ˆ�‰˜˜a™Ñ!Ø ×Ñ×ÑÐ 3°eÑ ;Ô<Ø ×Ñ×ÑÕ!rcód—|jj|«|j|d|df«y)z”register a temporary transaction file Such files will be deleted when the transaction exits (on both failure and success). rFN)r†rJr¼)rÚtmpfiler/s rÚ registertmpztransaction.registertmp·s-€ð �‰×јGÔ$Ø ×јh¨¨W°eÐ<Õ=rcó0—|||||f}||j|<y)a]add a function to generates some files at transaction commit The `genfunc` argument is a function capable of generating proper content of each entry in the `filename` tuple. At transaction close time, `genfunc` will be called with one file object argument per entries in `filenames`. The transaction itself is responsible for the backup, creation and final write of such file. The `genid` argument is used to ensure the same set of file is only generated once. Call to `addfilegenerator` for a `genid` already present will overwrite the old entry. The `order` argument may be used to control the order in which multiple generator will be executed. The `location` arguments may be used to indicate the files are located outside of the the standard directory for transaction. It should match one of the key of the `transaction.vfsmap` dictionary. The `post_finalize` argument can be set to `True` for file generation that must be run after the transaction has been finalized. N©rˆ)rÚgenidÚ filenamesÚgenfuncÚorderr/Ú post_finalizerWs rÚaddfilegeneratorztransaction.addfilegeneratorÁs%€ðJ˜  7¨H°mÐDˆØ&+ˆ×јUÒ#rcó<—||jvr|j|=yy)z=reverse of addfilegenerator, remove a file generator functionNrÊ)rrËs rÚremovefilegeneratorztransaction.removefilegeneratorés%€ð �D×(Ñ(Ñ (Ø×$Ñ$ UÑ+ð )rc óX—d}|tk(rdx}}n|tk(}|tk(}t|jj ««D]Å\}}d}|\}} } } } |r| rŒ|r| sŒ|j | } g} | D]]}||z }|r|j|| ¬«d}n#|j|| ¬«|| f|jv}|j| |dd|¬««Œ_| |Ž|D]}|j«Œ|dd…=|D]}|j«ŒŒÇ|S#|D]}|j«ŒwxYw)NFT)r/rj)Ú atomictempr9) Ú GEN_GROUP_ALLÚGEN_GROUP_POST_FINALIZEÚGEN_GROUP_PRE_FINALIZErFrˆrHrprÈrÂryr"rNÚdiscard)rÚsuffixÚgroupÚanyÚ skip_postÚskip_preÚidrWrÎrÌrÍr/rÏr<Úfilesr•r9r,s rÚ_generatefilesztransaction._generatefilesïsT€àˆà ”MÒ !Ø#(Ð (ˆI™àÔ 7Ñ7ˆHØÔ!7Ñ7ˆIä × 4Ñ 4× :Ñ :Ó <Ö=‰IˆB�؈CØAFÑ >ˆE�9˜g x°ñ™]ØÙ¡-Øà—,‘,˜xÑ(ˆC؈Eð Û%�DؘF‘N�DÙØ×(Ñ(¨¸Ð(ÔAØ%*™ àŸ™ t°h˜Ô?Ø&*¨HÐ%5¸×9NÑ9NÐ%N˜ Ø—L‘LÙ˜D $°4ÀJÔOõð&ñ˜‘Û�AØ—G‘G•Iððš!�Hã�AØ—I‘I•Kñð=>ð@ˆ øó�AØ—I‘I•Kñús Á2BDÄD)cóV—||jvry|jj|«S©Nr)rsrrrI)rr¬s rÚ findoffsetztransaction.findoffsets&€à �4—>‘>Ñ !ØØ�‰×"Ñ" 4Ó(Ð(rcóÞ—|jjd«g}|jj«D]2}|jd«\}}|j |t |«f«Œ4|S)Nró)rÚseekÚ readlinesr¶r"Úint)rrSr_r¬Útroffsets rÚ readjournalztransaction.readjournal!s[€à � ‰ �‰˜Ô؈ؗ‘×%Ñ%Ö'ˆAØŸW™W U›^‰NˆD�(Ø �N‰N˜D¤# h£-Ð0Õ 1ð(ðˆrcó˜—||jvr.|sy|jj|«||j|<nT||jvr;|s)|j|=|jj|«n||j|<n t |«‚|j j d||fz«|j j«y)zn replace can only replace already committed entries that are not pending in the queue Nr¯)rsÚremoverrrJÚKeyErrorrr„r°r«s rÚreplaceztransaction.replace*s¦€ð �4—>‘>Ñ !ÙØØ �N‰N× !Ñ ! $Ô 'Ø$*ˆD�O‰O˜DÒ !Ø �T—_‘_Ñ $ÙØ—O‘O DÐ)Ø—‘×"Ñ" 4Õ(à(.�—‘ Ò%ä˜4“.Ð Ø � ‰ ×ј¨¨f ~Ñ5Ô6Ø � ‰ ×ÑÕrcó�—|xjdz c_|xjdz c_|jj|«|S©Nr)r rlr{r"r™s rÚnestztransaction.nest@s5€à � Š �qÑ� Ø � Š ˜Ñ� Ø � ‰ ×ј4Ô Øˆ rcóø—|jdkDr|xjdzc_|jr|jj«|jdkDr!|jdk(r|j «yyy)Nrr)r rlr{r¥rœr�s rÚreleaseztransaction.releaseGsV€Ø �;‰;˜Š?Ø �LŠL˜AÑ �LØ �;Š;Ø �K‰K�O‰OÔ à �;‰;˜Š?˜tŸ|™|¨qÒ0Ø �K‰K�Mð 1ˆ?rcó —|jdkDSrâ)r r�s rÚrunningztransaction.runningPs€Ø�{‰{˜Q‰Ðrcó"—||j|<y)zöadd a callback to be called when the transaction is pending The transaction will be given as callback's first argument. Category is a unique identifier to allow overwriting an old callback with a newer callback. N)r‰©rÚcategoryÚcallbacks rÚ addpendingztransaction.addpendingSs€ð+3ˆ×јhÒ'rcó—t|j«}|D]8}|jj|«|«}|jxs||_Œ:|xj|j d¬«zc_|jS)zpwrite pending file to temporary version This is used to allow hooks to view a transaction before commits.pending)rÙ)rFr‰r¥rŠrà)rÚ categoriesÚcatrÛs rÚ writependingztransaction.writepending]s{€ô ˜D×1Ñ1Ó2ˆ ÛˆCà0�$×'Ñ'×+Ñ+¨CÓ0°Ó6ˆCØ#×/Ñ/Ò6°3ˆDÕ ðð ×Ò˜D×/Ñ/°{Ð/ÓCÑCÕØ×ÑÐrcó—||jvS)z0check is a callback already exist for a categoryr ©rrøs rÚ hasfinalizeztransaction.hasfinalizejs€ð˜4×1Ñ1Ð1Ð1rcó"—||j|<y)zòadd a callback to be called when the transaction is closed The transaction will be given as callback's first argument. Category is a unique identifier to allow overwriting old callbacks with newer callbacks. Nr r÷s rÚ addfinalizeztransaction.addfinalizeos€ð,4ˆ×јxÒ(rcó"—||j|<y)zþadd or replace a callback to be called after the transaction closed The transaction will be given as callback's first argument. Category is a unique identifier to allow overwriting an old callback with a newer callback. N)r�r÷s rÚ addpostcloseztransaction.addpostclosezs€ð-5ˆ×Ñ Ò)rcó:—|jj|d«S)z1return a postclose callback added before, or NoneN)r�rIrs rÚ getpostcloseztransaction.getpostclose…s€ð×&Ñ&×*Ñ*¨8°TÓ:Ð:rcó"—||j|<y)aadd a callback to be called when the transaction is aborted. The transaction will be given as the first argument to the callback. Category is a unique identifier to allow overwriting an old callback with a newer callback. N)rŽr÷s rÚaddabortztransaction.addabortŠs€ð)1ˆ×јHÒ%rcó"—||j|<y)zÌadds a callback to be called when validating the transaction. The transaction will be given as the first argument to the callback. callback should raise exception if to abort transactionN)rŒr÷s rÚ addvalidatorztransaction.addvalidator•s€ð,4ˆ×јxÒ(rcóÒ—|jdk(r²t|j«D]}|j||«Œd|_|jt¬«|j r=|j }i|_t|«}|D] }|||«Œ|j rŒ=d|_|jt ¬«|xjdzc_|jdk7ry|jj«|jj«|jD]g\}}}}||jvr|r|jd||fz«Œ/|j|} |rŒA|sŒD| j|«sŒV | j|«Œii|_t+«|_|j/«|j0r|j1«d|_|j2j5|j6«r%|j2j|j6«|j2j5|j8«r%|j2j|j8«|jD]d\}} }}||jvr|r|jd||fz«Œ/|j|} |sŒA| j|«sŒS | j|«Œfg|_ d|_|j;|d«d|_t|j<«}|D]}|j<||«Œd|_y#tt t"j$f$r3} |s‚|jd| j'|«| fz«Yd} ~ �Œfd} ~ wwxYw#tt t"j$f$r3} |s‚|jd| j'|«| fz«Yd} ~ �Œgd} ~ wwxYw) zcommit the transactionrN)rÚrs.couldn't remove %s: unknown cache location %s scouldn't remove %s: %s ó-couldn't remove %s: unknown cache location%s T)r rFrŒràr×r‹rÖrrNrƒr€rprmrPr$r;rrrLr rrrErsÚ _writeundorqrnÚisfiler‚rtrxr�) rrøÚ callbacksrürýr_r,r=r1r<ÚinstÚ_fs rrNztransaction.closežs[€ð �;‰;˜!Ò Ü" 4×#9Ñ#9Ö:�Ø0�×&Ñ& xÑ0°Õ6ð;à%)ˆDÔ "Ø × Ñ Ô&<Ð Ô =Ø×(Ò(Ø ×2Ñ2� Ø)+�Ô&Ü# IÓ.� Û%�CØ"�I˜c‘N 4Õ(ð&ð ×(Ó(ð&*ˆDÔ "Ø × Ñ Ô&=Ð Ô >à � Š �qÑ� Ø �;‰;˜!Ò Ø Ø � ‰ ×ÑÔØ ×Ñ×ÑÔ!à×-Ô-‰JˆAˆq�!�QؘŸ ™ Ñ$©Ø— ‘ ØFÈ!ÈQÈÑOôðØ—,‘,˜q‘/ˆCÚš˜sŸz™z¨!�}ðØ—J‘J˜q•Mð.ð"ˆŒÜ›ˆŒØ �‰ÔØ �;Š;Ø �K‰KŒM؈DŒKØ �<‰<× Ñ ˜t×2Ñ2Ô 3Ø �L‰L× Ñ  × 3Ñ 3Ô 4Ø �<‰<× Ñ ˜tŸ}™}Ô -Ø �L‰L× Ñ  § ¡ Ô .Ø×.Ô.‰KˆAˆr�1�aؘŸ ™ Ñ$©Ø— ‘ ðØ  !˜fñ%ôðØ—,‘,˜q‘/ˆCÚ�S—Z‘Z •]ðØ—J‘J˜q•Mð/ð$!ˆÔ؈Œ à �‰˜˜dÔ#؈Œô˜D×3Ñ3Ó4ˆ ÛˆCØ (ˆD× #Ñ # CÑ (¨Õ .ðð#'ˆÕøô] ¤¬%¯+©+Ð6òÙØà—L‘LØ3°s·x±xÀ³{ÀDÐ6IÑI÷òûð ûô8 ¤¬%¯+©+Ð6òÙØà—L‘LØ3°s·x±xÀ³{ÀDÐ6IÑI÷òûð ús0Å>MËNÍNÍ(N Î NÎO&Î3(O!Ï!O&có$—|j«y)z�abort the transaction (generally called on error, or when the transaction is not explicitly committed before going out of scope)N)rœr�s rÚabortztransaction.abortðs €ð � ‰ � rcó>—|jj||f«yrf)rur")rÚvfs_idr¹s rÚ add_journalztransaction.add_journal÷s€à ×Ñ×"Ñ" F¨D >Õ2rcó4‡—‰j€yt‰j‰j‰j¬«dtdtfˆfd„ }d‰jz}‰j j |d«}|jdtz«‰jD]›\}}}}|sŒ |sd }nt|‰jvr|r‰jd ||fz«Œ7‰j|} ||«}tj| j|«| j|«d ¬ «|jd ||||fz«Œ�|j«‰jD]1\} } || «} | j| « | j!| | «Œ3y#t"$rYŒ@wxYw)z4write transaction data for possible future undo callN)r'ÚfnÚreturncó•—tjj|«\}}|j‰j«sJ‚|j ‰j‰j d«}tjj||«Srð)r¸r¹r¶Ú startswithrtrîrvr )rÚbaser•Únew_namers €rr�z(transaction._writeundo..undonames^ø€ÜŸ™Ÿ™ rÓ*‰JˆD�$Ø—?‘? 4§=¡=Ô1Ð 1Ð1Ø—|‘| D§M¡M°4·>±>À1ÓEˆHÜ—7‘7—<‘<  hÓ/Ð /rrrjrkrr Tr´rÄ)rvr5rmrpÚbytesrnr~r„r…r€rr:r rNruÚ tryunlinkÚrenamerO) rr�Úundo_backup_pathÚundobackupfiler_r,r=r1Úur<ÚsrcÚdests ` rrztransaction._writeundoûsƒø€à �>‰>Ð !Ø ÜØ �L‰LØ �L‰LØŸ™õ ð  0œð 0¤5õ 0ð -¨t¯~©~Ñ=ÐØŸ™×*Ñ*Ð+;¸TÓBˆØ×јW¤wÑ.Ô/Ø×-Ô-‰JˆAˆq�!�QÙØÙØ‘à˜DŸL™LÑ(©QØ—L‘Lð Ø#$ a &ñ)ôðØ—l‘l 1‘o�Ù˜Q“K�Ü— ‘ ˜cŸh™h q›k¨3¯8©8°A«;ÀÕFØ × Ñ Ð!4¸¸1¸aÀ°|Ñ!CÕ Dð.ð ×ÑÔØ×+Ô+‰HˆC�Ù˜C“=ˆDð �M‰M˜$Ô ð Ø— ‘ ˜3 Õ%ñ,øô%ò Ùð úsÅ6F Æ FÆFcóD—|j«}d|_d|_|jj «|j j «|j |«} |s|jtd««t|j«D]}|j||«Œd|_ |r|j|«n|j|«d|_ |j|d«d|_y#d|_ |j|d«d|_wxYw)Nrstransaction abort! F)rêr rlrrNrƒÚ_can_quick_abortrmrrFrŽÚ_do_quick_abortÚ_do_full_abortrtrx)rrSÚquickrýs rrœztransaction._abort*sù€Ø×"Ñ"Ó$ˆØˆŒ ؈Œ Ø � ‰ ×ÑÔØ ×Ñ×ÑÔ!à×%Ñ% gÓ.ˆð #ÙØ— ‘ œQÐ6Ó7Ô8ܘd×1Ñ1Ö2�Ø(�×#Ñ# CÑ(¨Õ.ð3ð#'ˆDÔ ÙØ×$Ñ$ WÕ-à×#Ñ# GÔ,à ˆDŒMØ �O‰O˜D %Ô (Ø"ˆD�Oøð!ˆDŒMØ �O‰O˜D %Ô (Ø"ˆD�Oús Á%A7C=Ã="Dcó:—|ry|jD] }|dsŒ yy)z�False if any semantic content have been written on disk True if nothing, except temporary files has been writen on disk.FrT)r€)rrSr-s rr(ztransaction._can_quick_abortBs)€ñ ØØ×$Ô$ˆAØ�‹tÙð%ðrcó°—|j|«sJ‚|jD�cgc] }|drŒ |‘Œ }}|D](\}}}}|j|} |j|«Œ*|j r%|j j|j «|jr&|j j|j«yycc}w#t$rYŒŸwxYw)z4(Silently) do a quick cleanup (see _can_quick_abort)rN)r(r€rpr$rOr‚rnrt) rrSr-Ú tmp_filesrÚold_pathÚtmp_pathÚxxxr<s rr)ztransaction._do_quick_abortMsÉ€à×$Ñ$ WÔ-Ð-Ð-Ø $× 3Ò 3Ó@Ñ 3˜1¸1¸Q»4’QÐ 3ˆ Ð@Û/8Ñ +ˆF�H˜h¨Ø—,‘,˜vÑ&ˆCð Ø— ‘ ˜8Õ$ð09ð × Ò Ø �L‰L× Ñ  × 3Ñ 3Ô 4Ø �=Š=Ø �L‰L× Ñ  § ¡ Õ .ð ùòAøô %ò Ùð ús¢ C­CÁ C à CÃCc ó˜— t|j|j|j|j||j d|j ¬«|jtd««y#t$rT}|jtd««|jtd«tj|«z«Yd}~yd}~wwxYw)z?(Noisily) rollback all the change introduced by the transactionF©rUsrollback completed s(rollback failed - please run hg recover s(failure reason: %s) N) rartrmrnrpr€ryrÚ BaseExceptionrr!)rrSr@s rr*ztransaction._do_full_abort\s£€ð Ü Ø— ‘ Ø— ‘ Ø— ‘ Ø— ‘ ØØ×#Ñ#ØØ $× 5Ñ 5õ ð �L‰LœÐ2Ó3Õ 4øÜò Ø �L‰LœÐGÓHÔ IØ �L‰LÜÐ+Ó,¬z×/FÑ/FÀsÓ/KÑK÷ ñ ûð ús‚A)A,Á, C Á5A CÃC )NNNNNNú )TrF)r)rrF)r5)*Ú__name__Ú __module__Ú __qualname__r–ršržÚpropertyr¡rr£r¨rJr¦rÂr¼rÈrÐrÒrÕràrãrêrîrñrórõrúrþrrrrr r rNrrrrœr(r)r*rrrrcrcÛs4„ðØØØØØØ ó`!òD òðñ.óð.ð ñó ðð ñ!ó ð!ð ñ %ó ð %òð" ò,Bó ð,Bò\"ð ò>ó ð>ð ð ØØò%,ó ð%,ðN ñ,ó ð,ð %(¨}ó*ðX ñ)ó ð)ð  ñó ðð ñó ðð* òó ðò òò3ð ñ  ó ð  ð ñ2ó ð2ð ñ4ó ð4ð ñ5ó ð5ð ñ;ó ð;ð ñ1ó ð1ð ñ4ó ð4ð ñO'ó ðO'ðb ñó ðð  ñ3ó ð3ò-ò^#ò0 ò /órrcs8journal was created by a different version of Mercurial c óþ—|j«}g}|rh|ddd}|dtzk7r|t«|S|ddD]>}|sŒ|dd}|jd«\}}}} |j |||t | «f«Œ@|S)aZparse an (already open) backup file an return contained backup entries entries are in the form: (location, file, backupfile, xxx) :location: the vfs identifier (vfsmap's key) :file: original file path (in the vfs) :backupfile: path of the backup (in the vfs) :cache: a boolean currently always set to False rNrªs%drrå)rçr…ÚBAD_VERSION_MSGr¶r"Úbool) r%r^ÚlinesrTÚverÚliner_r,r=r1s rrrvs›€ð �L‰L‹N€EØ€MÙ Ø�A‰h�s˜ˆmˆØ �5œ7‘?Ò #Ù ”?Ô #ð Ðð ˜a˜b› �Úà  ˜9�DØ!%§¡¨EÓ!2‘J�A�q˜!˜QØ!×(Ñ(¨!¨Q°´4¸³7Ð);Õ<ð "ð Ðrc óR‡—g}g}|j|«5}|j«} ddd« D]3} | jd«\} } |j| t | «f«Œ5d|z} |j| «r&|j| «5}t||«}ddd«‰�ˆfd„}|D�cgc] }||«sŒ |‘Œ}}t|||||||¬«y#1swYŒ¯xYw#t $r*|t d«tj| «z«YŒâwxYw#1swYŒ}xYwcc}w)a‹Rolls back the transaction contained in the given file Reads the entries in the specified file, and the corresponding '*.backupfiles' file, to recover from an incomplete transaction. * `file`: a file containing a list of entries, specifying where to truncate each file. The file should contain a list of fileoffset pairs, delimited by newlines. The corresponding '*.backupfiles' file should contain a list of filebackupfile pairs, delimited by . `checkambigfiles` is a set of (path, vfs-location) tuples, which determine whether file stat ambiguity should be avoided at restoring corresponded files. Nrås couldn't read journal entry %r! rcó.•—‰j|d« Srð)Úmatch)ÚxÚskip_journal_patterns €rrizrollback..ºsø€Ð1×7Ñ7¸¸!¹Ó=Ñ=rr3) r~rçr¶r"rèÚ ValueErrorrrÚbytestrrPrra)rRr&r¬r%rUrDrSrTr^r=r_r,r\Ú backupjournalÚkeeprCs ` rÚrollbackrI�s!ø€ð.€GØ€Mà �‰�TÔ ˜bØ— ‘ “ˆ÷ ã ˆð Ø—7‘7˜5“>‰DˆAˆqØ �N‰N˜Aœs 1›v˜;Õ 'ðð&¨Ñ,€MØ ‡}�}�]Ô#Ø �[‰[˜Ô '¨2Ü-¨f°bÓ9ˆM÷(àÐ'Û=ˆÙ$1Ó=¡M˜q±T¸!µWš Mˆ Ð=ä Ø ØØØØØØ'ö÷' Ð ûô ò Ù ÜÐ6Ó7¼(×:JÑ:JÈ1Ó:MÑMö ð ú÷(Ð 'üò>s4—C¶0C" DÂ/ D$Â=D$ÃCÃ"0DÄDÄD!)sundo)TN)NN)rr¸Úi18nrÚrrrÚutilsrr…rÕr×rÖrrr#r5raÚ transactionalrcr;rrIrrrÚrNs”ðó Û å÷ñõ à €à€ Ø'ÐØ)Ðòð € ò Ðó "ðX Øóv ôrS �$×$Ñ$ôS ñlØ@ó€ò ð>Øô 5r