Ë UR‰uCÐãó—dZddlmZddlmZddlmZmZmZm Z m Z m Z m Z mZmZmZdZiZej&e«Zd„Zd„Zd„Zd „Zd „Zd „Zed d dged«ed«fddged«ed«fddged«ed«fddded«fddged«ed«fddged«ed«fdd ged!«ed«fdd"ded#«fdd$ded%«fdd&ded'«fg ej4zed(«d)¬*«d+„«Zy,)-aG allow sparse checkouts of the working directory (EXPERIMENTAL) (This extension is not yet protected by backwards compatibility guarantees. Any aspect may break in future releases until this notice is removed.) This extension allows the working directory to only consist of a subset of files for the revision. This allows specific files or directories to be explicitly included or excluded. Many repository operations have performance proportional to the number of files in the working directory. So only realizing a subset of files in the working directory can improve performance. Sparse Config Files ------------------- The set of files that are part of a sparse checkout are defined by a sparse config file. The file defines 3 things: includes (files to include in the sparse checkout), excludes (files to exclude from the sparse checkout), and profiles (links to other config files). The file format is newline delimited. Empty lines and lines beginning with ``#`` are ignored. Lines beginning with ``%include `` denote another sparse config file to include. e.g. ``%include tests.sparse``. The filename is relative to the repository root. The special lines ``[include]`` and ``[exclude]`` denote the section for includes and excludes that follow, respectively. It is illegal to have ``[include]`` after ``[exclude]``. Non-special lines resemble file patterns to be added to either includes or excludes. The syntax of these lines is documented by :hg:`help patterns`. Patterns are interpreted as ``glob:`` by default and match against the root of the repository. Exclusion patterns take precedence over inclusion patterns. So even if a file is explicitly included, an ``[exclude]`` entry can remove it. For example, say you have a repository with 3 directories, ``frontend/``, ``backend/``, and ``tools/``. ``frontend/`` and ``backend/`` correspond to different projects and it is uncommon for someone working on one to need the files for the other. But ``tools/`` contains files shared between both projects. Your sparse config files may resemble:: # frontend.sparse frontend/** tools/** # backend.sparse backend/** tools/** Say the backend grows in size. Or there's a directory with thousands of files you wish to exclude. You can modify the profile to exclude certain files:: [include] backend/** tools/** [exclude] tools/tests/** é)Ú_)Úsetattr) ÚcmdutilÚcommandsÚerrorÚ extensionsÚ logcmdutilÚmergeÚpycompatÚ registrarÚsparseÚutilsships-with-hg-corecó\—dt_t|«t|«t |«y)NT)r ÚenabledÚ _setupcloneÚ _setuplogÚ _setupadd)Úuis ú0usr/lib/python3.12/site-packages/hgext/sparse.pyÚextsetuprds€Ø„F„Nä�„OÜ ˆb„MÜ ˆb…Mócó—|}t|«sJ‚|turI||jvr#|j|}t||||««n|jd}|turŒI|turt t d«||fz«‚y)ziReplace a filecache property with a new class. This allows changing the cache invalidation condition.rstype '%s' has no property '%s'N)ÚcallableÚobjectÚ__dict__rÚ __bases__ÚAttributeErrorr)ÚclsÚpropnameÚ replacementÚorigclsÚorigs rÚreplacefilecacher#ls“€ð€GÜ �KÔ Ð Ð Ø ”VÑ Ø �s—|‘|Ñ #Ø—<‘< Ñ)ˆDÜ �C˜¡;¨tÓ#4Ô 5Ø Ø�m‰m˜Aшð ”VÒ ð Œf�}ÜÜ Ð/Ó 0°G¸XÐ3FÑ Fó ð ðrcóŽ—tjd}|djd«d„}tjt d|«y)Ns log|historyé)rósparseNs1limit to changesets affecting the sparse checkoutc󪇇—|‰|«}|jjd«r,tj‰«Šˆˆfd„}|j |«}|S)Nr&cóR•—‰|}tˆfd„|j«D««S)Nc3ó4•K—|]}‰|«sŒ |–—Œy­w)N©)Ú.0ÚfÚ sparsematchs €rÚ zD_setuplog.._initialrevs..ctxmatch..�søèø€ÐD¡k ±[Àµ^œ1¡kùsƒ ‘)ÚanyÚfiles)ÚrevÚctxÚrepor-s €€rÚctxmatchz1_setuplog.._initialrevs..ctxmatchŽs#ø€Ø˜3‘i�ÜÓD c§i¡i¤kÓDÓDÐDr)ÚoptsÚgetr ÚmatcherÚfilter)r"r3ÚwoptsÚrevsr4r-s ` @rÚ _initialrevsz_setuplog.._initialrevs‰sHù€Ù�D˜%Ó ˆØ �:‰:�>‰>˜)Ô $Ü Ÿ.™.¨Ó.ˆKõ Eð—;‘;˜xÓ(ˆD؈ rs _initialrevs)rÚtableÚappendrÚ wrapfunctionr )rÚentryr;s rrr~s>€Ü �N‰N˜>Ñ *€EØ ˆ!�H‡O�Oð ôò ô×ÑœJ¨¸ÕFrcóþ‡‡‡ —|jd«Š |jd«Š|jd«Š|jd«}|s(‰ s‰s‰r"ˆˆˆ fd„}tjtd|«|||g|¢­i|¤ŽS)NÚincludeÚexcludeÚenable_profileÚnarrowcóŠ•—tj|j«j«i‰‰‰d¬«||g|¢­i|¤ŽS)NT)rArBÚ enableprofileÚusereporootpaths)r Ú updateconfigr3Ú unfiltered)r"r2ÚargsÚkwargsrFrBrAs €€€rÚ clonesparsez$_clonesparsecmd..clonesparse¢sIø€Ü × Ñ Ø—‘“ ×%Ñ%Ó'ØØØØ+Ø!%õ  ñ˜Ð-˜dÒ- fÑ-Ð -rsupdate)r6rr>Úmergemod) r"rr3rJr5Ú narrow_patrLrFrBrAs @@@rÚ_clonesparsecmdrO˜swú€Ø�h‰h�yÓ!€GØ�h‰h�yÓ!€GØ—H‘HÐ-Ó.€MØ—‘˜(Ó#€Jñ ™7¡g±ö .ô ×Ѥ¨)°[ÔAÙ ��DÐ (˜4Ò ( 4Ñ (Ð(rcó —tjd}|djddgdf«|djddgdf«|djddgd f«tjtjdt «y) Nscloner%róenable-profilesenable a sparse profileóincludesinclude sparse patternóexcludesexclude sparse pattern)rr<r=rÚ wrapcommandrO)rr?s rrr±su€Ü �N‰N˜8Ñ $€EØ ˆ!�H‡O�O�SÐ+¨RÐ1KÐLÔMØ ˆ!�H‡O�O�S˜* bÐ*CÐDÔEØ ˆ!�H‡O�O�S˜* bÐ*CÐDÔEÜ×Ñœ8Ÿ>™>¨8´_ÕErcó¢—tjd}|djd«d„}tjtjd|«y)Nsaddr%)ósr&Ns8also include directories of added files in sparse configcóô—|jd«r[t«}|D]+}tj|«\}}|j |«Œ-t j ||t|«¬«|||g|¢­i|¤ŽS)Nr )rA)r6ÚsetrÚsplitÚaddr rHÚlist) r"rr3Úpatsr5ÚdirsÚpatÚdirnameÚbasenames rÚ_addz_setupadd.._addÄsl€Ø �8‰8�HÔ Ü“5ˆDÛ�Ü$(§J¡J¨s£OÑ!�˜Ø—‘˜Õ!ðô × Ñ   d´D¸³JÕ ?Ù�B˜Ð,˜tÒ, tÑ,Ð,r)rr<r=rrT)rr?ras rrr¹sB€Ü �N‰N˜6Ñ "€EØ ˆ!�H‡O�Oð ôò-ô×Ñœ8Ÿ>™>¨6°4Õ8rs debugsparseóIrRs$include files in the sparse checkoutsPATTERNóXrSs$exclude files in the sparse checkoutódódeletesdelete an include/exclude ruleófóforceFs.allow changing rules even with pending changesrrQsenables the specified profilesdisable-profilesdisables the specified profiles import-rulessimports rules from a files clear-ruless"clears local include/exclude rulesórefreshs,updates the working after sparseness changesóresetsmakes the repo full agains [--OPTION]T)Ú helpbasicc óü—tj|«}|jd«}|jd«}|jd«}|jd«}|jd«}|jd«}|jd«} |jd«} |jd «} |jd «} tj|ddd «} t |xs|xs| xs | xs|xs|«}t |t | «g«}|d kDrtjtd ««‚d |_ |dk(r»|jjd«r‚|j|jjd«dz«tj |«}|r=|jtd««|jdj#|«dz«ytjtd««‚|rtj$||||| | |||¬« |rtj&||||¬«| rtj(||¬«| r™ |j+«}tj,t.tj0||j«tj2|«|¬««}tj4|||d|d |d¬«|j7«|` y|` y#j7«wxYw)a”make the current checkout sparse, or edit the existing checkout The sparse command is used to make the current checkout sparse. This means files that don't meet the sparse condition will not be written to disk, or show up in any working copy operations. It does not affect files in history in any way. Passing no arguments prints the currently applied sparse rules. --include and --exclude are used to add and remove files from the sparse checkout. The effects of adding an include or exclude rule are applied immediately. If applying the new rule would cause a file with pending changes to be added or removed, the command will fail. Pass --force to force a rule change even with pending changes (the changes on disk will be preserved). --delete removes an existing include/exclude rule. The effects are immediate. --refresh refreshes the files on disk based on the sparse rules. This is only necessary if .hg/sparse was changed by hand. --enable-profile and --disable-profile accept a path to a .hgsparse file. This allows defining sparse checkouts and tracking them inside the repository. This is useful for defining commonly used sparse checkouts for many people to use. As the profile definition changes over time, the sparse checkout will automatically be updated appropriately, depending on which changeset is checked out. Changes to .hgsparse are not applied until they have been committed. --import-rules accepts a path to a file containing rules in the .hgsparse format, allowing you to add --include, --exclude and --enable-profile rules in bulk. Like the --include, --exclude and --enable-profile switches, the changes are applied immediately. --clear-rules removes all local include and exclude rules, while leaving any enabled profiles in place. Returns 0 if editing the sparse checkout succeeds. rRrSrgsenable_profilesdisable_profiles import_ruless clear_rulesrerhrir%stoo many flags specifiedTrr&ó s/Temporarily Included Files (for merge/rebase): Ns@the debugsparse command is only supported on sparse repositories)rArBÚresetÚdeleterFÚdisableprofileÚforce)rpé)ÚaddedÚdroppedÚ conflicting)r Ú byteskwargsr6rÚcheck_at_most_one_argÚboolÚsumrÚAbortrÚ _has_sparseÚvfsÚexistsÚstatusÚreadr ÚreadtemporaryincludesÚjoinrHÚimportfromfilesÚ clearrulesÚwlockÚmaplistÚlenÚ refreshwdirr7Ú printchangesÚrelease)rr3r5rArBrprFroÚ importrulesr‚rnÚrefreshrmÚactionrHÚcountÚtemporaryincludesrƒÚfcountss rÚ debugsparser�Ðs¯€ôR × Ñ  Ó %€DØ�h‰h�zÓ"€GØ�h‰h�zÓ"€GØ �H‰H�XÓ €EØ—H‘HÐ.Ó/€MØ—X‘XÐ0Ó1€NØ—(‘(˜?Ó+€KØ—‘˜.Ó)€JØ �X‰X�iÓ €FØ�h‰h�zÓ"€GØ �H‰H�XÓ €EÜ × *Ñ *Ø ˆo˜~¨zó€FôØÒP�7ÒP˜fÒP¨ÒP°ÒPÀ.ó€Lô �œt F›|Ð,Ó -€EØ ˆq‚yÜ�k‰kœ!Ð7Ó8Ó9Ð9ð€DÔà �‚zØ �8‰8�?‰?˜9Ô %Ø �I‰I�d—h‘h—m‘m IÓ.°Ñ6Ô 7Ü &× <Ñ <¸TÓ BÐ Ù Ø— ‘ ÜÐIÓJôð— ‘ ˜5Ÿ:™:Ð&7Ó8¸5Ñ@ÔBØ ä—+‘+Üð,óóð ñÜ×ÑØ Ø ØØØØØ'Ø)Øõ ñÜ×јt T¨;¸eÕDáÜ×ј$ eÕ,áð Ø—J‘J“LˆEÜ×&Ñ&ÜÜ×"Ñ"ؘ$Ÿ+™+›-¬¯©¸Ó)=ÀUôóˆGô × Ñ ØØØ˜a‘jØ ™ Ø# A™Jõ  ð �M‰MŒOà ÑˆÑøð �M‰M�Oús ÉBK)Ë)K;N)Ú__doc__Úmercurial.i18nrÚmercurial.pycompatrÚ mercurialrrrrr r rMr r r rÚ testedwithÚcmdtableÚcommandrr#rrOrrÚ templateoptsr�r*rrÚr˜sÁðñ@õFÝ&÷ ÷ ÷ ð"#€ à €Ø ˆ)× Ñ ˜HÓ %€òò ò$Gò4)ò2Fò9ñ. Øð Ø Ø Ù Ð5Ó 6Ù ˆj‹Mð  ð Ø Ø Ù Ð5Ó 6Ù ˆj‹Mð  ð Ø Ø Ù Ð/Ó 0Ù ˆj‹Mð  ð Ø Ø Ù Ð?Ó @ð  ð Ø Ø Ù Ð.Ó /Ù ˆj‹Mð  ð Ø Ø Ù Ð/Ó 0Ù ˆj‹Mð  ð Ø Ø Ù Ð*Ó +Ù ˆj‹Mð  ð ˆn˜e¡QÐ'LÓ%MÐNà Ø Ø Ù Ð=Ó >ð  ð ˆh˜™qÐ!=Ó>Ð?ðq9ðt×Ññu:ñv€mÓØô}?ñ@yóA?ñ@yr