comparison mercurial/changelog.py @ 4267:b11a2fb59cf5

revlog: simplify revlog version handling - pass the default version as an attribute on the opener - eliminate config option mess
author Matt Mackall <mpm@selenic.com>
date Thu, 22 Mar 2007 19:52:38 -0500
parents 1b5c38e9d7aa
children cd7b36b7869c
comparison
equal deleted inserted replaced
4266:1b5c38e9d7aa 4267:b11a2fb59cf5
25 25
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):
31 revlog.__init__(self, opener, "00changelog.i", defversion) 31 revlog.__init__(self, opener, "00changelog.i")
32 32
33 def decode_extra(self, text): 33 def decode_extra(self, text):
34 extra = {} 34 extra = {}
35 for l in text.split('\0'): 35 for l in text.split('\0'):
36 if not l: 36 if not l: