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() |