mercurial/manifest.py
changeset 24226 b992769dd1be
parent 24225 3e5c4af69808
child 24277 22d560fe1516
equal deleted inserted replaced
24225:3e5c4af69808 24226:b992769dd1be
    85         _hex = revlog.hex
    85         _hex = revlog.hex
    86         # if this is changed to support newlines in filenames,
    86         # if this is changed to support newlines in filenames,
    87         # be sure to check the templates/ dir again (especially *-raw.tmpl)
    87         # be sure to check the templates/ dir again (especially *-raw.tmpl)
    88         return ''.join("%s\0%s%s\n" % (
    88         return ''.join("%s\0%s%s\n" % (
    89             f, _hex(n[:20]), flag) for f, n, flag in fl)
    89             f, _hex(n[:20]), flag) for f, n, flag in fl)
       
    90 
       
    91 try:
       
    92     _lazymanifest = parsers.lazymanifest
       
    93 except AttributeError:
       
    94     pass
    90 
    95 
    91 class manifestdict(object):
    96 class manifestdict(object):
    92     def __init__(self, data=''):
    97     def __init__(self, data=''):
    93         self._lm = _lazymanifest(data)
    98         self._lm = _lazymanifest(data)
    94 
    99