Argh!!!
Matt Mackall
mpm at selenic.com
Wed Mar 14 22:25:10 UTC 2007
On Wed, Mar 14, 2007 at 03:34:41PM -0700, Brendan Cully wrote:
> On Wednesday, 14 March 2007 at 16:22, Matt Mackall wrote:
> > The size of each index entry is 64 bytes:
> >
> > $ python
> > Python 2.4.4 (#2, Jan 13 2007, 17:50:26)
> > [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> 254976/64.0
> > 3984.0
> >
> > To truncate it back to manifest revision 3980, do something like:
> > >>> 3980 * 64
> > 254720
> >
> > $ cp manifest.i manifest.i.orig
> > $ dd if=manifest.i.orig of=manifest.i bs=1 count=254720
> >
> > Then it should be readable.
>
> Smaller revlogs use inline data (no corresponding .d file), and won't
> have predictable boundaries. I can't think of anything to do but to
> make hg gracefully ignore data after short reads or parse errors.
Yep, we really should catch that parse error.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list