Mercurial > hg
comparison mercurial/manifest.py @ 4258: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 | ff7253a0d1da |
comparison
equal
deleted
inserted
replaced
4257:1b5c38e9d7aa | 4258:b11a2fb59cf5 |
---|---|
33 else: self._flags[f] = "" | 33 else: self._flags[f] = "" |
34 def copy(self): | 34 def copy(self): |
35 return manifestdict(dict.copy(self), dict.copy(self._flags)) | 35 return manifestdict(dict.copy(self), dict.copy(self._flags)) |
36 | 36 |
37 class manifest(revlog): | 37 class manifest(revlog): |
38 def __init__(self, opener, defversion=REVLOGV0): | 38 def __init__(self, opener): |
39 self.mapcache = None | 39 self.mapcache = None |
40 self.listcache = None | 40 self.listcache = None |
41 revlog.__init__(self, opener, "00manifest.i", defversion) | 41 revlog.__init__(self, opener, "00manifest.i") |
42 | 42 |
43 def parselines(self, lines): | 43 def parselines(self, lines): |
44 for l in lines.splitlines(1): | 44 for l in lines.splitlines(1): |
45 yield l.split('\0') | 45 yield l.split('\0') |
46 | 46 |