6hoSrSSKJr SSKJr SSKJrJrJrJ r J r J r J r J r 0r\ R"\5r\"SSSS9 S rS rS rS rg )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. ) annotations)_)commandscopieserror extensionspycompat registrarscmutilsimilarautomv similarity_)defaultc[R"[RS[5nUSR SSS[ S545 g)Nscommits no-automvs%disable automatic file move detection)r wrapcommandrtablemvcheckappendr)uientrys ./usr/lib/python3/dist-packages/hgext/automv.pyextsetupr3s<  " "8>>9g FE !HOO lD!$L"MNrc SnURSS5nUR5 U(dURSS5nSUs=::aS::d!O [R"[ S55eUS:aa[ R"USU[R"U55n[X(5up[ R"US S 9n [X+XUS - 5nUb=URRU5 [ R"US S U5 SSS5 U"X/UQ70UD6sSSS5 $!,(df  N#=f!,(df  g=f) z&Hook to check for moves at commit timeN no_automvFr rrds+automv.similarity must be between 0 and 100T)legacyrelativevaluegY@)popwlock configintrAbortrr matchr byteskwargs_interestingfiles getuipathfn _findrenamesdirstatechanging_files _markchanges) origrrepopatsoptsrenamesdisabled thresholdr%addedremoveduipathfns rrr:sGxx U+H  Y >I (S(kkDE1} Jh&:&:4&@"34!?"..tN&EI4E  --d3 $$T2r7; 4B,t,t,3 $43% s$C D:2D) D:) D7 3D:: EcURUS9nURnURn[R"USUSU5nUVs/sH ofU;dM UPM nnX44$s snf)zFind 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)statusr4r5r pathcopies)r.matcherstatr4r5copyfs rr'r'Zsg ;;W; %D JJEllG   T$ZdW =D /1$QE / > 0s A"A"cv0nUS:ay[R"XX45H^upgnURR(a9URR [ S5U"U5U"U5US-4-5 XeU'M` U(a0URR [ S5[ U5-5 U$)zFind 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 findrenamesrverboser9rlen) r.r6r4r5 similarityr1srcdstscores rr)r)lsGA~&22  OCewwCD}hsmUS[ABCL  q783w<GH NrN)__doc__ __future__rmercurial.i18nr mercurialrrrrr r r r configtable configitemrrr'r)r rrrMs^ (#     ! !+ .   -@$r