equal
deleted
inserted
replaced
4 |
4 |
5 import base64 |
5 import base64 |
6 import zlib |
6 import zlib |
7 |
7 |
8 from mercurial import ( |
8 from mercurial import ( |
|
9 bundlecaches, |
9 changegroup, |
10 changegroup, |
10 exchange, |
|
11 extensions, |
11 extensions, |
12 revlog, |
12 revlog, |
13 util, |
13 util, |
14 ) |
14 ) |
15 from mercurial.revlogutils import flagutil |
15 from mercurial.revlogutils import flagutil |
132 flags = [REVIDX_NOOP, REVIDX_BASE64, REVIDX_GZIP, REVIDX_FAIL] |
132 flags = [REVIDX_NOOP, REVIDX_BASE64, REVIDX_GZIP, REVIDX_FAIL] |
133 flagutil.REVIDX_KNOWN_FLAGS |= util.bitsfrom(flags) |
133 flagutil.REVIDX_KNOWN_FLAGS |= util.bitsfrom(flags) |
134 revlog.REVIDX_FLAGS_ORDER.extend(flags) |
134 revlog.REVIDX_FLAGS_ORDER.extend(flags) |
135 |
135 |
136 # Teach exchange to use changegroup 3 |
136 # Teach exchange to use changegroup 3 |
137 for k in exchange._bundlespeccontentopts.keys(): |
137 for k in bundlecaches._bundlespeccontentopts.keys(): |
138 exchange._bundlespeccontentopts[k][b"cg.version"] = b"03" |
138 bundlecaches._bundlespeccontentopts[k][b"cg.version"] = b"03" |
139 |
139 |
140 # Register flag processors for each extension |
140 # Register flag processors for each extension |
141 flagutil.addflagprocessor( |
141 flagutil.addflagprocessor( |
142 REVIDX_NOOP, (noopdonothingread, noopdonothing, validatehash,) |
142 REVIDX_NOOP, (noopdonothingread, noopdonothing, validatehash,) |
143 ) |
143 ) |