Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.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 | 416d8b2a75b8 |
children | d66278012853 |
comparison
equal
deleted
inserted
replaced
2081:416d8b2a75b8 | 2082:856f0ba200bc |
---|---|
820 def checkinlinesize(self, tr, fp=None): | 820 def checkinlinesize(self, tr, fp=None): |
821 if not self.inlinedata(): | 821 if not self.inlinedata(): |
822 return | 822 return |
823 if not fp: | 823 if not fp: |
824 fp = self.opener(self.indexfile, 'r') | 824 fp = self.opener(self.indexfile, 'r') |
825 fp.seek(0, 2) | |
825 size = fp.tell() | 826 size = fp.tell() |
826 if size < 131072: | 827 if size < 131072: |
827 return | 828 return |
828 tr.add(self.datafile, 0) | 829 tr.add(self.datafile, 0) |
829 df = self.opener(self.datafile, 'w') | 830 df = self.opener(self.datafile, 'w') |