Mercurial > public > mercurial-scm > hg
comparison mercurial/changelog.py @ 1364:0f25830f6bc3
Fix data reported for the nullid changeset
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 29 Sep 2005 15:18:32 -0700 |
parents | 085e3fc189b6 |
children | cf9a1233738a |
comparison
equal
deleted
inserted
replaced
1363:8549335d19fc | 1364:0f25830f6bc3 |
---|---|
13 def __init__(self, opener): | 13 def __init__(self, opener): |
14 revlog.__init__(self, opener, "00changelog.i", "00changelog.d") | 14 revlog.__init__(self, opener, "00changelog.i", "00changelog.d") |
15 | 15 |
16 def extract(self, text): | 16 def extract(self, text): |
17 if not text: | 17 if not text: |
18 return (nullid, "", "0", [], "") | 18 return (nullid, "", (0, 0), [], "") |
19 last = text.index("\n\n") | 19 last = text.index("\n\n") |
20 desc = text[last + 2:] | 20 desc = text[last + 2:] |
21 l = text[:last].splitlines() | 21 l = text[:last].splitlines() |
22 manifest = bin(l[0]) | 22 manifest = bin(l[0]) |
23 user = l[1] | 23 user = l[1] |