Debian Codegraph @

relnotes/7.1

raw
1 # Mercurial 7.1 (2025-08-04)
2
3 ## Mercurial 7.1.2
4
5 A scheduled minor release, with few user-facing changes. It is the last release
6 of the 7.1 cycle, baring any critical release.
7
8 * dispatch: reference the Heptapod bug tracker in stacktrace output
9 * dirstate: read the dirstate data file once instead of doing it 6 times
10 * rust-revlog: fix adjustment of the LRU size to take the factor in account
11 * doc: support docutils >= 0.22
12 * Use old license format in pyproject.toml to help with packaging compatibility
13 * Improved macOS CI
14 * Improved test harness robustness
15
16 ## Mercurial 7.1.1
17
18 A scheduled minor release containing only one series that is relevant for these notes.
19
20 The series fixes the way we detect non-critical repository corruption due to issue6528 because, unfortunately, the fix for issue6528 was itself buggy.
21
22 This means that if your repo had the on-the-fly rewrite option on (which is the default), too many file revisions will have been marked as having metadata, potentially costing you a bit of performance because Mercurial will look for metadata that isn't there.
23
24 **Your repository will behave completely fine by not doing anything**, and we even have work well underway that changes how we flag file revisions with metadata, removing the root of this problem entirely.
25
26 If you want to fix this however, as with the original issue, this problem is contagious across the wire so you need to first upgrade to 7.1.1 to get the correct on-the-fly rewrite, and then run the `hg debug-repair-issue6528` command to repair your clone. Consult the help of this command for more options.
27
28 * issue6528: fix the detection of metadata from delta
29 * issue6528: avoid creating an intermediate bytes object
30 * issue6528: don't process snapshot as patches
31 * issue6528: fix fast path detection of file with metadata
32 * issue6528: don't report the revision as affect if it just has me
33 * issue6528: factor out the parent checking
34 * issue6528: stop trusting repository parent order claiming metadata ex
35 * issue6528: add --paranoid flag to various call
36 * issue6528: simplify code flow in _is_revision_affected_fast_inner
37 * issue6528: directly use delta_has_meta in _is_revision_affected_fast_inner
38
39 ## Mercurial 7.1
40
41 This release is the first that does **not** support Python 3.8.
42
43 As always, a lot of patches don't make it to the release notes.
44
45 ### New Features
46
47 * share: add a `--share-source` argument to `hg root`
48 * fastexport: make it possible to ignore `.gitmodules` in the source repository
49
50 Many Rust-related changes
51 * rust-revset: support resolving `wdir()`
52 * rhg: allow `--repo` as abbreviation for `--repository`
53 * rhg: support basic aliases
54 * rhg: support -0 flag in `rhg files`
55 * rust-annotate: support `-Tjson`
56 * rust-annotate: support `--rev wdir()`
57 * rust-annotate: allow `--follow`
58 * rhg: document known rough edges for the sake of users and packagers
59
60 Better profiling options, Rust tracebacks and tracing framework
61 * profiling: support writing profiles to a directory
62 * tracing: add a way of calling the Rust tracing framework from Python
63 * rust-errors: add support for a runtime-configured backtrace
64 * dispatch: enable Rust traceback processing when using `--tracing`
65
66 Improvement to debug commands
67 * debugcommands: bring over functionality from debugshell extension
68 * debugindexdot: add flags for more control over graph
69
70 Other noteworthy performance work
71
72 * `rhg annotate` is up to 61 times faster in certain pathological cases
73 * Improved performance of the low-level Rust storage primitive
74 * Removed a lot of syscalls when listing things from storage with high-level APIs
75 * merge: save one status in certain cases
76 * merge: improve detection of subrepos in Rust fast path
77 * Improved the delta encoding algorithm by avoiding computation, using better heuristics and folding deltas
78 * hgtags-fnode-cache: fast path full warm when no tag exists
79
80 Developer tooling
81
82 * setup-dev-tools: add a first version of script that install dev tools
83 * setup-dev-tools: add make target to format the working copy using `fix`
84 * setup-dev-tools: add make target to format the current stack using `fix`
85
86 ### Default Format Change
87
88 No default format changes this version.
89
90 ### New Experimental Features
91
92 Following last version's "update from null", this is a Rust version of the update logic when all tracked files are clean and we are not merging. It is on by default if you have Rust enabled: if you encounter any problems use `rust.update-from-clean=no` to disable it, and please let us know what the problem is.
93
94 * rust: add an "update from clean" fast-path
95
96 New flags are being added to the revlog and transmitted over the network to help with copytracing and delta encoding.
97
98 * revlog: introduce a `FLAG_FILELOG_META` revlog flag and requirements
99 * changegroup: use `REVIDX_HASMETA` in changegroup '04'
100 * revlog: add a delta-info-flag requirements
101 * changegroup: transmit snapshot level information in cg4
102 * delta-search: add a option to ignore suspicious delta
103
104 A temporary store encoding that should only exist for one version of Mercurial, until we get a better solution to a very specific problem that you probably don't have.
105
106 * store: add a first version of a "plain" encoding
107 * rust: add support for plain encoding
108
109 ### Bug Fixes
110
111 * diff: fix function name context detection (issue6965)
112 * merge: filter ambiguous files and/or wait for fs tick in `applyupdates`
113 * rust: handle censored revisions according to the config
114 * changelog: also disable sparse-revlog when disabling generaldelta
115 * rust-repo: unconditionally load the dirstate before loading the changelog
116 * revlog: fix a bytes vs str crash when emitting a deprecation warning
117 * rust-annotate: prefix abort messages with "abort:"
118 * debugshell: return an exit code 1 on exception
119 * dirstate: properly purge the cwd cache between commands
120 * commandserver: always restore working directory (issue6992)
121 * dispatch: always chdir back in _getlocal
122 * dispatch: `chdir` back to original `cwd` in `_dispatch`
123 * ui: avoid a str interpolation into bytes crash in `fixconfig()`
124 * contrib-hgk: use plain ascii `(C)` instead of latin1 symbol"
125
126 ### Backwards Compatibility Changes
127
128 * fastexport: add support for Git subrepositories (BC)
129 * pycompat: drop support for Python 3.8 (BC)
130 * annotate: use exit code 255 for missing files
131 * contrib: delete debugshell extension
132 * rust: update minimum Rust supported version to 1.85.1 for the 7.1 cycle
133
134 ### Internal API Changes
135
136 * revlog: add "writable" parameter to revlog
137 * revlog: enforce that filelog get the `writable` parameter passed
138
139 ### Miscellaneous
140
141 As with every release for a while, there were a ton of patches helping with adding typing information to our Python code, and catching bugs while doing so. The Pytype CI job itself was upgraded to be more helpful.
142
143 We've migrated our Rust<->Python bridge from using the deprecated `rust-cpython` to the new standard `PyO3`.
144
145 * rust: remove `hg-cpython`
146 * rust: move from `log` to `tracing`-based logging
147
148 We've upgraded our CI to be much easier to update, more up-to-date and use smaller images
149
150 * ci: switch the "checks" job to a "v3.0" images
151
152 Other mentions
153 * debugnodemap: print a message when no action was specified
154 * pyproject: SPDX license expression and license-files (PEP 639)
155 * apache-server: update the setup from Wheezy to Buster
156 * apache-server: update the README, add Anubis, add notes about ProxyPass
157 * rust-pyo3: raise proper Exceptions in more cases
158 * rust-dependencies: upgrade `which` dependency
159 * rust: move README from rst to md
160 * contrib: add support for rhel10