mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
07df6adfb5
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.
15 lines
212 B
Bash
Executable File
15 lines
212 B
Bash
Executable File
#!/bin/sh
|
|
|
|
hg init repo
|
|
cd repo
|
|
|
|
touch foo
|
|
hg ci -Am 'add foo'
|
|
|
|
hg up -C null
|
|
# this should be stored as a delta against rev 0
|
|
echo foo bar baz > foo
|
|
hg ci -Am 'add foo again'
|
|
|
|
hg debugindex .hg/store/data/foo.i
|