Mercurial > public > mercurial-scm > hg
comparison mercurial/appendfile.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 | abaee83ce0a6 |
children | eb081ba21eff |
comparison
equal
deleted
inserted
replaced
4257:1b5c38e9d7aa | 4258:b11a2fb59cf5 |
---|---|
145 | 145 |
146 # files for changelog and manifest are in different appendopeners, so | 146 # files for changelog and manifest are in different appendopeners, so |
147 # not mixed up together. | 147 # not mixed up together. |
148 | 148 |
149 class appendchangelog(changelog.changelog, appendopener): | 149 class appendchangelog(changelog.changelog, appendopener): |
150 def __init__(self, opener, version): | 150 def __init__(self, opener): |
151 appendopener.__init__(self, opener) | 151 appendopener.__init__(self, opener) |
152 changelog.changelog.__init__(self, self, version) | 152 changelog.changelog.__init__(self, self) |
153 def checkinlinesize(self, fp, tr): | 153 def checkinlinesize(self, fp, tr): |
154 return | 154 return |
155 | 155 |
156 class appendmanifest(manifest.manifest, appendopener): | 156 class appendmanifest(manifest.manifest, appendopener): |
157 def __init__(self, opener, version): | 157 def __init__(self, opener): |
158 appendopener.__init__(self, opener) | 158 appendopener.__init__(self, opener) |
159 manifest.manifest.__init__(self, self, version) | 159 manifest.manifest.__init__(self, self) |
160 def checkinlinesize(self, fp, tr): | 160 def checkinlinesize(self, fp, tr): |
161 return | 161 return |