Ë ³ˆ)ÿp{û}ãó’—dZddlmZddlmZmZmZmZmZm Z m Z m Z iZ e je «Z e ddd¬«d„Zd „Zd „Zd „Zy ) axcheck for unrecorded moves at commit time (EXPERIMENTAL) This extension checks at commit/amend time if any of the committed files comes from an unrecorded mv. The threshold at which a file is considered a move can be set with the ``automv.similarity`` config option. This option takes a percentage between 0 (disabled) and 100 (files must be identical), the default is 95. é)Ú_)ÚcommandsÚcopiesÚerrorÚ extensionsÚpycompatÚ registrarÚscmutilÚsimilaróautomvó similarityé_)Údefaultcó˜—tjtjdt«}|dj dddt d«f«y)Nscommitéós no-automvs%disable automatic file move detection)rÚ wrapcommandrÚtableÚmvcheckÚappendr)ÚuiÚentrys ú0usr/lib/python3.12/site-packages/hgext/automv.pyÚextsetupr2s<€Ü × "Ñ "¤8§>¡>°9¼gÓ F€EØ ˆ!�H‡O�OØ ˆl˜D¤!Ð$LÓ"MÐNõrc ó —tj|«}d}|jdd«}|j«5|s”|j dd«}d|cxkrdks nt j td««‚|dkDrRtj|d||«}t||«\} } tj|d ¬ «} t|| | | |d z «}|�<|jj|«5tj|d d |«ddd«|||g|¢­itj |«¤Žcddd«S#1swYŒ2xYw#1swYyxYw) z&Hook to check for moves at commit timeNs no_automvFr r réds+automv.similarity must be between 0 and 100T)ÚlegacyrelativevaluegY@©)rÚ byteskwargsÚpopÚwlockÚ configintrÚAbortrr ÚmatchÚ_interestingfilesÚ getuipathfnÚ _findrenamesÚdirstateÚchanging_filesÚ _markchangesÚ strkwargs) ÚorigrÚrepoÚpatsÚoptsÚrenamesÚdisabledÚ thresholdr$ÚaddedÚremovedÚuipathfns rrr9s3€ä × Ñ  Ó %€DØ€GØ�x‰x˜  eÓ,€HØ �‰�ÙØŸ ™  Y° Ó>ˆIؘ Ô( SÔ(Ü—k‘kÜÐDÓEóðð˜1Š}ÜŸ ™  d¨4¡j°$¸Ó=�Ü!2°4¸Ó!?‘��wÜ"×.Ñ.¨tÈÔN�Ü&ؘ( E¨7°IÀÑ4Eó�ð Ð Ø—‘×-Ñ-¨dÕ3ô ×$Ñ$ T¨2¨r°7Ô;÷ 4ñ�B˜Ð@˜tÒ@¤x×'9Ñ'9¸$Ó'?Ñ@÷/ ‰÷ 4Ð3ú÷! ˆús$ºB4EÃ.D8Ä'EÄ8E Ä=EÅE cóÊ—|j|¬«}|j}|j}tj|d|d|«}|D�cgc] }||vsŒ|‘Œ }}||fScc}w)z½Find what files were added or removed in this commit. Returns a tuple of two lists: (added, removed). Only files not *already* marked as moved are included in the added list. )r$ó.N)Ústatusr3r4rÚ pathcopies)r-ÚmatcherÚstatr3r4ÚcopyÚfs rr%r%Xsk€ð �;‰;˜Wˆ;Ó %€DØ �J‰J€EØ�l‰l€Gä × Ñ ˜T $™Z¨¨d©°WÓ =€DáÓ /™�1 ¨$¢ŠQ˜€EÐ /à �'ˆ>Ðùò 0s Á A ÁA cób—i}|dkDrutj||||«D]Z\}}}|jjr9|jj t d«||«||«|dzfz«|||<Œ\|r0|jj t d«t |«z«|S)z¦Find what files in added are really moved files. Any file named in removed that is at least similarity% similar to a file in added is seen as a rename. rs)detected move of %s as %s (%d%% similar) rsdetected move of %d files )r Ú findrenamesrÚverboser8rÚlen) r-r5r3r4Ú similarityr0ÚsrcÚdstÚscores rr'r'jsª€ð€GØ�A‚~Ü&×2Ñ2Ø �%˜ *ö ‰OˆC��eð�w‰w�ŠØ—‘—‘ÜÐCÓDÙ “}¡h¨s£m°U¸S±[ÐAñBôðˆG�CŠLð ñØ �‰�‰”qÐ7Ó8¼3¸w»<ÑGÔHØ €NrN)Ú__doc__Úmercurial.i18nrÚ mercurialrrrrrr r r Ú configtableÚ configitemrrr%r'rrrÚrKs]ðñ õ*÷ ÷ ó ð€ Ø !ˆY× !Ñ ! +Ó .€ á Ø ØØ õòòAò>ó$r