Mercurial > hg
comparison tests/test-parseindex.t @ 37280:435481393198
tests: don't use revlog paths in tests
Debug commands operating on revlogs don't need the full revlog
path: they can accept the relative path to a tracked file or use
-c/-m to specify a changelog or manifest.
Not using the revlog path makes tests more resilient to cases
where revlogs aren't being used for storage.
Differential Revision: https://phab.mercurial-scm.org/D3025
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 02 Apr 2018 15:55:50 -0700 |
parents | 8140ce44dec4 |
children | 806b07d7c7d6 |
comparison
equal
deleted
inserted
replaced
37279:26f6fc179e62 | 37280:435481393198 |
---|---|
141 > # corrupt p1 at rev0 and p2 at rev1 | 141 > # corrupt p1 at rev0 and p2 at rev1 |
142 > d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:] | 142 > d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:] |
143 > open(n + "/.hg/store/00changelog.i", "wb").write(d) | 143 > open(n + "/.hg/store/00changelog.i", "wb").write(d) |
144 > EOF | 144 > EOF |
145 | 145 |
146 $ hg debugindex -f1 limit/.hg/store/00changelog.i | 146 $ hg -R limit debugindex -f1 -c |
147 rev flag offset length size base link p1 p2 nodeid | 147 rev flag offset length size base link p1 p2 nodeid |
148 0 0000 0 63 62 0 0 2 -1 7c31755bf9b5 | 148 0 0000 0 63 62 0 0 2 -1 7c31755bf9b5 |
149 1 0000 63 66 65 1 1 0 2 26333235a41c | 149 1 0000 63 66 65 1 1 0 2 26333235a41c |
150 $ hg debugindex -f1 segv/.hg/store/00changelog.i | 150 $ hg -R segv debugindex -f1 -c |
151 rev flag offset length size base link p1 p2 nodeid | 151 rev flag offset length size base link p1 p2 nodeid |
152 0 0000 0 63 62 0 0 65536 -1 7c31755bf9b5 | 152 0 0000 0 63 62 0 0 65536 -1 7c31755bf9b5 |
153 1 0000 63 66 65 1 1 0 65536 26333235a41c | 153 1 0000 63 66 65 1 1 0 65536 26333235a41c |
154 | 154 |
155 $ cat <<EOF > test.py | 155 $ cat <<EOF > test.py |