Mercurial > hg
comparison tests/flagprocessorext.py @ 42732:6d61be152c55
flagutil: move addflagprocessor to the new module (API)
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Aug 2019 01:59:43 +0200 |
parents | 92ac6b1697a7 |
children | bd5858c28bbe |
comparison
equal
deleted
inserted
replaced
42731:5109217a9ab6 | 42732:6d61be152c55 |
---|---|
111 # Teach exchange to use changegroup 3 | 111 # Teach exchange to use changegroup 3 |
112 for k in exchange._bundlespeccontentopts.keys(): | 112 for k in exchange._bundlespeccontentopts.keys(): |
113 exchange._bundlespeccontentopts[k][b"cg.version"] = b"03" | 113 exchange._bundlespeccontentopts[k][b"cg.version"] = b"03" |
114 | 114 |
115 # Register flag processors for each extension | 115 # Register flag processors for each extension |
116 revlog.addflagprocessor( | 116 flagutil.addflagprocessor( |
117 REVIDX_NOOP, | 117 REVIDX_NOOP, |
118 ( | 118 ( |
119 noopdonothing, | 119 noopdonothing, |
120 noopdonothing, | 120 noopdonothing, |
121 validatehash, | 121 validatehash, |
122 ) | 122 ) |
123 ) | 123 ) |
124 revlog.addflagprocessor( | 124 flagutil.addflagprocessor( |
125 REVIDX_BASE64, | 125 REVIDX_BASE64, |
126 ( | 126 ( |
127 b64decode, | 127 b64decode, |
128 b64encode, | 128 b64encode, |
129 bypass, | 129 bypass, |
130 ), | 130 ), |
131 ) | 131 ) |
132 revlog.addflagprocessor( | 132 flagutil.addflagprocessor( |
133 REVIDX_GZIP, | 133 REVIDX_GZIP, |
134 ( | 134 ( |
135 gzipdecompress, | 135 gzipdecompress, |
136 gzipcompress, | 136 gzipcompress, |
137 bypass | 137 bypass |