Debian Codegraph @

relnotes/6.9

raw
1 # Mercurial 6.9 (2024-11-20)
2
3 ## Mercurial 6.9.5
4
5 This upgrade is long overdue and fixes a security vulnerability transitive
6 from `zstd` itself.
7
8 - vendor: upgrade to python-zstandard 0.23.0
9
10 ## Mercurial 6.9.4
11
12 - hgweb: fix XSS vulnerability in hgweb (CVE-2025-2361)
13
14 ## Mercurial 6.9.3
15
16 ⚠️ out of schedule release to fix a regression introduced in 6.9.2
17
18 - fix processing of superfluous requirements specified for streamclone in clone bundle manifest
19
20 ## Mercurial 6.9.2
21
22 - narrow: stricter validation of narrowspec patterns
23 - narrow: stricter validation of narrowspec patterns in rhg
24 - rhg: fix a bug where only the first pattern in narrowspec was validated
25 - extensions: allow wrapping a function with a bytes name again
26 - upgrade: fix a reference to a missing attribute
27 - bundles: filter out unsupported requirements for non-packed1 format
28 - dirstate-race: add more output to highlight a "to-be-revealed" bug
29 - dirstate-race: simplify some output match to highligh an error
30 - dirstate-race: fix a missing synchronisation in the python code
31 - dirstatemap: stop setting identity after reading the data
32 - sshpeer: fix deadlock on short writes
33 - sshpeer: fix another occurrence of short write handling
34
35 ## Mercurial 6.9.1
36
37 - ci: disable caching of the wheels that get built to save space
38 - tests: use `--no-cache-dir` with `pip`
39 - run-tests: disable caching of the wheels when installing test Mercurial
40 - manifest: delay import of `typing.ByteString` for py 3.14 support (issue6940)
41 - contrib: propagate `pytype` failures outside of `check-pytype.sh`
42 - acl: fix confusing formatting in help text (issue6942)
43 - ui: fix escape sequences in in readline prompts (issue6930)
44 - ci: let branch job run for scheduled build too
45 - ci: automatically starts platform and py-version test for scheduled build
46 - help: fix command build with rust
47 - copyright: update to 2025
48 - ci: also let the nightly build run on tags
49 - usage: refactor usage.resources config parsing
50 - hg-core: fix usage.resources typo
51 - hg-core: fix usage.resources default logic
52
53 ## Mercurial 6.9
54
55 ### Backwards Compatibility Changes
56
57 - This release drops support for Python 3.6 and 3.7.
58 - Starting with this release and hopefully for the forseeable future, we are now building wheels for most architectures.
59 ⚠️ Note that for Rust users installing via `pip` or `pipx`, you will need to specify `--no-binary` to continue using Rust since we do not yet package the Rust compilation in our wheels. We plan on fixing this for 7.0.
60 - Python 3.13 changed how it handles docstrings (namely removing uniform leading whitespace for every line), which forced us to align the representation of our help text with this new behavior across all versions. Due to this and a lack of time and expertise from contributors, a lot of existing translations could be missing. The effort of i18n in general has died down many years ago, but if this matters to you, feel free to send your contributions.
61
62
63 ### New Features
64
65 - exchange: improve computation of relevant markers for large repos
66 - Add a Rust fast-path to speed up update (also for `clone`) from null (up to 4x faster)
67 - Introduced a new rev-branch-cache version (v2) that is mmap-resistant
68 - The branchmap's performance was improved
69 - Improved the performance of the fix for issue6528
70 - clonebundles: allow manifest to specify sha256 digest of bundles
71 - merge: improve working-copy mtime race handling
72 - profiling: add a py-spy profiling backend
73 - revlog: use an explicit config option to enable mmap usage for index
74 - revlog: use mmap by default is pre-population is available
75 - mmap: populate the mapping by default
76 - mmap: populate mapping in a background thread
77
78 ### Experimental features
79
80 - merge: add a config to allow conflict-free merge of changes on adjacent lines
81
82 ### Bug Fixes
83
84 - `config.server.validate` now also works on narrowed repositories
85 - convert: fix various leaked file descriptors
86 - stream: prefer keeping an open file handle to volatile file instead of copy
87 - dummysmtpd: fix EOF handling on newer versions of OpenSSL
88 - cext: correct the argument handling of `b85encode()`
89 - branchmap-v3: make sure we write the cache after detecting pure-topo mode
90 - rust: apply clippy lints
91 - copies: make sure deleted copy info do not overwriting unrelated ones
92 - rebase: don't call rewriteutil.precheck() with to-be-skipped commits
93 - phabricator: correct the default value of `phabhunk.corpus`
94 - linelog: correct the default value of `annotateresult.lines`
95 - largefiles: avoid a potentially undefined variable in exception case
96 - httppeer: move a variable to avoid a bad reference before assignment warning
97 - httppeer: avoid another bad reference before assignment warning
98 - tests: use packaging from setuptools instead of deprecated distutils
99 - manifest: type and fix unhexlify
100 - manifest: align some vfs option access on the fact we might not have options
101 - scmutils: read the requires file before writing to avoid unnecessary rewrite
102 - debugsparse: stop taking the store lock
103 - sparse: reliably avoid writing to store without a lock
104 - largefiles: sync up `largefilesdirstate` methods with `dirstate` base class
105 - shelve: raise an error when loading a corrupt state file in an impossible case
106 - monotone: replace %s interpolation with appropriate numeric specifiers
107 - shelve: consistently convert exception to bytes via `stringutil.forcebytestr`
108 - remotefilelog: honor the `--format` arg of the `debugindex` command
109 - remotefilelog: adapt the `debugindex` command to past API changes
110 - run-tests: add color to the progress output
111 - archive: defer opening the output until a file is matched
112 - help: add :config-doc:`section.key` shorthand to insert documentation
113 - censor: document the censor.policy option (issue6909)
114 - rust-revlog: don't try to open the data file if the index is empty
115 - bundlerepo: fix mismatches with repository and revlog classes
116 - revlog: make `clearcaches()` signature consistent with ManifestRevlog
117 - unionrepo: fix mismatches with revlog classes
118 - keepalive: fix a signature mismatch for a http.client.HTTPResponse subclass
119 - lfs: fix various signature mismatches for vfs subclasses
120 - store: fix a signature mismatch for a vfs subclass
121 - util: avoid a leaked file descriptor in `util.makelock()` exceptional case
122 - statichttprepo: fix `httprangereader.read()` for py3
123 - util: make `mmapread()` work on Windows again
124 - mdiff: tweak calls into `bdiff.fixws` to match its type hints
125 - base85: avoid a spurious use-before-initialized warning in `pure` module
126 - install: static data moved from setup.py to pyproject.toml
127 - upgrade: disable using the parallel workers optimization on macOS
128 - doc: generate separate commands/topics/extension pages
129 - extdiff: don't run gui programs when in a cli-only environment
130 - clonebundles: stop shell quoting `HGCB_BUNDLE_BASENAME` environment variable
131 - streamclone: disable the volatile file open handle optimization on Windows
132 - pytype: add relative timestamp to the output if `ts` is available
133 - hgweb: skip logging ConnectionAbortedError
134
135 ### Internal API Changes
136
137 - manifest: deprecated readdelta and readfast
138
139 ### Miscellaneous
140
141 - http: reuse Python's implementation of read/readline/readinto
142 - http: use urllib's cookie handler
143 - rev-branch-cache: schedule a write of the "v2" format if we read from "v1"
144 - rev-branch-cache: have debugupdatecache warm rbc too
145 - rev-branch-cache: reenable memory mapping of the revision data
146 - debugwireproto: redo logging to also work for https
147 - rust: use `.cargo/config.toml` instead of `.cargo/config`
148 - A whole bunch of typing improvements, which in turn found many bugs
149 - Test suite improvements
150 - Various packaging improvements
151
152 Below are many, many changes that have to do with building/testing wheels,
153 adding some sharding to the CI and MacOS + Windows compatibility work:
154
155 - ci: abstract the branch matching regexp
156 - ci: add "sink" for parallel tests
157 - ci: for branches, use a single trigger
158 - packaging: explain why we purge while building wheels
159 - wheels: rely on the image config to be able to access the repository
160 - packaging: remove the i686 wheel from the linux-wheels target
161 - packaging: propagate the make option to packaging target
162 - packaging: factor the linux-wheels-x86_64 a bit
163 - wheel: add a target for amdx86_64-musl wheels
164 - wheel: also build the musl wheel in the ci
165 - wheel: reintroduce the building of i686 wheel
166 - wheels: also build the i686 wheel in the CI
167 - contrib: install the arm64 compiler tools in the Windows dependency script
168 - contrib: add a bat file to build all of the wheels on Windows
169 - wheels: remove deprecated blacklist
170 - wheels: make sure we create the `dist/` directory in the make target
171 - contrib: add a script to build all of the wheels on macOS
172 - wheel: also build wheel for linux arm64 in the CI
173 - ci: add sink for wheels too
174 - run-tests: don't use shell call for subprocess
175 - run-tests: add a --hg-wheel options to test a pre-built wheel
176 - ci: unify the way `check-pytype` inherit the common setting
177 - ci: split the jobs on more stage
178 - ci: build a wheel and use it to run c tests
179 - tests: stabilize `test-extdiff.t` on macOS
180 - tests: disable `test-git-interop.t` with a requirements directive
181 - tests: disable a section of `test-hgrc.t` that may hit a zeroconf bug
182 - ci: add a runner for Windows 10
183 - tests: treat `select` as a built-in module on Windows
184 - tests: disable a section of `test-paths.t` that may hit a zeroconf bug
185 - tests: conditionalize missing output in test-racy-mutations.t on Windows
186 - tests: add a "missing" tests for manifest content in test-racy-mutations.t
187 - tests: bump the wait timeouts in test-racy-mutations.t
188 - test-install: use the global hg for the install step
189 - test-install: glob instance of "python" in warning
190 - ci: pre-adjust some identation
191 - setup: add a way to force the setup to translate (or fail)
192 - ci: use smaller VM to build wheel
193 - ci: use a pre-setup many-linux image to build wheel
194 - ci: build (and use) wheel for all supported version
195 - ci: automatically compute the python tag we use to identify tag
196 - run-tests: install wheel using --prefix instead of --user
197 - pycompat: drop some now useless workaround for makedirs
198 - wheel: build mac os wheel through the CI
199 - ci: use the macos wheel to run tests
200 - ci: use extends instead of <<: *x
201 - ci: move some variables closer to their usage
202 - ci: rationalize variable usage
203 - ci: abstract the of absolute /tmp/ path
204 - ci: move the "tempory work dir" to "concurrency-safe" location
205 - ci: adjust the starting port range to runner concurrency
206 - ci: have the mac test run if you trigger building the mac wheel
207 - run-tests: implement crude sharding support
208 - ci: shard the test run on mac os X
209 - dev-version: change the scheme of non tagged version
210 - wheel: enforce that translation being build for macos wheel
211 - run-tests: focus on listing the selected test for the shard tests
212 - run-tests: cleanup the "output" directory after the related tests
213 - tests: drop PYTHONPATH manipulation in test-pushvars.t
214 - windows: work around argument size limitation in test-bookmarks-pushpull.t
215 - windows: adjust PYTHONPATH update in test-status-color.t
216 - ci: use a concurrency safe TMP dir on Windows
217 - ci: again common element into a `.windows` template
218 - ci: split the windows runtest invocation into more granular variables
219 - windows: skip test-clonebundles-autogen.t in the CI
220 - ci: adjust port range on windows too
221 - windows: simply rely on the PATH adjustment to find python.exe in tests
222 - wheel: assign CIBW_SKIP globally
223 - wheel: make --hg-wheel works on Windows
224 - wheel: build Windows wheels too
225 - wheel: explicitly list built architecture
226 - wheel: test the built wheel in the windows tests
227 - ci: shard the tests on windows too
228 - wheel: enforce that translation being build for windows wheel
229 - setup: remote a debug statement that slipped through
230 - setup: factor version computation in a function
231 - setup: use the same code to compute tag from archive
232 - wheel: add a platform level to the wheel directories
233 - wheel: add a job uploading nightly build
234 - wheels: factor the core of Linux wheel building into a script
235 - wheels: update the Linux wheels make target
236 - clone: properly exclude rev-branch-cache from post clone cache warming
237 - setup: make sure Rust build its extension for the right python
238 - setup: preserve version part after the "+" on Windows
239 - wheel: build windows wheel for ARM64 too
240 - ci: adds a trigger for all pycompat jobs
241 - ci: let the Windows runner decide how many job they want to run