Mercurial > hg
comparison tests/test-sqlitestore.t @ 48464:5e6542143d40
test: use `hg debugrequires` instead of `cat` in some tests
This give the "same" result, while taking in account that the requirement file
might be in different location, like what `share-safe` is doing.
Differential Revision: https://phab.mercurial-scm.org/D11895
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Dec 2021 05:35:32 +0100 |
parents | f35529784079 |
children | 7ee07e1a25c0 |
comparison
equal
deleted
inserted
replaced
48463:880adb2cd147 | 48464:5e6542143d40 |
---|---|
11 > EOF | 11 > EOF |
12 | 12 |
13 New repo should not use SQLite by default | 13 New repo should not use SQLite by default |
14 | 14 |
15 $ hg init empty-no-sqlite | 15 $ hg init empty-no-sqlite |
16 $ cat empty-no-sqlite/.hg/requires | 16 $ hg debugrequires -R empty-no-sqlite |
17 dotencode | 17 dotencode |
18 dirstate-v2 (dirstate-v2 !) | 18 dirstate-v2 (dirstate-v2 !) |
19 fncache | 19 fncache |
20 generaldelta | 20 generaldelta |
21 persistent-nodemap (rust !) | 21 persistent-nodemap (rust !) |
25 store | 25 store |
26 | 26 |
27 storage.new-repo-backend=sqlite is recognized | 27 storage.new-repo-backend=sqlite is recognized |
28 | 28 |
29 $ hg --config storage.new-repo-backend=sqlite init empty-sqlite | 29 $ hg --config storage.new-repo-backend=sqlite init empty-sqlite |
30 $ cat empty-sqlite/.hg/requires | 30 $ hg debugrequires -R empty-sqlite |
31 dotencode | 31 dotencode |
32 dirstate-v2 (dirstate-v2 !) | 32 dirstate-v2 (dirstate-v2 !) |
33 exp-sqlite-001 | 33 exp-sqlite-001 |
34 exp-sqlite-comp-001=zstd (zstd !) | 34 exp-sqlite-comp-001=zstd (zstd !) |
35 exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$ (no-zstd !) | 35 exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$ (no-zstd !) |
47 > EOF | 47 > EOF |
48 | 48 |
49 Can force compression to zlib | 49 Can force compression to zlib |
50 | 50 |
51 $ hg --config storage.sqlite.compression=zlib init empty-zlib | 51 $ hg --config storage.sqlite.compression=zlib init empty-zlib |
52 $ cat empty-zlib/.hg/requires | 52 $ hg debugrequires -R empty-zlib |
53 dotencode | 53 dotencode |
54 dirstate-v2 (dirstate-v2 !) | 54 dirstate-v2 (dirstate-v2 !) |
55 exp-sqlite-001 | 55 exp-sqlite-001 |
56 exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$ | 56 exp-sqlite-comp-001=$BUNDLE2_COMPRESSIONS$ |
57 fncache | 57 fncache |
63 store | 63 store |
64 | 64 |
65 Can force compression to none | 65 Can force compression to none |
66 | 66 |
67 $ hg --config storage.sqlite.compression=none init empty-none | 67 $ hg --config storage.sqlite.compression=none init empty-none |
68 $ cat empty-none/.hg/requires | 68 $ hg debugrequires -R empty-none |
69 dotencode | 69 dotencode |
70 dirstate-v2 (dirstate-v2 !) | 70 dirstate-v2 (dirstate-v2 !) |
71 exp-sqlite-001 | 71 exp-sqlite-001 |
72 exp-sqlite-comp-001=none | 72 exp-sqlite-comp-001=none |
73 fncache | 73 fncache |