Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/appendfile.py @ 2082:856f0ba200bc
Additional appendfile fixes for interleaved data/index files
The appendfile code was not passing default version info to the
changelog or manifest classes, and so they were always being created
as version 0.
revlog.checkinlinesize had to be corrected to seek to the end
of the index file when no index file was passed (only clone does this)
author | mason@suse.com |
---|---|
date | Sat, 08 Apr 2006 20:08:06 -0400 |
parents | 343aeefb553b |
children | cb99c711c59f |
comparison
equal
deleted
inserted
replaced
2081:416d8b2a75b8 | 2082:856f0ba200bc |
---|---|
178 | 178 |
179 # files for changelog and manifest are in different appendopeners, so | 179 # files for changelog and manifest are in different appendopeners, so |
180 # not mixed up together. | 180 # not mixed up together. |
181 | 181 |
182 class appendchangelog(changelog.changelog, appendopener): | 182 class appendchangelog(changelog.changelog, appendopener): |
183 def __init__(self, opener): | 183 def __init__(self, opener, version): |
184 appendopener.__init__(self, opener) | 184 appendopener.__init__(self, opener) |
185 changelog.changelog.__init__(self, self) | 185 changelog.changelog.__init__(self, self, version) |
186 def checkinlinesize(self, fp, tr): | 186 def checkinlinesize(self, fp, tr): |
187 return | 187 return |
188 | 188 |
189 class appendmanifest(manifest.manifest, appendopener): | 189 class appendmanifest(manifest.manifest, appendopener): |
190 def __init__(self, opener): | 190 def __init__(self, opener, version): |
191 appendopener.__init__(self, opener) | 191 appendopener.__init__(self, opener) |
192 manifest.manifest.__init__(self, self) | 192 manifest.manifest.__init__(self, self, version) |
193 def checkinlinesize(self, fp, tr): | 193 def checkinlinesize(self, fp, tr): |
194 return | 194 return |