mercurial/changelog.py
changeset 3077 ad6aecaf4eed
parent 2859 345bac2bc4ec
child 3232 394ac87f3b74
equal deleted inserted replaced
3076:1a792e4a1f3a 3077:ad6aecaf4eed
    14     def __init__(self, opener, defversion=REVLOGV0):
    14     def __init__(self, opener, defversion=REVLOGV0):
    15         revlog.__init__(self, opener, "00changelog.i", "00changelog.d",
    15         revlog.__init__(self, opener, "00changelog.i", "00changelog.d",
    16                         defversion)
    16                         defversion)
    17 
    17 
    18     def extract(self, text):
    18     def extract(self, text):
       
    19         """
       
    20         format used:
       
    21         nodeid\n  : manifest node in ascii
       
    22         user\n    : user, no \n or \r allowed
       
    23         time tz\n : date (time is int or float, timezone is int)
       
    24         files\n\n : files modified by the cset, no \n or \r allowed
       
    25         (.*)      : comment (free text, ideally utf-8)
       
    26         """
    19         if not text:
    27         if not text:
    20             return (nullid, "", (0, 0), [], "")
    28             return (nullid, "", (0, 0), [], "")
    21         last = text.index("\n\n")
    29         last = text.index("\n\n")
    22         desc = text[last + 2:]
    30         desc = text[last + 2:]
    23         l = text[:last].splitlines()
    31         l = text[:last].splitlines()