0
     ˆÉÈÇ524Æ¿Ä     ‹      Õ•QoÚ0Çßû)<?ì.�Ž©ÔñÔ¤¡Q@”iš¦irbC¬&6²Œ}ú9$V•­Ó6­{òùò÷Ýý.‰�<‹Ç½Ù‡I½™]ÑäÝëá ‡pà}»ÏâêÁy3ú#ŒpæÜ²°Ùlš›vS›Ì¦�¹"?ëŒL]“;Žé)}ô‘L0îWDœt¹ ÅÅ¤çôÊYÉ…?·µÀÅZ¦Â–¶¢Ðf[/a«JsÔû ì*©„ª¨>Ô‰H¢ù¶Ìþñ\>ä„%»”¥i(qZ³\.T„�^bJd±@Ö¤™je!É™ºm.ä#–»ôÆŸ¼\Vž¦„¡Ìˆy„_õ¢Ñå8Š1±B`k®½æ
Ó!³šË¹ü¤ø¦ßÈ¯§Æ•&65ré¤V)xÄcÔTçvÉ<ëO�™cU%á?ëK¿kÆäjÚÍâÁ´j	/Cªû�7‡é„¡Š¥©ó¾«Êñ\%vy¹ß¢ºh#™Ã¡zPù¤s�saŽYOQî¹0Ý[Ç•Þ+­´:�0l„(|Ù:=#×Âìjë©0¬Ô­Òuá?èA|f+ÊèDÜÑ\�Àj…(èt[ÁI,¡¾ýX÷�þWœ•XûßÓjýû �¼þ v#ˆ@5¿^_qhe       ˆÉÈÇ‚p Æ¿Ä X    ‹      Õ–ßoÚ0ÇßûWx~Ø)-íhðÔ¤¡RŠZ¦iš¦ÊÄ†XMìÈ60ú×ÏÁi›M 1­TíÓ�“oîîãœ„ï¢«îøÛ¨‡>�/hôåÓ ßE¸ðµÙˆÆ‘qTo ½!F8±6o,—Ëú²YWzãkHl–�±ZÄ¶Î,Ãä ,ž‘&œ2gQh…M9éKÆ"5E æÖÆÝw+Œ/DÌMá[žAÆ3¥W¥	‚�ŠñÄù¼UºþÕi‚�ë2A™*œ(¶**ö�Í]ÃÐÉ:iájÚ-h*f²ƒ­Ê1	E6CFÇ"VÒÀ$¥ò®>SŒhj;ø{¿{õÃéÀ&Å×$¤(Ñ|ÚÁ»�áÙU'ÂdH3Ý¬¹tšsLÔX”)&¦‚³­â/¾÷ÛF^qk‘[¡ä“b5V©É©c=v‰®ª¼„ým6hüÛdŒÎ¯{ÃqÔ¿öSÂŠOÕýç¿ÃdD5—EBóØ:YIæÓ¼—“Ÿ=QY·³Äb‚PmTþìT¥Œë*î6Ð‡z½­VùGY‡�ÃV-jÁœ´-„öXÿ\ÞIµ”U ×”L…ä˜x»Àa€‚£öñv ·ó\¼ @ž¬Ì­ï0L*ƒÝQN_Š(ö¿’dí¿�ÝE®–\»EáísÔÿÂ‹B»­iQ˜<º»c4_K?K­CX›·×Ef>)‡ðè¿Á-vÎî,ÃÄÛç xá>*±Û{%¹Á¤2ØOíxƒ�ònÂú‚¿ÉþÙ·G,    5   ˆl–Ü4ý( ©¤ýÔâ�fãoÜeÕ1hß�þB g#n·+ãóÁƒh¹ÈÀÅ      Normal
  C   ˆl–äY>”JeJe@†à¸Û*bÑ¿�þ]yÇnP¸VDHÓ@þÂ„d_É_ŠI|¥�+Wé3ž¯ÂÇ ?÷     # templatefuncs.py - common template functions
#
# Copyright 2005, 2006 Olivia Mackall <olivia@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.


import binascii
import re

from .i18n import _
from .node import bin
from . import (
    color,
    dagop,
    diffutil,
    encoding,
    error,
    minirst,
    obsutil,
    pycompat,
    registrar,
    revset as revsetmod,
    revsetlang,
    scmutil,
    templatefilters,
    templatekw,
    templateutil,
    util,
)
from .utils import (
    dateutil,
    stringutil,
)

evalrawexp = templateutil.evalrawexp
evalwrapped = templateutil.evalwrapped
evalfuncarg = templateutil.evalfuncarg
evalboolean = templateutil.evalboolean
evaldate = templateutil.evaldate
evalinteger = templateutil.evalinteger
evalstring = templateutil.evalstring
evalstringliteral = templateutil.evalstringliteral

# dict of template built-in functions
funcs = {}
templatefunc = registrar.templatefunc(funcs)


@templatefunc(b'date(date[, fmt])')
def date(context, mapping, args):
    """Format a date. See :hg:`help dates` for formatting
    strings. The default is a Unix date format, including the timezone:
    "Mon Sep 04 15:13:13 2006 0700"."""
    if not (1 <= len(args) <= 2):
        # i18n: "date" is a keyword
        raise error.ParseError(_(b"date expects one or two arguments"))

    date = evaldate(
        context,
        mapping,
        args[0],
        # i18n: "date" is a keyword
        _(b"date expects a date information"),
    )
    fmt = None
    if len(args) == 2:
        fmt = evalstring(context, mapping, args[1])
    if fmt is None:
        return dateutil.datestr(date)
    else:
        return dateutil.datestr(date, fmt)


@templatefunc(b'dict([[key=]value...])', argspec=b'*args **kwargs')
def dict_(context, mapping, args):
    """Construct a dict from key-value pairs. A key may be omitted if
    a value expression can provide an unambiguous name."""
    data = util.sortdict()

    for v in args[b'args']:
        k = templateutil.findsymbolicname(v)
        if not k:
            raise error.ParseError(_(b'dict key cannot be inferred'))
        if k in data or k in args[b'kwargs']:
            raise error.ParseError(_(b"duplicated dict key '%s' inferred") % k)
        data[k] = evalfuncarg(context, mapping, v)

    data.update(
        (k, evalfuncarg(context, mapping, v))
        for k, v in args[b'kwargs'].items()
    )
    return templateutil.hybriddict(data)


@templatefunc(
    b'diff([includepattern [, excludepattern]])', requires={b'ctx', b'ui'}
)
def diff(context, mapping, args):
    """Show a diff, optionally
    specifying files to include or exclude."""
    if