comparison tests/test-revlog-packentry @ 5338:f87685355c9c

revlog: fix revlogio.packentry corner case We want to store version information about the revlog in the first entry of its index. The code in packentry was using some heuristics to detect whether this was the first entry, but these heuristics could fail in some cases (e.g. rev 0 was empty; rev 1 descends directly from the nullid and is stored as a delta). We now give the revision number to packentry to avoid heuristics.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Wed, 26 Sep 2007 01:58:45 -0300
parents
children
comparison
equal deleted inserted replaced
5337:8c5ef3b87cb1 5338:f87685355c9c
1 #!/bin/sh
2
3 hg init repo
4 cd repo
5
6 touch foo
7 hg ci -Am 'add foo'
8
9 hg up -C null
10 # this should be stored as a delta against rev 0
11 echo foo bar baz > foo
12 hg ci -Am 'add foo again'
13
14 hg debugindex .hg/store/data/foo.i