comparison mercurial/changelog.py @ 3105:ef4e5d05bac4

Merge with mainline
author Matt Mackall <mpm@selenic.com>
date Sun, 17 Sep 2006 16:02:09 -0500
parents ad6aecaf4eed
children 394ac87f3b74
comparison
equal deleted inserted replaced
3104:e6818b0b8154 3105:ef4e5d05bac4
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()