Ë p(šƒß8²úã ó—dZddlZddlZddlZddlmZddlmZddlm Z ddl m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZmZddlm Z iZ!ejDe!«Z"d Z#d Z$d Z%d Z&d Z'ddddddœZ(ejR«Z)iZ*ejVe*«Z+e+ddd¬«e)dejX¬«d„«Z-e)dejX¬«d„«Z.e)dejX¬«d„«Z/dd iZ0d!„Z1d"„Z2d#„Z3Gd$„d%«Z4Gd&„d'ej «Z5d(„Z6d)„Z7e"d*d+d,ded-«fd.d/d ed0«ed1«fged2«d3¬4«d5„«Z8e"d6e jred7«d3¬8«d9„«Z:e"d:d;dd?ded@«fdAdBdedC«fge jrzedD«d3¬8«dE„«Z;e"dFe jredG«d3¬8«dH„«ZdK„Z?dL„Z@dSdM„ZAdN„ZBdO„ZCdP„ZDdQ„ZEy)TaCexpand keywords in tracked files This extension expands RCS/CVS-like or self-customized $Keywords$ in tracked text files selected by your configuration. Keywords are only expanded in local repositories and not stored in the change history. The mechanism can be regarded as a convenience for the current user or for archive distribution. Keywords expand to the changeset data pertaining to the latest change relative to the working directory parent of each file. Configuration is done in the [keyword], [keywordset] and [keywordmaps] sections of hgrc files. Example:: [keyword] # expand keywords in every python file except those matching "x*" **.py = x* = ignore [keywordset] # prefer svn- over cvs-like default keywordmaps svn = True .. note:: The more specific you are in your filename patterns the less you lose speed in huge repositories. For [keywordmaps] template mapping and expansion demonstration and control run :hg:`kwdemo`. See :hg:`help templates` for a list of available templates and filters. Three additional date template filters are provided: :``utcdate``: "2006/09/18 15:13:13" :``svnutcdate``: "2006-09-18 15:13:13Z" :``svnisodate``: "2006-09-18 08:13:13 -700 (Mon, 18 Sep 2006)" The default template mappings (view with :hg:`kwdemo -d`) can be replaced with customized keywords and templates. Again, run :hg:`kwdemo` to control the results of your configuration changes. Before changing/disabling active keywords, you must run :hg:`kwshrink` to avoid storing expanded keywords in the change history. To force expansion after enabling it, or a configuration change, run :hg:`kwexpand`. Expansions spanning more than one line and incremental expansions, like CVS' $Log$, are not supported. A keyword template map "Log = {desc}" expands to the first line of the changeset description. éN)Ú_)Úgetattr)Ú webcommands)ÚcmdutilÚcontextÚdispatchÚerrorÚ extensionsÚfilelogÚ localrepoÚ logcmdutilÚmatchÚpatchÚpathutilÚpycompatÚ registrarÚscmutilÚtemplatefiltersÚ templateutilÚutil)ÚdateutilÚ stringutil)Ú timestampsships-with-hg-coresgadd addremove annotate bundle export grep incoming init log outgoing push tip verify convert email glogs/annotate changeset rev filediff diff comparisonsfmerge kwexpand kwshrink record qrecord resolve transplant unshelve rebase graft backout histedit fetchsrecords green boldscyan bold underlinesgreensboldsnone)skwfiles.enabledskwfiles.deletedskwfiles.enabledunknownskwfiles.ignoredskwfiles.ignoredunknownó keywordsetósvnF)Údefaultsutcdate)Úintypecó<—d}tj|ddf|«S)z?Date. Returns a UTC-date in this format: "2009/08/18 11:00:13".s%Y/%m/%d %H:%M:%Sr©rÚdatestr©ÚdateÚ dateformats ú1usr/lib/python3.12/site-packages/hgext/keyword.pyÚutcdater%¥s$€ð&€JÜ × Ñ ˜T !™W a˜L¨*Ó 5Ð5ós svnisodatecó.—tj|d«S)z]Date. Returns a date in this format: "2009-08-18 13:00:13 +0200 (Tue, 18 Aug 2009)". s%%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)r)r"s r$Ú svnisodater(­s€ô × Ñ ˜DÐ"JÓ KÐKr&s svnutcdatecó<—d}tj|ddf|«S)zIDate. Returns a UTC-date in this format: "2009-08-18 11:00:13Z". s%Y-%m-%d %H:%M:%SZrrr!s r$Ú svnutcdater*¶s$€ð '€JÜ × Ñ ˜T !™W a˜L¨*Ó 5Ð5r&óhgcmdr&cóz—dddœ}ddddddd œd d ddd d œf}|j||jd d««|S)zBReturns default keywordmaps according to keywordset configuration.s {node|short}s {author|user})sRevisionsAuthors{date|utcdate}s{file|basename},vs{root}/{file},vs;{file|basename},v {node|short} {date|utcdate} {author|user}s9{root}/{file},v {node|short} {date|utcdate} {author|user})óDatesRCSfilesRCSFilesSourceóIdsHeaders{date|svnisodate}s>{file|basename},v {node|short} {date|svnutcdate} {author|user})r-r.sLastChangedRevisions LastChangedBysLastChangedDaterr)ÚupdateÚ configbool)ÚuiÚ templatesÚkwsetss r$Ú_defaultkwmapsr4Ãsm€ð%Ø#ñ€Ið 'Ø,Ø,à)ØQØSñ ð*ØTØ$3Ø.Ø 4ñ  ð€Fð$×Ñ�V˜BŸM™M¨-¸Ó@ÑAÔBØ Ðr&có—|d|«S)zlHelper for keyword expansion removal in text. Depending on subfunc also returns number of substitutions.s$\1$©)ÚtextÚsubfuncs r$Ú _shrinktextr9ßs€ñ �8˜TÓ "Ð"r&có–—|jD�cgc] }||vsŒ|‘Œ }}|jD�cgc] }||vsŒ|‘Œ }}||fScc}wcc}w)zªRetrieves modified and added files from a working directory state and returns the subset of each contained in given changed files retrieved from a change context.)ÚmodifiedÚadded)ÚwstatusÚchangedÚfr;r<s r$Ú _preselectr@åsV€ð#×+Ò+Ó<Ñ+�a¨q°Gª|’Ð+€HÐ<ØŸ š Ó 6™ �1¨¨gªŠQ˜ €EÐ 6Ø �Uˆ?Ðùò=ùÚ 6s� A™A­ A·AcóÄ—eZdZdZd„Zed„«Zejd„«Z ejd„«Z ejd„«Z d„Z d„Z d „Zd „Zdd „Zd „Zd „Zd„Zy)Ú kwtemplaterzr Sets up keyword templates, corresponding keyword regex, and provides keyword substitution functions. cóx—||_tj|«|_t j|j dg||«|_t dtj«v|_ d|_ |jjd«}|rt|«|_ yt|j«|_ y)Nr&r+Fó keywordmaps)r1ÚweakrefÚrefÚ_reporÚrootÚkwtoolsÚ restrictedÚsplitÚrestrictÚ postcommitÚ configitemsÚdictr2r4)Úselfr1ÚrepoÚincÚexcÚkwmapss r$Ú__init__zkwtemplater.__init__ôsˆ€ØˆŒÜ—[‘[ Ó&ˆŒ Ü—[‘[ §¡¨C°°S¸#Ó>ˆŒ Ü Ñ)¬Z×-=Ñ-=Ó-?Ð?ˆŒ ؈Œà—‘×$Ñ$ ^Ó4ˆÙ Ü! &›\ˆD�Nä+¨D¯G©GÓ4ˆD�Nr&có"—|j«S©N)rG©rPs r$rQzkwtemplater.repos€à�z‰z‹|Ðr&có„—djttj|jj «««S)z+Returns bar-separated and escaped keywords.ó|)ÚjoinÚmaprÚreescaper2ÚkeysrXs r$Úescapezkwtemplater.escapes-€ð�y‰yœœZ×0Ñ0°$·.±.×2EÑ2EÓ2GÓHÓIÐIr&cóF—tjd|jz«S)z&Returns regex for unexpanded keywords.s\$(%s)\$©ÚreÚcompiler_rXs r$Úrekwzkwtemplater.rekw s€ô�z‰z˜,¨¯©Ñ4Ó5Ð5r&cóF—tjd|jz«S)z$Returns regex for expanded keywords.s\$(%s): [^$\n\r]*? \$rarXs r$Úrekwexpzkwtemplater.rekwexps€ô�z‰zÐ3°d·k±kÑAÓBÐBr&có(‡‡‡—ˆˆˆfd„}|||«S)z1Replaces keywords in data with expanded template.có‚•—|jd«}tj‰j‰j‰j |«}‰jj «|j‰‰jj‰¬«tj‰jj««}d||fzS)Né)rHÚfiles $%s: %s $) Úgroupr Ú maketemplaterr1rQr2Ú pushbufferÚshowrHrÚ firstlineÚ popbuffer)ÚmobjÚkwÚctÚekwÚctxÚpathrPs €€€r$Úkwsubz%kwtemplater.substitute..kwsubs�ø€Ø—‘˜A“ˆBÜ×)Ñ)Ø—‘˜Ÿ™ D§N¡N°2Ñ$6óˆBð �G‰G× Ñ Ô Ø �G‰G�C˜dŸi™iŸn™n°4ˆGÔ 8Ü!×+Ñ+¨D¯G©G×,=Ñ,=Ó,?Ó@ˆCØ 2 s )Ñ+Ð +r&r6)rPÚdatarvrur8rws` `` r$Ú substitutezkwtemplater.substitutesú€ö ,ñ�u˜dÓ#Ð#r&cóX—|jj||¬«j«S)z4Similar to filelog.linkrev, but returns a changectx.)Úfileid)rQÚfilectxÚ changectx)rPrvr{s r$Úlinkctxzkwtemplater.linkctx#s%€à�y‰y× Ñ  ¨fÐ Ó5×?Ñ?ÓAÐAr&cóÞ—|js`|j|«rOtj|«s:|j ||«}|j ||||j j«S|S)z$Returns data with keywords expanded.)rLrrÚbinaryr~ryrdÚsub)rPrvÚnoderxrus r$Úexpandzkwtemplater.expand'sW€ð— ’ Ø— ‘ ˜4Ô Ü×%Ñ% dÔ+à—,‘,˜t TÓ*ˆCØ—?‘? 4¨¨s°D·I±I·M±MÓBÐ B؈ r&cóx—|D�cgc]*}|j|«sŒd|j|«vsŒ)|‘Œ,c}Scc}w)zkReturns subset of candidates which are configured for keyword expansion but are not symbolic links.ól)rÚflags)rPÚcandrur?s r$Úiskwfilezkwtemplater.iskwfile2s5€ñ ÓN™4�a 4§:¡:¨a¥=°TÀÇÁÈ1ÃÒ5M’˜4ÑNÐNùÒNs …7œ7°7cóü—|js|s |jr|j||«}|sy|jxr|}|js|r|r|j«}|js|r |j}n |j }|r t d«} n t d«} |jd} |D�]H} |jr.|jj| «j| «} n|jj| «} tj| «rŒo|rœ|j«} |r|j| | «}nR|jrFt| «dkDr8| D]3}| |vsŒ|| j!|| «rŒ || j#«}n|j%| | ||j&«\} }n7|jr|j)| «}nt+| |j&«\} }|s�ŒH|j,j/| | z«|jj1| dd¬«}|j3| «|j5«|rm| | j7«}|j8}|j:}t=j>|«}|||f}|jj@jC| |«�Œ|js�Œ"|jj@jE| d¬«�ŒKy) z7Overwrites selected files expanding/shrinking keywords.Ns"overwriting %s expanding keywords s"overwriting %s shrinking keywords riswbT)Ú atomictemp)Ú p1_tracked)#rLrMrˆÚmanifestrdrfrrQrjÚreadÚwreadrr€Úparentsr~ÚlenÚcmpr}ryÚsubnÚsearchr9r1ÚnoteÚwvfsÚwriteÚcloseÚlstatÚst_modeÚst_sizerÚmtime_ofÚdirstateÚ set_cleanÚupdate_file_p1)rPruÚ candidatesÚlookuprƒrdÚkwcmdÚmfÚre_kwÚmsgÚwctxr?rxr�ÚpÚfoundÚfpÚsÚmodeÚsizeÚmtimeÚ cache_datas r$Ú overwritezkwtemplater.overwrite7sZ€à �=Š=™F d§o¢oØŸ™ z°3Ó7ˆJÙØ Ø— ‘ Ò( &ˆØ �=Š=™F¡vØ—‘“ˆBØ �=Š=™DØ—I‘I‰Eà—L‘LˆEÙ ÜÐ:Ó;‰CäÐ:Ó;ˆCØ�y‰y˜‰ˆÜˆAØ�}Š}Ø—y‘y—~‘~ aÓ(×-Ñ-¨b°©eÓ4‘à—y‘y—‘ qÓ)�Ü× Ñ  Ô&ØÙØŸ+™+›-�ÙØŸ,™, q¨"¨Q©%Ó0‘CØ—]’]¤s¨7£|°aÒ'7ó%˜Ø š6¨!¨A©$¯(©(°3°q±6Õ*:Ø"# A¡$§.¡.Ó"2˜CÙ!ð%ð#Ÿo™o¨d°A°s¸E¿J¹JÓG‘ �‘eØ—’ØŸ ™  TÓ*‘ä)¨$°· ± Ó;‘ ��eÛØ—‘— ‘ ˜S 1™WÔ%Ø—Y‘Y—^‘^ A u¸�^Ó>�Ø—‘˜”Ø—‘” ÙØ˜Q™Ÿ ™ ›�AØŸ9™9�DØŸ9™9�DÜ%×.Ñ.¨qÓ1�EØ"&¨¨eÐ!4�JØ—I‘I×&Ñ&×0Ñ0°°JÖ?Ø—_”_Ø—I‘I×&Ñ&×5Ñ5°aÀDÐ5ÖIñKr&có’—|j|«r5tj|«s t||jj «S|S)z4Returns text with all keyword substitutions removed.)rrr€r9rfr�)rPÚfnamer7s r$Úshrinkzkwtemplater.shrinkps7€à �:‰:�eÔ ¤Z×%6Ñ%6°tÔ%<ܘt T§\¡\×%5Ñ%5Ó6Ð 6؈ r&cóÒ—|j|«rUdj|«}tj|«s/t ||j j «jd«S|S)z1Returns lines with keyword substitutions removed.r&T)rr[rr€r9rfr�Ú splitlines)rPr°Úlinesr7s r$Ú shrinklineszkwtemplater.shrinklinesvsP€à �:‰:�eÔ Ø—8‘8˜E“?ˆDÜ×$Ñ$ TÔ*Ü" 4¨¯©×)9Ñ)9Ó:×EÑEÀdÓKÐK؈ r&cóB—|jr|j||«S|S)z]If in restricted mode returns data read from wdir with keyword substitutions removed.)rLr±)rPr°rxs r$rŽzkwtemplater.wread~s!€ð �=Š=Ø—;‘;˜u dÓ+Ð +؈ r&N©F)Ú__name__Ú __module__Ú __qualname__Ú__doc__rUÚpropertyrQrÚ propertycacher_rdrfryr~rƒrˆr®r±rµrŽr6r&r$rBrBîsž„ñò 5ðñóðð ×ÑñJóðJð ×Ññ6óð6ð ×ÑñCóðCò $òBò òOó 7Jòrò ór&rBcóB‡—eZdZdZˆfd„Zˆfd„Zdˆfd„ Zˆfd„ZˆxZS)Ú kwfilelogz† Subclass of filelog to hook into its read, add, cmp methods. Keywords are "stored" unexpanded, and processed on reading. cóJ•—tt|� ||«||_||_yrW)Úsuperr¿rUÚkwtrv)rPÚopenerrÂrvÚ __class__s €r$rUzkwfilelog.__init__Œs"ø€Ü Œi˜Ñ'¨°Ô5؈ŒØˆ� r&cóž•—tt|� |«}|j|«r|S|jj |j ||«S)z&Expands keywords when reading filelog.)rÁr¿r�ÚrenamedrÂrƒrv)rPr‚rxrÄs €r$r�zkwfilelog.read‘s@ø€ä”Y Ñ*¨4Ó0ˆØ �<‰<˜Ô ؈KØ�x‰x�‰˜tŸy™y¨$°Ó5Ð5r&c󀕗|jj|j|«}tt|�||||||«S)z5Removes keyword substitutions when adding to filelog.)rÂr±rvrÁr¿Úadd)rPr7ÚmetaÚtrÚlinkÚp1Úp2rÄs €r$rÈz kwfilelog.add˜s7ø€à�x‰x�‰˜tŸy™y¨$Ó/ˆÜ”Y Ñ)¨$°°b¸$ÀÀBÓGÐGr&cóx•—|jj|j|«}tt|�||«S)z-Removes keyword substitutions for comparison.)rÂr±rvrÁr¿r‘)rPr‚r7rÄs €r$r‘z kwfilelog.cmp�s/ø€à�x‰x�‰˜tŸy™y¨$Ó/ˆÜ”Y Ñ)¨$°Ó5Ð5r&)NN) r¸r¹rºr»rUr�rÈr‘Ú __classcell__)rÄs@r$r¿r¿†s"ø„ñô ô 6õH÷ 6ð6r&r¿có`—|r`tj|«}|jtj|||«d|j d«xs|j d«¬«S|j d«rtjtd««‚tjtd««‚)z\Bails out if [keyword] configuration is not active. Returns status of working directory.Tóunknownóall)rÚcleanÚunknownókeywords[keyword] patterns cannot matchs no [keyword] patterns configured) rÚ byteskwargsÚstatusrrÚgetrNr ÚAbortr)r1rQr¥rÂÚpatsÚoptss r$Ú_statusrÜ£s’€ñ Ü×#Ñ# DÓ)ˆØ�{‰{Ü—-‘-  d¨DÓ1ØØ—H‘H˜ZÓ(Ò<¨D¯H©H°VÓ,<ðó ð ð  ‡~�~�jÔ!Ü�k‰kœ!Ð>Ó?Ó@Ð@Ü �+‰+”aÐ;Ó<Ó =Ð=r&cóB—|d}t|j««dkDrtjt d««‚t |dd«}|j «5|jj|«5t||||g|¢­i|¤Ž}|js$|js|js |jrtjt d««‚|j||jd|«ddd«ddd«y#1swYŒxYw#1swYyxYw)z7Selects files and passes them to kwtemplater.overwrite.Nrisoutstanding uncommitted mergeÚ _keywordkwtsoutstanding uncommitted changesT)r�r�r rÙrrÚwlockrœÚchanging_filesrÜr;r<ÚremovedÚdeletedr®rÓ)r1rQrƒrÚrÛr¥rÂr×s r$Ú _kwfwriterã²s΀à �‰:€DÜ ˆ4�<‰<‹>Ó˜QÒÜ�k‰kœ!Ð<Ó=Ó>Ð>Ü �$˜  tÓ ,€CØ �‰��t—}‘}×3Ñ3°DÕ9ܘ˜T 4¨Ð<¨tÒ<°tÑ<ˆØ �?Š?˜fŸlšl¨f¯nªnÀÇÂÜ—+‘+œaÐ BÓCÓDÐ DØ � ‰ �d˜FŸL™L¨$°Ô7÷ :�ˆ×9Ð9ú�ˆús%ÁDÁ9A?D Ã8DÄ D ÄDÄDskwdemoódsdefaults"show default keyword template mapsófórcfilesread maps from rcfilesFILEs+hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...T)Ú optionalrepocóN ‡—ˆfd„}d}tjdd«}‰jtd«|z«|€‰}n |j}t j ||d¬«}‰jd |dd «‰jd d «}‰jd d |d «‰jd «} |s|jd «�r(‰jtd««| r‰jtd««|jd«s| s7|r‰jtd««n‰jtd««|jd «r ‰j|jd««|rZddj|«z} |jjd| «‰j|jjd««t!‰jd ««} nÏ|jd«r‹|r‰jtd««n‰jtd««t#‰«} | rz‰jtd««| j%«D]\} } ‰jd | | d «Œn3‰jtd««| r t!| «} n t#‰«} t'‰«t)‰|«‰j+d«|d ‰jd ««|d ‰jd ««|d | j%««ddjt-| j/«««zdz}|j0j||«|j3«5|j4j7|«5|dj9|g«ddd«‰jtd«|z«‰j|«|j4j;d |j=««‰jd!«D]K\}}|j?d"d#«d$jAd%«d&kDsŒ.|jBjd!|dd «ŒMtd'«}‰jd(|z«|jE|¬)«ddd«‰jtd*««‰j|jG|««|j0jI|jJ«y#1swY�ŒZxYw#1swYŒvxYw)+a–print [keywordmaps] configuration and an expansion example Show current, custom, or default keyword template maps and their expansions. Extend the current configuration by specifying maps as arguments and using -f/--rcfile to source an external hgrc file. Use -d/--default to disable current configuration. See :hg:`help templates` for information on templates and filters. cóÊ•—‰jd|z«t|«D]@\}}t|t«rt j |«}‰jd||fz«ŒBy)Ns[%s] s%s = %s )r–ÚsortedÚ isinstanceÚboolrÚpprint)ÚsectionÚitemsÚkÚvr1s €r$Ú demoitemszdemo..demoitemsÖsUø€Ø �‰�˜WÑ$Ô%ܘ5–M‰DˆAˆqܘ!œTÔ"Ü×%Ñ% aÓ(�Ø �H‰H�\ Q¨ FÑ*Õ +ñ"r&sdemo.txtr&skwdemo.s$creating temporary repository at %s NT)ÚcreaterÕrrrDÚrcfiles3 configuration using custom keyword template maps s! extending current template maps rs# overriding default svn keywordset s# overriding default cvs keywordset ræs[keywordmaps] %s ó shgrcs- configuration using default svn keywordset s- configuration using default cvs keywordset s! disabling current template maps s4 configuration using current keyword template maps s[extensions] keyword = ó$s$ $s$ s keywords written to %s: s demobranchshooksó.rirscommitéÿÿÿÿs.hg keyword configuration and expansion exampleshg ci -m '%s' )r7s keywords expanded )&rÚmkdtempr”rÚbaseuir ÚinstanceÚ setconfigr0rNrØr×Ú readconfigr[Úvfsr–rOr4rïÚuisetupÚ reposetupÚ writenoi18nrêr^r•rßrœràrÈÚ setbranchÚcurrenttransactionrKÚfindr1ÚcommitrŽÚrmtreerH)r1rQÚargsrÛròÚfnÚtmpdirrúÚsvnÚuikwmapsÚrcmapsrTrðrñÚkeywordsÚnameÚcmdr¤s` r$Údemor¿sðø€ô.,ð €BÜ × Ñ ˜c :Ó .€F؇G�GŒAÐ6Ó 7¸&Ñ @ÔAØ €|Ø‰à—‘ˆÜ × Ñ ˜f f°TÔ :€D؇L�L�˜R  jÔ1Ø �-‰-˜  vÓ .€Cà‡L�L� ¨¨ZÔ8à�~‰~˜nÓ-€HÙ ˆt�x‰x˜Õ!Ø � ‰ ”!ÐMÓNÔOÙ Ø �I‰I”aÐ>Ó?Ô @Ø �8‰8�IÔ ¡hÙØ— ‘ œ!ÐDÓEÕFà— ‘ œ!ÐDÓEÔFØ �8‰8�HÔ Ø �M‰M˜$Ÿ(™( 9Ó-Ô .Ù à+¨e¯j©j¸Ó.>Ñ>ˆFØ �H‰H�N‰N˜7 FÔ +Ø �M‰M˜$Ÿ(™(Ÿ-™-¨Ó0Ô 1Ü�b—n‘n ^Ó4Ó5‰Ø �‰�)Ô Ù Ø �I‰I”aÐKÓLÕ Mà �I‰I”aÐKÓLÔ MÜ Ó#ˆÙ Ø �I‰I”aÐ>Ó?Ô @ØŸ ™ ž‘��1Ø— ‘ ˜^¨Q°°:Õ>ñ'ð � ‰ ”!ÐNÓOÔP٠ܘ(“^‰Fä# BÓ'ˆFä ˆB„KÜ ˆb�$ÔØ‡N�NÐ/Ô0Ù ˆj˜"Ÿ.™.¨Ó4Ô5Ù ˆm˜RŸ^™^¨MÓ:Ô;Ù ˆn˜fŸl™l›nÔ-Ø�g—l‘l¤6¨&¯+©+«-Ó#8Ó9Ñ9¸FÑB€H؇I�I‡O�O�B˜Ô!Ø �‰�Ø �]‰]× )Ñ )¨$Õ /Ø �‰J�N‰N˜B˜4Ô ÷0à �‰”Ð0Ó1°BÑ6Ô7Ø �‰�ÔØ � ‰ ×Ñ  ¨t×/FÑ/FÓ/HÔIØŸ™¨Ö1‰IˆD�#Ø�z‰z˜$ Ó" 1Ñ%×*Ñ*¨9Ó5¸Ó:Ø—‘×!Ñ! (¨D°#°zÕBð2ôÐAÓBˆØ �‰Ð# cÑ)Ô+Ø � ‰ ˜ˆ Ô÷ ð‡I�IŒaÐ*Ó+Ô,؇H�HˆT�Z‰Z˜‹^ÔØ‡I�I×Ñ�T—Y‘YÕ÷0Ñ /ú÷ ˆús,ÎTÎ TÎ6BTÑATÔT ÔTÔT$skwexpands!hg kwexpand [OPTION]... [FILE]...)Ú inferrepocó&—t||dg|¢­i|¤Žy)zŸexpand keywords in the working directory Run after (re)enabling keyword expansion. kwexpand refuses to run if given files contain local changes. TN©rã©r1rQrÚrÛs r$rƒrƒ&s€ôˆb�$˜Ð,˜tÒ, tÓ,r&ókwfilesóArÒs&show keyword status flags of all filesóióignores"show files excluded from expansionóurÑs%only show unknown (not tracked) filess hg kwfiles [OPTION]... [FILE]...c ó¤—t|dd«}|d}t||||g|¢­i|¤Ž}|r|j«}nd}g}tj|«}|j d«r|j d«r/t |j|jz|jz«}|j||«} |j|j|«} |j|j|«} |j d«r|j d«r| | | f} ngggf} |j d«s|j d«r7| |D� cgc] } | | vsŒ| ‘Œ c} |jD� cgc] } | | vsŒ| ‘Œ c} fz } dj«}t|tjd«| «}|j!d |«}d }|j d«s |j"rd }|D]]\}}}d |z}|D]M} |j%«|j'|| ¬ «|j)|||j+| |«fz|¬«ŒOŒ_|j-«ycc} wcc} w)ashow files configured for keyword expansion List which files in the working directory are matched by the [keyword] configuration patterns. Useful to prevent inadvertent keyword expansion and to speed up execution by including only files that are actual candidates for expansion. See :hg:`help keyword` on how to construct patterns both for inclusion and exclusion of files. With -A/--all and -v/--verbose the codes used to show the status of files are:: K = keyword expansion candidate k = keyword expansion candidate (not tracked) I = ignored i = ignored (not tracked) rÞNr&rÑrÒrs5enabled deleted enabledunknown ignored ignoredunknownsK!kIirs%.0s%s s%s %s skwfiles.)Úkwstatusrv)Úlabel)rrÜÚgetcwdrrÖrØrêr;r<rÓrˆrârÔrKÚzipÚbytestrÚ formatterÚverboseÚ startitemrxÚplainÚpathtoÚend)r1rQrÚrÛrÂr¥r×ÚcwdÚfilesÚkwfilesÚ kwdeletedÚ kwunknownÚ showfilesr?ÚkwlabelsÚkwstatesÚfmÚfmtÚkwstateÚcharÚ filenamesrs r$r'r'7s#€ô@ �$˜  tÓ ,€CØ �‰:€DÜ �R˜˜t SÐ 8¨4Ò 8°4Ñ 8€FÙ Ø�k‰k‹m‰àˆØ €EÜ × Ñ  Ó %€DØ �8‰8�JÔ  4§8¡8¨FÔ#3Ü�v—‘¨¯©Ñ5¸¿ ¹ ÑDÓEˆØ�l‰l˜5 $Ó'€GØ— ‘ ˜VŸ^™^¨TÓ2€IØ— ‘ ˜VŸ^™^¨TÓ2€IØ �8‰8�IÔ  $§(¡(¨6Ô"2ؘY¨ Ð1‰ à˜˜B�Jˆ Ø ‡x�x�Ô˜4Ÿ8™8 IÔ.ØÙÓ 2™�1 ¨'Ò!1ŠQ˜Ñ 2ØŸšÓ =™�1¨!°9Ò*<ŠQ˜Ñ =ð ñ ˆ ðH×MÑMÓO€HÜ�8œX×-Ñ-¨hÓ7¸ÓC€HØ �‰�j $Ó '€BØ €CØ ‡x�x�Ô˜2Ÿ:š:؈Û$,Ñ ˆ��yؘgÑ%ˆÛˆAØ �L‰LŒNØ �G‰G˜T¨ˆGÔ *Ø �H‰H�S˜D $§+¡+¨a°Ó"5Ð6Ñ6¸eˆHÕ Dñð%-ð ‡F�F…Hùò 3ùÚ =sÅ IÅ IÅ I Å(I skwshrinks!hg kwshrink [OPTION]... [FILE]...có&—t||dg|¢­i|¤Žy)zµrevert expanded keywords in the working directory Must be run before changing/disabling active keywords. kwshrink refuses to run if given files contain local changes. FNrrs r$r±r±}s€ôˆb�$˜Ð- Ò-¨Ó-r&cóª—|||||||«tt|dd«dd«}|r,|j|j|j«|_yy)ztMonkeypatch/wrap patch.patchfile.__init__ to avoid rejects or conflicts due to expanded keywords in working dir.rQNrÞ)rrµr°r´)ÚorigrPr1ÚgpÚbackendÚstoreÚeolmoderÂs r$Úkwpatchfile_initr:‘sO€ñ ˆˆr�2�w  wÔ/Ü ”'˜' 6¨4Ó0°-ÀÓ F€CÙ à—_‘_ T§Z¡Z°·±Ó<ˆ� ð r&c/ó°K—t|dd«}|r|j}d|_ ||g|¢­i|¤ŽD]}|–—Œ |r|_yy#|r|_wwxYw­w)z*Monkeypatch patch.diff to avoid expansion.rÞNT)rrL)r5rQrÚkwargsrÂrLÚchunks r$Úkwdiffr>›sjèø€ä �$˜  tÓ ,€CÙ Ø—<‘<ˆØˆŒ ð$Ù˜$Ð0 Ò0¨Ô0ˆEØ‹Kñ1ñ Ø#ˆC�Lð ø‰3Ø#ˆC�Lð üs‚#A¦A¼ AÁ AÁAc#óØK—t|jdd«}|r!|j}tj|_ ||«D]}|–—Œ |r|_yy#|r|_wwxYw­w)z2Wraps webcommands.x turning off keyword expansion.rÞN)rrQrrÚnever)r5ÚwebrÂÚ origmatchr=s r$Ú kwweb_skiprC©sgèø€ä �#—(‘(˜M¨4Ó 0€CÙ Ø—I‘Iˆ Ü—J‘JˆŒ ð"Ù˜#–YˆEØ‹Kññ Ø!ˆC�Ið ø‰3Ø!ˆC�Ið üs‚;A*¾AÁ A*Á A'Á'A*c ó¶—t|dd«}|€ |||||||«S|j«5|jj|«5d|_|||||||«}||j «k7r5||} d|_|j| | j«dd«d|_|cddd«cddd«S#1swYnxYwddd«y#1swYyxYw)z3Wraps cmdutil.amend expanding keywords after amend.rÞNTF) rrßrœÚchanging_parentsrMr‚rLr®r') r5r1rQÚoldÚextrarÚrÛrÂÚnewidrus r$Úkw_amendrI·s¹€ä �$˜  tÓ ,€CØ €{Ù�B˜˜c 5¨$°Ó5Ð5Ø �‰��t—}‘}×5Ñ5°dÕ;؈ŒÙ�R˜˜s E¨4°Ó6ˆØ �C—H‘H“JÒ Ø�u‘+ˆC؈CŒLØ �M‰M˜#˜sŸy™y›{¨E°4Ô 8Ø ˆCŒLØ÷<Ð;�‰×;Ð;ú��‰ús$­CÁ AB:Â' CÂ:C Â?CÃCcóʇ‡ ‡ ‡ —t‰dd«Š ‰ € ||‰|||«S‰j«5||‰|||«|jd«r ddd«y‰dŠ ‰j«Š ˆ ˆ ˆˆ fd„}‰jj «D�cgc]}d‰ j |«vr ||«r|‘Œ!}}‰ j‰ |dd«ddd«ycc}w#1swYyxYw)aÔWraps cmdutil.copy so that copy/rename destinations do not contain expanded keywords. Note that the source of a regular file destination may also be a symlink: hg cp sym x -> x is symlink cp sym x; hg cp -A sym x -> x is file (maybe expanded keywords) For the latter we have to follow the symlink to find out whether its target is configured for expansion and we therefore must unexpand the keywords in the destination.rÞNsdry_runcóþ•—‰jj|«}d‰j|«vr>tj‰j ‰t jj|««}‰j|«S)z™Returns true if dest is a regular file and configured for expansion or a symlink which points to a file configured for expansion.r…) rœÚcopiedr†rÚ canonpathrHÚosrvÚrealpathr)ÚdestÚsourcer&rÂrQr¥s €€€€r$Ú haskwsourcezkw_copy..haskwsourceÛseø€ð—]‘]×)Ñ)¨$Ó/ˆFØ�t—z‘z &Ó)Ñ)Ü!×+Ñ+Ø—I‘I˜s¤B§G¡G×$4Ñ$4°VÓ$<ó�ð—9‘9˜VÓ$Ð $r&r…F)rrßrØrrœÚcopiesr†r®) r5r1rQrÚrÛÚrenamerRr?rŸr&rÂr¥s ` @@@r$Úkw_copyrUÇsâû€ô �$˜  tÓ ,€CØ €{Ù�B˜˜d D¨&Ó1Ð1Ø �‰�Ù ˆR��t˜T 6Ô*Ø �8‰8�JÔ Ø ÷ ˆð�D‰zˆØ�k‰k‹mˆ÷ %ð—]‘]×)Ñ)Ô+ó á+�ؘ4Ÿ:™: a›=Ñ(©[¸¬^ò Ø+ð ð ð � ‰ �d˜J¨¨uÔ5÷/ ˆùò$ ÷% ˆús#°CÁ9CÂ$CÂ5CÃCÃC"c óü—t|dd«}|€||||g|¢­i|¤ŽS|j«5d|_|d}|j«}||||g|¢­i|¤Ž} |d} || k7rxt || j ««\} } d|_|jj|«5|j| | dd«|j| | ddd«ddd«d|_| cddd«S#1swYŒxYw#1swYyxYw)z9Wraps record.dorecord expanding keywords after recording.rÞNTr÷F) rrßrMr×r@r'rLrœrEr®) r5r1rQÚ commitfuncrÚrÛrÂrur=ÚretÚrecctxr;r<s r$Ú kw_dorecordrZîsú€ä �$˜  tÓ ,€CØ €{Ù�B˜˜jÐ8¨4Ò8°4Ñ8Ð8Ø �‰�ðˆŒØ�4‰jˆØ—*‘*“,ˆÙ�2�t˜ZÐ7¨$Ò7°$Ñ7ˆØ�d‘ˆØ �&Š=Ü(¨°&·,±,³.ÓA‰OˆH�eØ ˆCŒLØ—‘×/Ñ/°Õ5Ø— ‘ ˜f h°°tÔ<Ø— ‘ ˜f e¨U°D¸$Ô?÷6ð ˆCŒLØ÷ ‰÷6Ð5ú÷ ˆús$®A4C2Â"*C&à C2Ã&C/ Ã+C2Ã2C;có—|jr|j|«St|jdd«}|€ |||«S|j€k|jj sv|j |j««rd|j«vsE|j«dz |j«k(s!|j«|j«k(r4|jj|j|j««Sy)NrÞr…éT) Ú _customcmpr‘rrGÚ _filenodeÚ_encodefilterpatsrrvr†r«Ú_filelogrx)r5rPÚfctxrÂs r$Ú kwfilectx_cmprbsÄ€Ø ‡‚Ø�x‰x˜‹~ÐÜ �$—*‘*˜m¨TÓ 2€CØ €{Ù�D˜$ÓÐð �‰Ðà �J‰J× (Ò (Ø�y‰y˜Ÿ™›Ô%ؘDŸJ™J›LÑ(Ø�y‰y‹{˜Q‰ $§)¡)£+Ò-à �9‰9‹;˜$Ÿ)™)›+Ò %à�}‰}× Ñ  §¡°·±³Ó=Ð=Ø r&cóL—d„}tjtd|«tjtjdt «tjt jdt«tjt dt«tjtdt«tjtdt«tjtdt«tj«D]!}tjt |t"«Œ#y ) a Monkeypatches dispatch._parse to retrieve user command. Overrides file method to return kwfilelog instead of filelog if file matches user configuration. Wraps commit to overwrite configured files with updated keyword substitutions. Monkeypatches patch and webcommands.có@—|||«\}}}}}|td<|||||fS)z9Monkeypatch dispatch._parse to obtain running hg command.r+)rI)r5r1rrÚfuncÚoptionsÚ cmdoptionss r$Úkwdispatch_parsez!uisetup..kwdispatch_parse#s3€á/3°B¸«~Ñ,ˆˆT�4˜ *ØŒ�ÑØ�D˜$ ¨Ð3Ð3r&s_parsescmps__init__sdiffsamendscopysdorecordN)r Ú wrapfunctionrrr|rbrÚ patchfiler:r>rrIrUrZÚnokwwebcommandsrKrrC)r1rhÚcs r$rÿrÿs¶€ò4ô ×ÑœH iÐ1AÔBä×ÑœGŸO™O¨V´]ÔCÜ×ÑœEŸO™O¨[Ô:JÔKÜ×ÑœE 7¬FÔ3Ü×ÑœG X¬xÔ8Ü×ÑœG W¬gÔ6Ü×ÑœG [´+Ô>Ü × "Ñ "Ö $ˆÜ×Ѥ ¨Q´ Õ;ñ%r&c󸇇— |j«rYtdtj«vs.kwrepocóL•—|ddk(r|dd}t|j‰|«S)Nró/ri)r¿Úsvfs)rPr?rÂs €r$rjzreposetup..kwrepo.fileOs,ø€Ø�‰t�tŠ|Ø�a�b�E�ܘTŸY™Y¨¨QÓ/Ð /r&cóF•—t‰|�|«}‰j||«SrW)rÁrŽ)rPÚfilenamerxrÄÚkwreporÂs €€€r$rŽzreposetup..kwrepo.wreadTs%ø€Ü˜ Ñ,¨XÓ6ˆDØ—9‘9˜X tÓ,Ð ,r&cóX•—|j|_ t‰|�|i|¤Ž|`S#|`wxYwrW)Ú kwcommitctxÚ commitctxrÁr)rPrrÛrÄrus €€r$rz reposetup..kwrepo.commitXs6ø€ð"×-Ñ-ˆDŒNð #ܘV TÑ1°4Ð@¸4Ñ@à‘Nø�D‘Nús”%¥)cóô•—t‰|�|||«}‰jsY‰j}d‰_‰j ||t |j «|j«z«dd«|‰_|S)NTF)rÁrxrMrLr®rêr<r;) rPrur ÚorigctxÚnrLrÄrurÂs €€€r$rwz%reposetup..kwrepo.kwcommitctxaslø€Ü�f˜dÑ-¨c°5¸'ÓBˆAà—>’>ØŸ<™<�Ø#�” Ø— ‘ ؘ‘GœV C§I¡I£K°#·,±,³.Ñ$@ÓAÀ5È$ôð (�” ؈Hr&có„•—|j«5‰ j} |s|dj«}t‰ |�||«}|sQ|d}t |j ««\}}d‰ _‰ j||dd«‰ j||dd«||‰ _cddd«S#|‰ _wxYw#1swYyxYw)Nr÷FT)rßrLr'rÁÚrollbackr@r×r®) rPÚdryrunÚforceÚ origrestrictr>rXrur;r<rÄrurÂs €€€r$r}z"reposetup..kwrepo.rollbackms³ø€Ø—‘•Ø"Ÿ|™|� ð 0Ù!Ø"& t¡*×"2Ñ"2Ó"4˜Ü ¨Ñ6°v¸uÓE�CÙ!Ø" 4™j˜Ü*4°S·Z±Z³\À7Ó*K™˜ %Ø',˜œ ØŸ ™  c¨8°T¸4Ô@ØŸ ™  c¨5°$¸Ô>Øà#/�C”L÷‘øð$0�C•Lú÷�ús#’ B6 A9B*ÂB6Â* B3Â3B6Â6B?)FN)FF) r¸r¹rºrjrŽrrwr}rÏ)rÄrurÂs@€€r$ruroNs!ù„ô 0ö  -õ #÷ ÷ 0ó 0r&ru)ÚlocalrIÚ nokwcommandsrKrÚ splitpathrHÚ_urlÚ startswithÚAttributeErrorrNÚappendrBrÄrÞ)r1rQrRrSÚpatÚoptrurÂs @@r$rr5sçù€ð  à— ‘ ” Ü�xÑ ¤L×$6Ñ$6Ó$8Ñ8ØœŸ™¨¯ © Ó2Ñ2Ø�y‰y×#Ñ# JÔ/à ð0ð �G�9ˆ€CØ—N‘N :Ö.‰ˆˆSØ �)Ò Ø �J‰J�s�Oà �J‰J�s�Oð /ñ Øä �b˜$  SÓ )€C÷.0�—‘ô.0ð`€D„NØ€DÕøô ò Ù ð ús„A)C-Ã- C9Ã8C9rWr·)Fr»rNrbrEÚmercurial.i18nrÚmercurial.pycompatrÚmercurial.hgwebrÚ mercurialrrrr r r r r rrrrrrrrrÚmercurial.utilsrrÚmercurial.dirstateutilsrÚcmdtableÚcommandÚ testedwithr‚rkrJÚrecordextensionsÚ colortableÚtemplatefilterÚ configtableÚ configitemr"r%r(r*rIr4r9r@rBr¿rÜrãrÚwalkoptsrƒr'r±r:r>rCrIrUrZrbrÿrr6r&r$Úr™sßðñ:6ór Û ÛåÝ&Ý'÷÷÷÷õ÷&õ.à €Ø ˆ)× Ñ ˜HÓ %€ð #€ ð4ð ð E€ð 5ð ð Ðð&Ø.Ø'ØØ&ñ € ð*�×)Ñ)Ó+€à€ Ø !ˆY× !Ñ ! +Ó .€ á ØØ Ø õñ �  <×#4Ñ#4Ô5ñ6ó6ð6ñ�  l×&7Ñ&7Ô8ñLó9ðLñ�  l×&7Ñ&7Ô8ñ6ó9ð6ð �Sˆ/€òò8#ò ÷UñUôp6�—‘ô6ò: >ò 8ñ Ø à ˆz˜4¡Ð#HÓ!IÐJØ ˆy˜#™qÐ!9Ó:¹A¸g»JÐGðñÐ4Ó5Øôñ[ óð[ ñ| ØØ ×ÑÙÐ*Ó+Øô ñ -ó ð -ñ Øà ˆv�t™QÐHÓIÐJØ ˆy˜$¡Ð"GÓ HÐIØ ˆz˜4¡Ð#KÓ!LÐMðð ×Ññ ñ Ð)Ó*Øô ñ8 ó ð8 ñv ØØ ×ÑÙÐ*Ó+Øô ñ .ó ð .ó=ò $ò "ò ó $6òNò.ò,<ó4Jr&