equal
deleted
inserted
replaced
6 > [format] |
6 > [format] |
7 > use-persistent-nodemap=yes |
7 > use-persistent-nodemap=yes |
8 > [devel] |
8 > [devel] |
9 > persistent-nodemap=yes |
9 > persistent-nodemap=yes |
10 > EOF |
10 > EOF |
11 $ hg init test-repo |
11 |
|
12 $ hg init test-repo --config storage.revlog.persistent-nodemap.slow-path=allow |
12 $ cd test-repo |
13 $ cd test-repo |
|
14 |
|
15 Check handling of the default slow-path value |
|
16 |
|
17 #if no-pure no-rust |
|
18 |
|
19 $ hg id |
|
20 warning: accessing `persistent-nodemap` repository without associated fast implementation. |
|
21 (check `hg help config.format.use-persistent-nodemap` for details) |
|
22 000000000000 tip |
|
23 |
|
24 Unlock further check (we are here to test the feature) |
|
25 |
|
26 $ cat << EOF >> $HGRCPATH |
|
27 > [storage] |
|
28 > # to avoid spamming the test |
|
29 > revlog.persistent-nodemap.slow-path=allow |
|
30 > EOF |
|
31 |
|
32 #endif |
|
33 |
|
34 |
13 $ hg debugformat |
35 $ hg debugformat |
14 format-variant repo |
36 format-variant repo |
15 fncache: yes |
37 fncache: yes |
16 dotencode: yes |
38 dotencode: yes |
17 generaldelta: yes |
39 generaldelta: yes |
21 persistent-nodemap: yes |
43 persistent-nodemap: yes |
22 copies-sdc: no |
44 copies-sdc: no |
23 plain-cl-delta: yes |
45 plain-cl-delta: yes |
24 compression: zlib |
46 compression: zlib |
25 compression-level: default |
47 compression-level: default |
26 $ hg debugbuilddag .+5000 --new-file --config "storage.revlog.nodemap.mode=warn" |
48 $ hg debugbuilddag .+5000 --new-file |
27 persistent nodemap in strict mode without efficient method (no-rust no-pure !) |
49 |
28 persistent nodemap in strict mode without efficient method (no-rust no-pure !) |
|
29 $ hg debugnodemap --metadata |
50 $ hg debugnodemap --metadata |
30 uid: ???????????????? (glob) |
51 uid: ???????????????? (glob) |
31 tip-rev: 5000 |
52 tip-rev: 5000 |
32 tip-node: 6b02b8c7b96654c25e86ba69eda198d7e6ad8b3c |
53 tip-node: 6b02b8c7b96654c25e86ba69eda198d7e6ad8b3c |
33 data-length: 121088 |
54 data-length: 121088 |
114 Check slow-path config value handling |
135 Check slow-path config value handling |
115 ------------------------------------- |
136 ------------------------------------- |
116 |
137 |
117 $ hg id --config "storage.revlog.persistent-nodemap.slow-path=invalid-value" |
138 $ hg id --config "storage.revlog.persistent-nodemap.slow-path=invalid-value" |
118 unknown value for config "storage.revlog.persistent-nodemap.slow-path": "invalid-value" |
139 unknown value for config "storage.revlog.persistent-nodemap.slow-path": "invalid-value" |
119 falling back to default value: allow |
140 falling back to default value: warn |
|
141 warning: accessing `persistent-nodemap` repository without associated fast implementation. (no-pure no-rust !) |
|
142 (check `hg help config.format.use-persistent-nodemap` for details) (no-pure no-rust !) |
120 6b02b8c7b966+ tip |
143 6b02b8c7b966+ tip |
121 |
144 |
122 #if no-pure no-rust |
145 #if no-pure no-rust |
123 |
146 |
|
147 $ hg log -r . --config "storage.revlog.persistent-nodemap.slow-path=warn" |
|
148 warning: accessing `persistent-nodemap` repository without associated fast implementation. |
|
149 (check `hg help config.format.use-persistent-nodemap` for details) |
|
150 changeset: 5000:6b02b8c7b966 |
|
151 tag: tip |
|
152 user: debugbuilddag |
|
153 date: Thu Jan 01 01:23:20 1970 +0000 |
|
154 summary: r5000 |
|
155 |
124 $ hg ci -m 'foo' --config "storage.revlog.nodemap.mode=strict" |
156 $ hg ci -m 'foo' --config "storage.revlog.nodemap.mode=strict" |
125 transaction abort! |
157 transaction abort! |
126 rollback completed |
158 rollback completed |
127 abort: persistent nodemap in strict mode without efficient method |
159 abort: persistent nodemap in strict mode without efficient method |
128 [255] |
160 [255] |