Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/changelog.py @ 4257:1b5c38e9d7aa
revlog: don't pass datafile as an argument
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 22 Mar 2007 19:12:03 -0500 |
parents | dbc3846c09a1 |
children | b11a2fb59cf5 |
comparison
equal
deleted
inserted
replaced
4256:fe0fe0b4d73b | 4257:1b5c38e9d7aa |
---|---|
26 def _string_unescape(text): | 26 def _string_unescape(text): |
27 return text.decode('string_escape') | 27 return text.decode('string_escape') |
28 | 28 |
29 class changelog(revlog): | 29 class changelog(revlog): |
30 def __init__(self, opener, defversion=REVLOGV0): | 30 def __init__(self, opener, defversion=REVLOGV0): |
31 revlog.__init__(self, opener, "00changelog.i", "00changelog.d", | 31 revlog.__init__(self, opener, "00changelog.i", defversion) |
32 defversion) | |
33 | 32 |
34 def decode_extra(self, text): | 33 def decode_extra(self, text): |
35 extra = {} | 34 extra = {} |
36 for l in text.split('\0'): | 35 for l in text.split('\0'): |
37 if not l: | 36 if not l: |