Debian Codegraph @

relnotes/7.0

raw
1 # Mercurial 7.0 (2025-03-25)
2
3 ## Mercurial 7.0.3
4
5 - convert: correctly convert sub-hour timezones from Git source
6 - fastexport: fix error message when UTC offset is not a multiple of minutes
7 - hgdemandimport: exclude _contextvars (newly imported from threading)
8 - procutil: actually silence backgrounded process stdio on Windows when asked
9 - bundlespec: fix error in help text
10 - branch: pass correct set of files to memctx() in case of merge (issue6972)
11 - branch: recreate changeset of top of new parents if they were replaced
12 - fix: stop adding unexpected extra requirements to stream clones
13 - crecord: handle bad regexes in search
14 - config: move the --shared and --non-shared flag out of experimental
15 - Test harness improvements
16 - More modern Python fixes
17
18 ## Mercurial 7.0.2
19
20 - rust: document a `pipx` install
21 - keepalive: don't reuse a connection to the proxy for a different host
22 - httppeer: don't put an int in headers
23 - dirstate: fix panic when validating dirstate on write
24 - reject_new_heads: handle None being passed as node
25 - rust-revlog: detect and fix nodemap lagging behind its revlog
26 - General improvements to the CI
27
28 ## Mercurial 7.0.1
29
30 This upgrade is long overdue and fixes a security vulnerability transitive
31 from `zstd` itself.
32
33 - vendor: upgrade to python-zstandard 0.23.0
34
35 ## Mercurial 7.0
36
37 ### Packaging Changes
38
39 The 7.0 release is the first to be compliant with `PEP 517`.
40
41 This required an overhaul of the Mercurial packaging: packagers should pay extra attention to this release and report any issues they might encounter with the new system.
42
43 In practice, this means that Mercurial's `setup.py` can no longer be called directly. Instead, one should build the Mercurial package using PyPA's `build` package
44 (https://github.com/pypa/build). In the general case, this will take care of the build dependencies, but packagers might want to explicitly manage them. Currently the build depends on:
45
46 - `wheel`
47 - `setuptools>=64`
48 - `setuptools_scm>=8.1.0`
49 - `docutils`
50
51 The `Makefile` no longer offers a `build` target.
52 We now use `BuildTools 2022` when building Windows packages.
53
54 ### Other Backwards Compatibility Changes
55
56 - sslutil: bump the default minimum TLS version of the client to 1.2 (BC) (085cc409847d)
57 - setup: require TLS 1.2 support from the Python interpreter (BC) (a820a7a1fce0)
58
59 ### New Features
60
61 - It is now possible to store inline clone bundle outside of .hg (48572371d478)
62 - Added a generic `storage.all-slow-path` option to control the default behavior regarding degraded support for some repository format. (bbbb12632607)
63 - Added a `--to` flag to `hg graft` that allows graft in memory (68dc6cecca32)
64 - Added a `fix.extra-bin-paths` configuration for the `fix` extension (1330278b9029)
65
66 ### New Experimental Features
67
68 - add a --ignore-changes-from-ancestors option (688665425496)
69 - stream-clone: use dedicated threads to write the data on disk (7f848cfc4286, 58baa86c7a02, aee193b1c784)
70 - the experimental `git` extension now supports more commands
71
72 ### Bug Fixes
73
74 - subrepo: fix calling outgoing with multiple paths (85c095c1f8bc)
75 - stream clone: fix a race condition around volatile files (46574e588017, 3f0cf7bb3086)
76 - rhg: set the expected dirstate permissions (0o666 minus umask) (a48c688d3e80)
77 - rhg: fix matcher issue (136e74c2bf8f)
78 - rhg files correctly implements `--rev` (it instead provided `--revision`)
79 - clone-bundles: fix background spawning of automatic generation
80 - bundle-spec: properly format boolean parameter (issue6960)
81 - bundle2: fix a bug where _forwardchunks doesn't work with empty bundles
82
83 ### Rust
84
85 - the Rust code is now exposed to Python though PyO3 instead of `rust-cpython` (6673cec8605c)ยน
86 - rhg: support `status --change`, including `--copies` (bde718849153)
87 - Rust implementation for the internal part of revlogs
88 - Rust implementation for `hg annotate` (6183949219b2)
89 - Rust implementation for `hg update` from a completely empty working copy
90
91 [1] Both `rust-cpython` and `PyO3` bridges are present in this release in case users need to switch back (by changing every `importrust` call) in case something went really wrong in the translation. The `rust-cpython` code will be removed entirely in Mercurial 7.1.
92
93 ### Miscellaneous
94
95 - help: modernize the help text for `hostsecurity.minimumprotocol` (b65085c6d6ff)
96 - run-tests: add a 4th `HGPORT` value (7f8d0c2c3692)
97 - rust-ignore: make `debugignorerhg` command show a full regex, with exact files (e2e49069eeb6)
98 - tests: fix `filtertraceback.py` to handle contiguous `File` lines (8431296a93e8)
99 - typing: moved `interface` logic from `zope` interfaces to `typing.Protocol` (a1c0f19e7cb4)
100 - format: add pattern filtering to debugformat (8dede0df9de9)
101 - run-tests: add a `--tail-report` argument to analyze run parallelism (a814534aaedd)