HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/proc/thread-self/root/lib64/python2.7/site-packages/hgext/keyword.pyc
�
1�3\c	@@s�dZddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZmZiZej e�Z dZ!d	Z"d
Z#dZ$dZ%id
d6dd6dd6dd6dd6Z&ej'�Z'iZ(ej)e(�Z)e)ddde*�e'ddej+�d��Z,e'ddej+�d��Z-e'ddej+�d ��Z.id!d"6Z/d#�Z0d$�Z1d%�Z2d&e3fd'��YZ4d(ejfd)��YZ5d*�Z6d+�Z7e d,d-dded.�fd/d0d!ed1�ed2�fged3�d4e9�d5��Z:e d6ej;ed7�d8e9�d9��Z<e d:d;d<ded=�fd>d?ded@�fdAdBdedC�fgej;edD�d8e9�dE��Z=e dFej;edG�d8e9�dH��Z>ddI�Z?dJ�Z@dK�ZAdL�ZBe*dM�ZCdN�ZDdO�ZEdP�ZFdQ�ZGdS(RsCexpand 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.
i(tabsolute_importN(t_(twebcommands(tcmdutiltcontexttdispatchterrort
extensionstfilelogt	localrepot
logcmdutiltmatchtpatchtpathutiltpycompatt	registrartscmutilttemplatefiltersttemplateutiltutil(tdateutilt
stringutilsships-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 fetchtrecords
green boldskwfiles.enabledscyan bold underlineskwfiles.deletedtgreenskwfiles.enabledunknowntboldskwfiles.ignoredtnoneskwfiles.ignoredunknownt
keywordsettsvntdefaulttutcdatetintypecC@s d}tj|ddf|�S(sDDate. Returns a UTC-date in this format: "2009/08/18 11:00:13".
    s%Y/%m/%d %H:%M:%Si(Rtdatestr(tdatet
dateformat((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR�st
svnisodatecC@stj|d�S(s]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)(RR(R ((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR"�st
svnutcdatecC@s d}tj|ddf|�S(sIDate. Returns a UTC-date in this format: "2009-08-18
    11:00:13Z".
    s%Y-%m-%d %H:%M:%SZi(RR(R R!((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR#�stthgcmdcC@s�idd6dd6}idd6dd6dd	6d
d6dd
6dd6idd6dd
6dd6dd6dd6f}|j||jdd��|S(sBReturns default keywordmaps according to keywordset configuration.s{node|short}tRevisions
{author|user}tAuthors{date|utcdate}tDates{file|basename},vtRCSfiletRCSFiles{root}/{file},vtSources;{file|basename},v {node|short} {date|utcdate} {author|user}tIds9{root}/{file},v {node|short} {date|utcdate} {author|user}tHeaders{date|svnisodate}s>{file|basename},v {node|short} {date|svnutcdate} {author|user}tLastChangedRevisiont
LastChangedBytLastChangedDateRR(tupdatet
configbool(tuit	templatestkwsets((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt_defaultkwmaps�s$

cC@s
|d|�S(slHelper for keyword expansion removal in text.
    Depending on subfunc also returns number of substitutions.s$\1$((ttexttsubfunc((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt_shrinktext�scC@sZg|jD]}||kr
|^q
}g|jD]}||kr2|^q2}||fS(s�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.(tmodifiedtadded(twstatustchangedtfR:R;((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt
_preselect�s((tkwtemplatercB@s�eZdZd�Zed��Zejd��Zejd��Z	ejd��Z
d�Zd�Zd�Z
d	�Zed
�Zd�Zd�Zd
�ZRS(sr
    Sets up keyword templates, corresponding keyword regex, and
    provides keyword substitution functions.
    cC@s�||_tj|�|_tj|jdg||�|_tdtj�k|_	t
|_|jjd�}|r�t
|�|_nt|j�|_dS(NR$R%tkeywordmaps(R3tweakreftreft_repoRtroottkwtoolst
restrictedtsplittrestricttFalset
postcommittconfigitemstdictR4R6(tselfR3trepotinctexctkwmaps((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt__init__�s	!	cC@s
|j�S(N(RD(RN((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyRO�scC@s"djttj|jj���S(s+Returns bar-separated and escaped keywords.t|(tjointmapRtreescapeR4tkeys(RN((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytescape�scC@stjd|j�S(s&Returns regex for unexpanded keywords.s\$(%s)\$(tretcompileRY(RN((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytrekw�scC@stjd|j�S(s$Returns regex for expanded keywords.s\$(%s): [^$\n\r]*? \$(RZR[RY(RN((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytrekwexp�sc@s"���fd�}|||�S(s1Replaces keywords in data with expanded template.c@s�|jd�}tj�j�j�j|�}�jj�|j�d�jjd��t	j
�jj��}d||fS(NiREtfiles	$%s: %s $(tgroupR
t
maketemplaterR3ROR4t
pushbuffertshowRERt	firstlinet	popbuffer(tmobjtkwtcttekw(tctxtpathRN(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytkwsubs
((RNtdataRjRiR8Rk((RiRjRNs3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt
substitutescC@s|jj|d|�j�S(s4Similar to filelog.linkrev, but returns a changectx.tfileid(ROtfilectxt	changectx(RNRjRn((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytlinkctxscC@s[|jrW|j|�rWtj|�rW|j||�}|j||||jj�S|S(s$Returns data with keywords expanded.(RIRRtbinaryRqRmR\tsub(RNRjtnodeRlRi((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytexpands
cC@s;g|D]0}|j|�rd|j|�kr|^qS(skReturns subset of candidates which are configured for keyword
        expansion but are not symbolic links.tl(Rtflags(RNtcandRiR>((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytiskwfilescC@s�|js|s|jr-|j||�}n|s7dS|joC|}|js[|rj|rj|j�}n|jsy|r�|j}n	|j}|r�td�}	ntd�}	x�|D]�}
|jr�|jj|
�j	||
�}n|jj
|
�}tj|�rq�n|r�|j
�}|r?|j|
||
�}ng|jr�t|�dkr�xI|D]>}
|
|
kra|
|
j||
�ra|
|
j�}PqaqaWn|j||
||j�\}}n3|jr�|j|�}nt||j�\}}|r�|jj|	|
�|jj|
ddt�}|j|�|j�|re|jjj|
�q�|jr�|jjj|
�q�q�q�WdS(s7Overwrites selected files expanding/shrinking keywords.Ns"overwriting %s expanding keywords
s"overwriting %s shrinking keywords
itwbt
atomictemp(RIRKRytmanifestR\R]RROR^treadtwreadRRrtparentsRqtlentcmpRpRmtsubntsearchR9R3tnotetwvfstTruetwritetclosetdirstatetnormaltnormallookup(RNRit
candidatestlookupRuR\tkwcmdtmftre_kwtmsgR>RlRtptfoundtfp((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt	overwrite!sR	
	"
$$	

	cC@s6|j|�r2tj|�r2t||jj�S|S(s4Returns text with all keyword substitutions removed.(RRRrR9R]Rs(RNtfnameR7((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytshrinkTscC@sP|j|�rLdj|�}tj|�sLt||jj�jt�Sn|S(s1Returns lines with keyword substitutions removed.R$(	RRURRrR9R]Rst
splitlinesR�(RNR�tlinesR7((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytshrinklinesZs
cC@s|jr|j||�S|S(s]If in restricted mode returns data read from wdir with
        keyword substitutions removed.(RIR�(RNR�Rl((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR~bs	(t__name__t
__module__t__doc__RStpropertyRORt
propertycacheRYR\R]RmRqRuRyRJR�R�R�R~(((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR@�s	
				3		t	kwfilelogcB@s8eZdZd�Zd�Zddd�Zd�ZRS(s�
    Subclass of filelog to hook into its read, add, cmp methods.
    Keywords are "stored" unexpanded, and processed on reading.
    cC@s/tt|�j||�||_||_dS(N(tsuperR�RStkwtRj(RNtopenerR�Rj((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyRSns	cC@sDtt|�j|�}|j|�r+|S|jj|j||�S(s&Expands keywords when reading filelog.(R�R�R}trenamedR�RuRj(RNRtRl((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR}sscC@s=|jj|j|�}tt|�j||||||�S(s5Removes keyword substitutions when adding to filelog.(R�R�RjR�R�tadd(RNR7tmetattrtlinktp1tp2((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR�zscC@s1|jj|j|�}tt|�j||�S(s-Removes keyword substitutions for comparison.(R�R�RjR�R�R�(RNRtR7((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR�sN(R�R�R�RSR}tNoneR�R�(((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR�is
		cO@s�|rXtj|�}|jdtj|||�dtd|jd�pT|jd��S|jd�rtj	t
d���ntj	t
d���dS(	s\Bails out if [keyword] configuration is not active.
    Returns status of working directory.Rtcleantunknowntalltkeywords[keyword] patterns cannot matchs no [keyword] patterns configuredN(RtbyteskwargststatusRRR�tgetRLRtAbortR(R3ROtwctxR�tpatstopts((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt_status�s$cO@s�|d}t|j��dkr:tjtd���nt|dd�}|j��ut||||||�}|j	s�|j
s�|js�|jr�tjtd���n|j
||jt|�WdQXdS(s7Selects files and passes them to kwtemplater.overwrite.isoutstanding uncommitted merget_keywordkwtsoutstanding uncommitted changesN(R�R�RRR�RtgetattrtwlockR�R:R;tremovedtdeletedR�R�R�(R3RORuR�R�R�R�R�((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt	_kwfwrite�s

$tkwdemotds"show default keyword template mapsR>trcfilesread maps from rcfiletFILEs+hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...toptionalrepoc@sg�fd�}d}tjdd�}�jtd�|�|dkrS�}n	|j}tj||dt�}�j	d|dd��j
dd	�}�j	dd	|d��jd
�}	|s�|jd�r��j
td��|	r�j
td
��n|jd�s|	rM|r7�j
td��qM�j
td��n|jd�ru�j|jd��n|r�ddj|�}
|jjd|
��j|jjd��nt�jd
��}n�|jd�rq|r�j
td��n�j
td��t��}|	r��j
td��x3|j�D]"\}}
�j	d
||
d�qEWq�n4�j
td��|	r�t|	�}nt��}t��t�|��jd�|d�jd��|d�jd��|d
|j��ddjt|j���d}|jj||�|dj|g��jtd�|��j|�|j��|jjd�WdQXx^�jd�D]M\}}|jd d!�d"jd#�d$kr�|j j	d|dd�q�q�Wtd%�}�jd&|�|j!d'|��j
td(���j|j"|��|jj#|j$�dS()s�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@sj�jd|�xRt|�D]D\}}t|t�rKtj|�}n�jd||f�qWdS(Ns[%s]
s%s = %s
(R�tsortedt
isinstancetboolRtpprint(tsectiontitemstktv(R3(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt	demoitems�s
sdemo.txtR$skwdemo.s$creating temporary repository at %s
tcreateR�RRRAR�s3
	configuration using custom keyword template maps
s!	extending current template maps
Rs#	overriding default svn keywordset
s#	overriding default cvs keywordset
s[keywordmaps]
%s
s
thgrcs-
	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 =
t$s$
$s$
s
keywords written to %s:
t
demobranchNthookst.iitcommiti����s.hg keyword configuration and expansion exampleshg ci -m '%s'
R7s
	keywords expanded
(%RtmkdtempR�RR�tbaseuiR	tinstanceR�t	setconfigR2RLR�R�t
readconfigRUtvfsR�RMR6t	iteritemstuisetupt	reposetupR�RXR�R�R�R�t	setbranchRHtfindR3R�R~trmtreeRE(R3ROtargsR�R�tfnttmpdirR�RtuikwmapstrcmapsRRR�R�tkeywordstnametcmdR�((R3s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytdemo�s|		 


#

% tkwexpands!hg kwexpand [OPTION]... [FILE]...t	inferrepocO@st||t||�dS(s�expand keywords in the working directory

    Run after (re)enabling keyword expansion.

    kwexpand refuses to run if given files contain local changes.
    N(R�R�(R3ROR�R�((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyRu�stkwfilestAR�s&show keyword status flags of all filestitignores"show files excluded from expansiontuR�s%only show unknown (not tracked) filess hg kwfiles [OPTION]... [FILE]...cO@s�t|dd�}|d}t||||||�}|rL|j�}nd}g}tj|�}|jd�s�|jd�r�t|j|j	|j
�}n|j||�}	|j|j|�}
|j|j
|�}|jd�s|jd�r|	|
|f}ngggf}|jd�s@|jd�r�|g|D]}
|
|	krJ|
^qJg|j
D]}
|
|kro|
^qof7}ndj�}t|tjd�|�}|jd|�}d	}|jd�s�|jr�d
}nx{|D]s\}}}d|}xW|D]O}
|j�|jd|d
|
�|j|||j|
|�fd|�qWq�W|j�dS(sshow 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�R$R�R�R�s5enabled deleted enabledunknown ignored ignoredunknownsK!kIiR�s%.0s%s
s%s %s
skwfiles.tkwstatusRjtlabelN(R�R�R�tgetcwdRR�R�R�R:R;R�RyR�R�RHtziptbytestrt	formattertverboset	startitemRltplaintpathtotend(R3ROR�R�R�R�R�tcwdtfilesR�t	kwdeletedt	kwunknownt	showfilesR>tkwlabelstkwstatestfmtfmttkwstatetchart	filenamesR�((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR�
s@
 %/	


1tkwshrinks!hg kwshrink [OPTION]... [FILE]...cO@st||t||�dS(s�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.
    N(R�RJ(R3ROR�R�((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR�IscC@s_|||||||�tt|dd�dd�}|r[|j|j|j�|_ndS(stMonkeypatch/wrap patch.patchfile.__init__ to avoid
    rejects or conflicts due to expanded keywords in working dir.ROR�N(R�R�R�R�R�(torigRNR3tgptbackendtstoreteolmodeR�((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytkwpatchfile_initYsco@smt|dd�}|r-|j}t|_nz&x||||�D]}|VqCWWd|rh||_nXdS(s*Monkeypatch patch.diff to avoid expansion.R�N(R�R�RIR�(RROR�tkwargsR�RItchunk((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytkwdiffbs	
cc@smt|jdd�}|r3|j}tj|_nz x||�D]}|VqCWWd|rh||_nXdS(s2Wraps webcommands.x turning off keyword expansion.R�N(R�ROR�RRtnever(RtwebR�t	origmatchR((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt
kwweb_skipos	
c
C@s�t|dd�}|dkr7|||||||�S|j��zt|_|||||||�}||j�kr�||}	t|_|j|	|	j�t	t�t	|_n|SWdQXdS(s3Wraps cmdutil.amend expanding keywords after amend.R�N(
R�R�R�R�RKRtRIR�R�RJ(
RR3ROtoldtextraR�R�R�tnewidRi((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytkw_amend|s
	
	c	
@s�t�dd���dkr4||�|||�S�j���||�|||�|jd�rjdS�d��j������fd�}g�jj�D]-}d�j|�kr�||�r�|^q�}�j�|t	t	�WdQXdS(s�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�tdry_runNc@s[�jj|�}d�j|�krNtj�j�tjj|��}n�j	|�S(s�Returns true if dest is a regular file and configured for
            expansion or a symlink which points to a file configured for
            expansion. Rv(
R�tcopiedRwR
t	canonpathREtosRjtrealpathR(tdesttsource(R�R�ROR�(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pythaskwsource�s
Rv(
R�R�R�R�R�R�tcopiesRwR�RJ(	RR3ROR�R�trenameRR>R�((R�R�ROR�s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytkw_copy�s



-c

O@s�t|dd�}|dkr4||||||�S|j���t|_|d}|j�}||||||�}	|d}
||
kr�t||
j��\}}t|_	|j
|
|tt�|j
|
|ttt�t|_	n|	SWdQXdS(s9Wraps record.dorecord expanding keywords after recording.R�R�N(R�R�R�R�RKR�R?R�RJRIR�(
RR3ROt
commitfuncR�R�R�RiR<trettrecctxR:R;((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytkw_dorecord�s 
	

	cC@s�|jr|j|�St|jdd�}|dkrD|||�S|jdkr�|jjs�|j|j��r�d|j	�ks�|j
�d|j
�ks�|j
�|j
�kr�|jj|j|j��St
S(NR�Rvi(t
_customcmpR�R�RDR�t	_filenodet_encodefilterpatsRRjRwtsizet_filelogRlR�(RRNtfctxR�((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt
kwfilectx_cmp�s	

'cC@s�d�}tjtd|�tjtjdt�tjtjdt�tjtdt	�tjt
dt�tjt
dt�tjt
dt
�x'tj�D]}tjt|t�q�Wd	S(
s! 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.cS@s;|||�\}}}}}|td<|||||fS(s9Monkeypatch dispatch._parse to obtain running hg command.R%(RF(RR3R�R�tfunctoptionst
cmdoptions((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pytkwdispatch_parse�s
t_parseR�RStdifftamendtcopytdorecordN(RtwrapfunctionRRRoR-Rt	patchfileRRRRR"R&tnokwwebcommandsRHRR(R3R1tc((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR��s	c@syU|j�sPtdtj�ksPdtj|j�ksP|jjd�rTdSWnt	k
rhnXgdg}}xF|j
d�D]5\}}|dkr�|j|�q�|j|�q�W|s�dSt||||��d|j
f��fd	��Y��|_
�|_dS(
s0Sets up repo as kwrepo for keyword substitution.R%s.hgsbundle:Ns.hg*R�R�tkwrepoc@seeZ�fd�Z��fd�Z�fd�Ze��fd�Zee��fd�ZRS(c@s0|ddkr|d}nt|j�|�S(Nit/i(R�tsvfs(RNR>(R�(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR^s
c@s(t�|�j|�}�j||�S(N(R�R~(RNtfilenameRl(R;R�(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR~sc@s7|j|_zt�|�j||�SWd|`XdS(N(tkwcommitctxt	commitctxR�R�(RNR�R�(R;(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR�sc@svt�|�j||�}�jsr�j}t�_�j||t|j�|j��t	t�|�_n|S(N(
R�R@RKRIR�R�R�R;R:RJ(RNRiRtnRI(R;R�(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR?s			&
c		@s�|j����j}z�|s2|dj�}nt�|�j||�}|s�|d}t|j�|�\}}t�_�j||t	t	��j||t	t�n|SWd|�_XWdQXdS(NR�(
R�RIR�R�trollbackR?R�RJR�R�(	RNtdryruntforcetorigrestrictR=R$RiR:R;(R;R�(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyRBs
	
	(R�R�R^R~R�RJR?RB((R;R�(s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR;s
	(tlocalRFtnokwcommandsRHRt	splitpathREt_urlt
startswithtAttributeErrorRLtappendR@t	__class__R�(R3RORPRQtpattopt((R;R�s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyR��s$#
"/	(HR�t
__future__RRRZRBtmercurial.i18nRtmercurial.hgwebRt	mercurialRRRRRRR	R
RRR
RRRRRRtmercurial.utilsRRtcmdtabletcommandt
testedwithRGR9RGtrecordextensionst
colortablettemplatefiltertconfigtablet
configitemRJR RR"R#RFR6R9R?tobjectR@R�R�R�R�R�R�twalkoptsRuR�R�RRRRR"R&R-R�R�(((s3/usr/lib64/python2.7/site-packages/hgext/keyword.pyt<module>Ss�p
	
				�			\9
		
	
	"