Ë œÑù�ÖOã óJ—dZddlZddlmZddlmZddlmZmZm Z ddl m Z dZ iZ e je «Zedd d ¬ «ejd ej «Zd ddœZdddœZd"d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZeeeeeeeedœZd„Zd„Zd„Z d„Z!d „Z"d!„Z#y)#aperform automatic newline conversion (DEPRECATED) Deprecation: The win32text extension requires each user to configure the extension again and again for each clone since the configuration is not copied when cloning. We have therefore made the ``eol`` as an alternative. The ``eol`` uses a version controlled file for its configuration and each clone will therefore use the right settings from the start. To perform automatic newline conversion, use:: [extensions] win32text = [encode] ** = cleverencode: # or ** = macencode: [decode] ** = cleverdecode: # or ** = macdecode: If not doing conversion, to make sure you do not commit CRLF/CR by accident:: [hooks] pretxncommit.crlf = python:hgext.win32text.forbidcrlf # or pretxncommit.cr = python:hgext.win32text.forbidcr To do the same check on a server to prevent CRLF/CR from being pushed or pulled:: [hooks] pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr éN)Ú_)Úshort)ÚcmdutilÚ extensionsÚ registrar)Ú stringutilsships-with-hg-coreó win32textówarnT)Údefaults (^|[^ ]) sCRLFsCR)ó ó scleversmaccó —||vrJ|rG|rD|rA|jtd«|t||jj d«fz«yyyyy)NsÂWARNING: %s already has %s line endings and does not need EOL conversion by the win32text plugin. Before your next commit, please reconsider your encode/decode settings in Mercurial.ini or %s. shgrc)ÚwarnrÚ newlinestrÚvfsÚjoin)ÚsÚnewlineÚuiÚrepoÚfilenames ú3usr/lib/python3.12/site-packages/hgext/win32text.pyÚ checknewlinerMsZ€ð �!�|™™x©DØ �‰Ü ðFó 𠜠GÑ,¨d¯h©h¯m©m¸GÓ.DÐEñ  Fõ ð-1˜x˜€|óc óH—t|dfi|¤Žtjd|«S)Nr s\1 )rÚ re_single_lfÚsub©rÚcmdÚkwargss rÚ dumbdecoder!^s$€Ü��GÑ&˜vÒ&ä × Ñ ˜J¨Ó *Ð*rcó&—|jdd«S)Nr ó ©Úreplace©rrs rÚ dumbencoder'ds€Ø �9‰9�W˜eÓ $Ð$rc ó@—t|dfi|¤Ž|jdd«S©Nr r#)rr%rs rÚ macdumbdecoder*hs"€Ü��EÑ$˜VÒ$Ø �9‰9�U˜EÓ "Ð"rcó&—|jdd«Sr)r$r&s rÚ macdumbencoder,ms€Ø �9‰9�U˜EÓ "Ð"rc óJ—tj|«s t||fi|¤ŽS|S©N)rÚbinaryr!rs rÚ cleverdecoder0qs'€Ü × Ñ ˜QÔ Ü˜!˜SÑ+ FÑ+Ð+Ø €HrcóH—tj|«s t||«S|Sr.)rr/r'r&s rÚ cleverencoder2ws"€Ü × Ñ ˜QÔ Ü˜!˜SÓ!Ð!Ø €Hrc óJ—tj|«s t||fi|¤ŽS|Sr.)rr/r*rs rÚ macdecoder4}s'€Ü × Ñ ˜QÔ Ü˜Q Ñ. vÑ.Ð.Ø €HrcóH—tj|«s t||«S|Sr.)rr/r,r&s rÚ macencoder6ƒs"€Ü × Ñ ˜QÔ Ü˜Q Ó$Ð$Ø €Hr)s dumbdecode:s dumbencode:s cleverdecode:s cleverencode:smacdumbdecode:smacdumbencode:s macdecode:s macencode:c ó¼—d}t«}|d}t|jj«||j «dz d«D]Æ} || } | j «D]¬} | |vs| |vs| | vrŒ|j | «| | j«} tj| «rŒJ|| vsŒO|s$|jtd«t|z«|jtd«t| j««| fz«d}Œ®ŒÈ|rF|dk(rAt|j«} t |}|jtd «| | ||fz«|S) NFstipééÿÿÿÿs=attempt to commit or push text file(s) using %s line endings s in %s: %s Tspretxnchangegroupsõ To prevent this mistake in your local repository, add to Mercurial.ini or .hg/hgrc: [hooks] pretxncommit.%s = python:hgext.win32text.forbid%s and also consider adding: [extensions] win32text = [encode] ** = %sencode: [decode] ** = %sdecode: )ÚsetÚrangeÚ changelogÚtiprevÚrevÚfilesÚaddÚdatarr/rrrrÚnodeÚlowerÚ filterstr)rrÚhooktyperBrr ÚhaltÚseenÚtipr>ÚcÚfrAÚcrlfÚfilters rÚ forbidnewlinerM•s[€Ø €DÜ ‹5€Dð ˆv‰,€CÜ�T—^‘^×*Ñ*Ó,¨d°4©j¯n©nÓ.>ÀÑ.BÀBÖGˆØ �‰IˆØ—‘–ˆAØ�D‰y˜A S™L¨A°Q©JØØ �H‰H�QŒKØ�Q‘4—9‘9“;ˆDÜ×$Ñ$ TÕ*¨w¸$ªÙØ—G‘GÜð7óô% WÑ-ñ .ôð—‘œ˜.Ó)¬U°1·6±6³8«_¸aÐ,@Ñ@ÔAØ‘ñðHñ$ �Ð0Ò0ܘ'Ñ"×(Ñ(Ó*ˆÜ˜7Ñ#ˆØ �‰Ü ð $ó ð �T˜6 6Ð*ñ! +ô ð& €Krc ó"—t||||dfi|¤ŽS)Nr ©rM©rrrErBr s rÚ forbidcrlfrQÉs€Ü ˜˜T 8¨T°7Ñ E¸fÑ EÐErc ó"—t||||dfi|¤ŽS)Nr rOrPs rÚforbidcrrSÍs€Ü ˜˜T 8¨T°5Ñ C¸FÑ CÐCrcó‚—|j«sytj«D]\}}|j||«Œyr.)ÚlocalÚ_filtersÚitemsÚ adddatafilter)rrÚnameÚfns rÚ reposetupr[Ñs3€Ø �:‰:Œ<ØÜ—N‘NÖ$‰ˆˆbØ ×ј4 Õ$ñ%rcóü—|j}|ddD]V} |j| «} | €Œ| jsŒ$|j| | j| j| j ¬«ŒX||||||g|¢­i|¤ŽS)Nsrevertr)Ú p1_trackedÚp2_info)ÚdirstateÚ get_entryr]Úhacky_extension_update_fileÚtrackedr^) ÚorigrÚctxÚnamesÚuipathfnÚactionsÚargsr ÚdsrÚentrys rÚ wrap_revertrkØsŠ€à �‰€BؘIÑ& qÔ)ˆØ— ‘ ˜XÓ&ˆØ Ñ Ø×Óð×.Ñ.ØØ—M‘MØ$×/Ñ/Ø!ŸM™Mð /õð*ñ" ��c˜5 (¨GÐ E°dÒ E¸fÑ EÐErcóš—|jdd«r|jtd««tjt dt «y)Nr r sKwin32text is deprecated: https://mercurial-scm.org/wiki/Win32TextExtension Ú_performrevert)Ú configboolrrrÚ wrapfunctionrrk)rs rÚextsetuprpïs?€à ‡}�}�\ 7Ô+Ø �‰Ü ðGó ô ô ×ÑœGÐ%5´{ÕCr)NNN)$Ú__doc__ÚreÚmercurial.i18nrÚmercurial.noderÚ mercurialrrrÚmercurial.utilsrÚ testedwithÚ configtableÚ configitemÚcompileÚ MULTILINErrrDrr!r'r*r,r0r2r4r6rVrMrQrSr[rkrp©rrÚr}sñðñ"óJ ÝÝ ÷ñõ 'ð #€ à€ Ø !ˆY× !Ñ ! +Ó .€ á ØØ Ø õðˆr�z‰z˜.¨"¯,©,Ó7€ à uÑ -€ Ø¨Ñ /€ ó ò"+ò %ò#ò #ò ò  ò  ò  ðØØ"Ø"Ø$Ø$ØØñ €ò1òhFòDò%òFó. Dr