Normal
     ˆÂÁÄ484_‘I|¥‰ÓMdœv ©ƒ†ü+=ÉÈ ä    ‹      ½”]o›0†ïû+<_ìN’²ij�§"-Z¾”0µÓ´8#Ù'Mº_?25›m“¦] <ø¼Ï1†½ˆgQòi>$ï“É˜Ì?¾�"B=€ûë NâîAà÷ú Ã)%´Dln v»�¿»öµ) Y@‰›* ‹F¥èg˜Q~ÅÚ{üŠ°RŠÌ�	C…•ä£:“{¢sz‹Ve2€­5`Ka$¬Å£°©QÂF`¹{hG6[„6Š-—�ë-,“Ñƒw/W°Tßd²ØVÂ0èê¸Êp,ÍV:{jõÿCuWä +V‡íÐp†%y•*ê�¢n(gjSkÒ�‚JumaU‰ú«_¨œQaH?�¢ÙÇ–íÛœ	R™‡ômNogaLùTl$qž™8æŽò±°H6:S¹’ÙExÙÁ­ÉE&î˜XvRº~FÁ)žª¦º²�p®¯œAiN©É~×‘þÔŒùÝb8MâÑ¢kIÖNñœî_¯%ås7E�$VF¦¨ÍÓQµ«û²^ÙæöÇ%9ŠU”H9!9Kþ…=Ê=žÚ'ÉYï‰Pµ¿¶”§)‰5èz^ï�7xMúÁÍ  äèvú‡Ëùÿp�áøõ38ì<Ý¿à;…¸S%n    4   ˆl–Ðz¾”ªC]ŠqAàZ¸Ë*bÑ¿Žþ_"Î6\#->éóÇ156ÆÊÉ  œ        <   e   l   m   p   t   x   |   }   …   ˆ   Œ   �   %f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N España  ES ESP E   Ô   español es spa spa ISO-8859-15      ˆÄÃÆ509¿ÊÉ ý    ‹      µ”]oÓ0†ï÷+Œ/¸KN?Â&mŽa4•¨´µUqáÄNâ-µ#Û¥-¿§é´‚Z>Ä¸²�¼>ç}Ž�M^$³Qúi>FïÒÛ4ÿöf2B8 ø0$iÒýˆÂ^`<ÅWÎ5— ëõ:\CmJHP¹e�uFæ.äŽczFÚoô‘J0îGDœtµ ÅÅé�^9+¹ˆ`eØŠJsqoáMÆ2QCS¯J©»UŽm±i´q[Õ.(Œ^B-3]\Ÿ	ö©H¦ù¶uÐÿÙ|ÐËvIÛ©¡ÄUè+«e©bìtƒ)‘ËY“Çd®•…¬fê!,e�«]Œ?OF³/^®jwSÂPeDã×£xz5‹L§l)°ãš[¯¹Æô†Y‡–šËB
~R|×‰ïä·Ó“N“›Ù8©Õ“<â!j®kÛ0ÏúÊTæPÕIøïªÁòŠ1¿^Œ§i2Yt%ámˆ'wÏqv˜Îý6åP"�È�6Û=^—ë¥Êlsõ¸D{óF–•Ã¡ Uþ±wHœ~L�²Ê¶aÃ{‹éãìÐçOÆ½AôÎƒþ9êõ/£„N£‹á?¬ÔƒÒkuá[â(Dã�—•Â›×
ÓÃÕsÀ Aï0Ø¦°¿Àv��î¹úsÙ]ž    B   ˆl–äY>”JeJe@†à¸Û*bÑ¿�þ[| Y¹BáYI#MùÈ„ ßÇ_ŠI|¥�+Wé3ž¯ÌË ?÷     # Copyright 2009-2010 Gregory P. Ward
# Copyright 2009-2010 Intelerad Medical Systems Incorporated
# Copyright 2010-2011 Fog Creek Software
# Copyright 2010-2011 Unity Technologies
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

'''High-level command function for lfconvert, plus the cmdtable.'''

import binascii
import os
import shutil

from mercurial.i18n import _
from mercurial.node import (
    bin,
    hex,
)

from mercurial import (
    cmdutil,
    context,
    error,
    exthelper,
    hg,
    lock,
    logcmdutil,
    match as matchmod,
    pycompat,
    scmutil,
    util,
)
from mercurial.utils import hashutil

from ..convert import (
    convcmd,
    filemap,
)

from . import lfutil, storefactory

release = lock.release

# -- Commands ----------------------------------------------------------

eh = exthelper.exthelper()


@eh.command(
    b'lfconvert',
    [
        (
            b's',
            b'size',
            b'',
            _(b'minimum size (MB) for files to be converted as largefiles'),
            b'SIZE',
        ),
        (
            b'',
            b'to-normal',
            False,
            _(b'convert from a largefiles repo to a normal repo'),
        ),
    ],
    _(b'hg lfconvert SOURCE DEST [FILE ...]'),
    norepo=True,
    inferrepo=True,
)
def lfconvert(ui, src, dest, *pats, **opts):
    """convert a normal repository to a largefiles repository

    Convert repository SOURCE to a new repository DEST, identical to
    SOURCE except that certain files will be converted as largefiles:
    specifically, any file that matches any PATTERN *or* whose size is
    above the minimum size threshold is converted as a largefile. The
    size used to determine whether or not to track a file as a
    largefile is the size of the first version of the file. The
    minimum size can be specified either with --size or in
    configuration as ``largefiles.size``.

    After running this command you will need to make sure that
    largefiles is enabled anywhere you intend to push the new
    repository.

    Use --to-normal to convert largefiles back to normal files; after
    this, the DEST repository can be used without largefiles at all."""

    opts = pycompat.byteskwargs(opts)
    if opts[b'to_normal']:
        tolfile = False
    else:
        tolfile = True
        size = lfutil.getminsize(ui, True, opts.get(b'size'), default=None)

    if not hg.islocal(src):
        raise error.Abort(_(b'%s is not a local Mercurial repo') % src)
    if not hg.islocal(dest):
        raise error.Abort(_(b'%s is not a local Mercurial repo') % dest)

    rsrc = hg