* Wed Feb 25 2026 mcepl@cepl.eu
- Don't use %{suse_version} > 1600, when you mean Tumbleweed. It
should be >= 1699 (jsc#PED-15793).
* Thu Jan 29 2026 me@drinkybird.net
- Mercurial 7.2
This is the first release to support Python 3.14 and likely the last to
support Python 3.9.
This release is exceptionally full of changes, and as always a lot of minor
changes have been omitted from these release notes.
+ New Features
* Support for Python 3.14
* Added a `closesbranch()` template keyword
* Added support for support `--remote-hidden` in `hg incoming`
* `hg clone` now supports `--no-stream` to force opt-out of a streamclone
* `hg strip` will optionally accept empty revision sets without bailing out
(`--permit-empty-revset`). This is unconditionally enabled for `hg debugstrip`
* Support for ZSTD is improved by falling back to the system package if the
vendored module is not available. This change mostly affects pure python
installs and helps distributions to use their integrated version by default.
The appropriate package has been added as a Python optional dependency
to help people who need it.
* Added a new `usage.resources.bandwidth` config to tune how aggressive
Mercurial is with its bandwidth usage.
+ Feature moved out of experimental
* `dirstate-v2` format (8c912a652c54)
A better format for storing the working copy information, provides a significant
performance boost to `hg status` performance (and other commands that need that
information like `commit`, `purge`, etc).
The use of `dirstate-v2` can only be recommended when using the Rust
extensions, as the Python version is quite slow at most operations (likely
slower than dirstate-v1).*
See `hg help config.format.use-dirstate-v2` for details.
* `diff.merge` configuration (a1c2e0753d1a)
When set, running `hg diff` on a merge will show the difference compared to the
default merge result instead of the diff against a parent. This is quite useful
to spot changes introduced by a merge and how conflicts were resolved.
See `hg help config.diff.merge` for details.
* `tracked-hint` format (bdd10cd37f6a)
A small format variant that keeps a small file that helps external automation to
detect changes to the set of tracked files.
See `hg help config.revlog.reuse-external-delta-compression` for details.
* Parallel stream clone processing (2cc0954cef52)
The parallel processing of incoming stream bundles is now enabled by default.
See `hg help config.worker.parallel-stream-bundle-processing` for details.
+ Performance improvements for existing features
* `hg purge` (aka `hg clean`) now better leverages the Rust implementation of
"status" when available. This provides performance improvement similar to the
one provided by the rust status.
* The computation of deltas when storing a revision (during `commit`, `clone`,
`push`, `pull`, `unbundle`, ...) was significantly sped up in Mercurial 7.2.
This was achieved by a mix of reducing the amount of useless work done,
improving the algorithms used, and smarter cache usage. All flavors of
Mercurial (using the Rust extensions or not) should see a performance
improvement, but using the Rust extensions will show a more dramatic
improvement (some benchmark move from almost 4 hours to 2 minutes).
(Here is small set of the involved changesets: 916d5b1db75f, a2cbf3d71a94,
2e8ba3356d7e, 4eb879393c45, 855cfc1c7c42, 2cbc32498a83)
* The performance of caches related to tags has been improved when using the
Rust extensions (f93ba6645f8e, eed40a296a18)
* The performance of `commit` has been improved by removing useless computation
* The performance of the Rust index (specifically the nodemap) with large
revlogs has been improved
* Warming a cold filenode tag cache is up to 12% faster
+ New Experimental Features and Formats
+ Narrow-Store's Shapes
We are introducing the concept of "shapes" to improve the experience using
`narrow`. Since using `narrow` implies using a more centralized workflow of
version control, clients being dependent on the server for all practical
matters of exchanging changes, we want to make this hybrid
centralized/distributed world more practical.
The feature is still experimental and actively worked on, but Mercurial 7.2
ships some already usable parts:
* A new server-side configuration (`.hg/store/server-shapes`) to define shapes,
which are normalized and minimal descriptions of views into a slice of a
repository store based on file names
* A new `admin::narrow-server` command to get and list important information
about these shapes
* A new `admin::narrow-client` command to inspect the client state within this
workflow
* `hg bundle` is now able to generate streaming narrow clonebundles from shapes:
* Support for *non-streaming* narrow clonebundles is not implemented yet
* Each such bundle's bundlespec contains the fingerprint of the shape it was
generated with
* A client `hg` can generate the same fingerprint from the narrow patterns
passed to `clone` (`--include`, `--exclude`)
* This makes the client `hg` filter out bundles that do not have the
expected fingerprint
* Old clients will not receive fingerprinted bundles when listing
clonebundles, so backwards compatibility is conserved
* This process is quite manual still, but is expected to improve in the
coming versions
For more detailed information, see `hg help shapes`.
+ File Index
The File Index is a new repository format that supersedes the `fncache` format.
It tracks all file paths ever used within a repository throughout its entire
history (excluding the working copy) and is useful for many common commands.
The File Index is designed for efficient querying and updating and our
benchmarks show significant performance improvements compared to when using the
`fncache`. This is an internal format change that doesn't affect the
availability of any feature.
The introduction of the File Index will also open the door for other
datastructures and algorithms to make use of its internal mapping of unique
file to unique token, further unlocking a ton of performance down the line. You
can learn more about its design by running `hg help internals.file-index`.
While basic support for the file index is implemented in Python, its use is
only recommended when using the Rust extensions for performance reasons.
+ Revlog delta info
The `delta-info-revlog` format variant is a small adjustment to the `revlog-v1`
format to better keep track of some information to help speed up some operations
and improve the internal storage. This is an internal format change that doesn't
affect the availability of any feature.
The new information stored mostly focuses on:
- Does a file revision contain file rename metadata?
- Is a stored delta a "standard delta" or a "snapshot" (of any level)?
- Is the stored delta "small" and which parent is best to find such a "small"
delta?
Having this information around has various benefits:
- We no longer need to manually inspect rename metadata in any case, speeding up
various operations. This especially helps the copy tracing used by `hg status`
and `hg merge` where such checks would add up to ⅓ of the total time.
- We no longer need to worry about `issue6528` on delta-info repositories
(especially during exchanges given that `changegroup-v4` is used)
- Having more information about delta quality and "best parent" helps to
generate better bundles faster when the stored delta cannot be directly
reused.
- Having more precise snapshot information allows for more advanced heuristics
when creating the delta tree used for storage. In particular, it unlocks
skipping over redundant deltas in the parents' chain, using delta folding
heuristics. That last part requires the Rust extensions to be enabled.
Consider giving the format a try on large repositories if you experience slow
`push`/`pull`.
Some of these features are controlled by the following experimental features:
- `storage.revlog.record-delta-quality`
- `storage.delta-fold-estimate`
+ Changegroup v4
A new changegroup format was introduced to carry the new information from
delta-info. The format also includes some extra features that help performance
overall:
- explicitly transfer the full revision size to avoid situations where the
client has to recompute at unbundle time
- explicitly carry the "has metadata" information for filelogs to avoid the need
to detect `issue6528` at unbundle time
- explicitly carry snapshot and quality information regarding exchanged delta to
help the client to take more informed decisions when applying incoming deltas
- explicitly carry the source delta base information to help the client find a
suitable base quicker when receiving a recomputed delta
- allow the exchange of deltas in their compressed form. This reduces the
overall efficiently of compressing the bundle stream, but avoids costs
associated with decompressing and recompressing the deltas on the server *and*
the client. This also helps to identify deltas that won't benefit from being
compressed to speedup their application.
This format is not used by default unless the `delta-info-revlog` format variant
is in use. It can be enabled using the `experimental.changegroup4`
configuration.
The various new features and behaviors associated with it can be controlled
using various configuration options:
- `storage.revlog.exchange-compressed-delta`
- `storage.revlog.reuse-external-delta-compression`
- `storage.revlog.reuse-external-suspicious-delta-parent`
+ Branchmap v3
The V3 version of the branchmap is a small evolution from the V2 format that has
been used. The main difference is that the topological heads are no longer
explicitly listed in the cache. This significantly reduces the size the
branchmap that has to be read and written to disk and allows for various
optimizations when a repository update only affects topological heads on a
branch.
In particular, this new branchmap format drastically reduces the cost of
named-branch-related computations for large repositories that don't use the
feature.
Further performance improvements are expected with further code changes in later
versions (without affecting the format).
That feature is not enabled by default yet, don't hesitate to give it a try on
any repositories with many heads or branches you might have at hand.
+ Rust Fast Path
`rhg` now supports the `purge` (aka `clean`) command, for even better
performance that combines with the on this command gains previously mentioned.
+ Bug Fixes
* The `profiling.output-dir` now supports expansion of tilde and shell variables
* The `lfs` extension now expands and resolves the blob cache path to an
absolute path
* The availability of the given compression engine is now checked before
applying a clonebundle
* Extensions can now alter the contents of the repo's default config when using
stream clone
* Support for changing the process name on Linux and MacOS has been restored
(useful for `chg` users)
* Using `RUST_LOG` when profiling with `py-spy` will not display the logs of
`py-spy` itself anymore
* `hgweb` now validates that plain filesystem paths exist in `--web-conf` file
instead of raising 500
* subrepo: fix an error handler in `hgsubrepo.matchfileset()`
* largefiles: fix a MergeAction bytes vs str issue for marking a file removed
* Local access to repositories with `pull`/`incoming` and `push` now honors
`server.view` (note that `hg clone` in link-mode still does *not* honour
`server.view`, `hg clone --pull` does)
* repo-cache: fix using --chg with the rust extension (issue10048)
* update: fix crash in rust update-from-clean on certain byte sequences
* tracing: avoid writing traces to stdout, write to stderr instead
* verify: fix fncache consistency checks (fixes #10045)
* encoding: skip over "environ" re-encoding it the codec is bad
+ Internal API Changes
The large and ongoing Python typing effort has once again made significant
progress. To that end, there was a large import-cycle-breaking series that
implied refactoring, new files which may make this merge more difficult for
extension maintainers. We're sorry about that, but typing the Python code is
helping us make the codebase a lot clearer and is now catching a lot of bugs
during development, including within common third-party extensions like
`tortoise-hg`.
Raw changes are listed here to help with migrating.
- 54d9dc0c2209 "cleanup: drop compatibility for `islocal(<repo-obj>)`"
- f2aa1bb35860 "deprecations: remove support for `HGWITHRUSTEXT` env var and
its usages"
- f026848bebe4 "deprecations: remove `manifest.readfast`"
- e915f96ea1d5 "deprecations: remove `manifest.readdelta`"
- ee0a7fa4cdd5 "revlog: enforce the "writable parameter""
- 592438265fb3 "cleanup: drop the simplestorerepo extension"
- 4963494bbd3f "bundle2: deprecate `bundle2.getrepocaps()` for hg 7.3"
- a49c8fe2c986 "branchmap: drop the `repo.branchheads` method"
+ Miscellaneous
* Add a `commands.commit.report-head-changes` config option, to remove the need
for what can be an expensive computation in cases where it's not needed.
* contrib: update apache-server Dockerfile to debian:trixie
* Added `--py-installer` option to `run-tests.py` to control how Mercurial is
installed before tests
* Added an `--offline` option to `run-tests.py`
* Documented installation through `uv` for Rust extensions (see `hg help rust`)
Following the significant work made in 7.1 in this area, further changes have
been made to the way developers can create a local copy of Mercurial for
testing. Here are the unedited changes to make it easier to follow for those
affected:
- e2d10987bf26 "make-local: change the venv name"
- e53ba925c7eb "make-local: add a symbolic link hg-local"
- 2d69d5a333a6 "make-local: OFFLINE option"
* Tue Nov 18 2025 me@drinkybird.net
- Mercurial 7.1.2
A scheduled minor release, with few user-facing changes. It is the last release
of the 7.1 cycle, baring any critical release.
* dispatch: reference the Heptapod bug tracker in stacktrace output
* dirstate: read the dirstate data file once instead of doing it 6 times
* rust-revlog: fix adjustment of the LRU size to take the factor in account
* doc: support docutils >= 0.22
* Use old license format in pyproject.toml to help with packaging compatibility
* Improved macOS CI
* Improved test harness robustness
- Remove docutils-022.patch as it's been applied upstream
* Wed Sep 24 2025 daniel.garcia@suse.com
- Add docutils-022.patch to support docutils >= 0.22
* Fri Sep 12 2025 sean@csnxs.uk
- Mercurial 7.1.1
A scheduled minor release containing only one series that is relevant for
these notes.
The series fixes the way we detect non-critical repository corruption due to
issue6528 because, unfortunately, the fix for issue6528 was itself buggy.
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.
* *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.
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.
* issue6528: fix the detection of metadata from delta
* issue6528: avoid creating an intermediate bytes object
* issue6528: don't process snapshot as patches
* issue6528: fix fast path detection of file with metadata
* issue6528: don't report the revision as affect if it just has me
* issue6528: factor out the parent checking
* issue6528: stop trusting repository parent order claiming metadata ex
* issue6528: add --paranoid flag to various call
* issue6528: simplify code flow in _is_revision_affected_fast_inner
* issue6528: directly use delta_has_meta in _is_revision_affected_fast_inner
* Wed Sep 10 2025 me@drinkybird.net
- Restored the ability to run tests at package build time. 'osc build --with tests' works now.
Locale related tests also work now by temporarily pointing it to the location of the locale
files in the build environment.
Tests are still disabled by default, because they take a very long time to run, and are quiet
when running, so OBS often times out the build.
The Rust tests also run clippy which causes errors with the current version.
* Sat Sep 06 2025 me@drinkybird.net
- Package the Mercurial Rust features under the subpackage mercurial-rust.
This includes the Rust extensions for hg, and the standalone pure-Rust implementation, rhg.
These features are currently experimental and have caveats,
consult 'hg help rust' and the subpackage documentation before use.
* Mon Aug 04 2025 me@drinkybird.net
- Mercurial 7.1
+ New Features
* share: add a `--share-source` argument to `hg root`
* fastexport: make it possible to ignore `.gitmodules` in the source repository
+ Many Rust-related changes
* rust-revset: support resolving `wdir()`
* rhg: allow `--repo` as abbreviation for `--repository`
* rhg: support basic aliases
* rhg: support -0 flag in `rhg files`
* rust-annotate: support `-Tjson`
* rust-annotate: support `--rev wdir()`
* rust-annotate: allow `--follow`
* rhg: document known rough edges for the sake of users and packagers
+ Better profiling options, Rust tracebacks and tracing framework
* profiling: support writing profiles to a directory
* tracing: add a way of calling the Rust tracing framework from Python
* rust-errors: add support for a runtime-configured backtrace
* dispatch: enable Rust traceback processing when using `--tracing`
+ Improvement to debug commands
* debugcommands: bring over functionality from debugshell extension
* debugindexdot: add flags for more control over graph
+ Other noteworthy performance work
* `rhg annotate` is up to 61 times faster in certain pathological cases
* Improved performance of the low-level Rust storage primitive
* Removed a lot of syscalls when listing things from storage with high-level APIs
* merge: save one status in certain cases
* merge: improve detection of subrepos in Rust fast path
* Improved the delta encoding algorithm by avoiding computation, using better heuristics and folding deltas
* hgtags-fnode-cache: fast path full warm when no tag exists
+ Developer tooling
* setup-dev-tools: add a first version of script that install dev tools
* setup-dev-tools: add make target to format the working copy using `fix`
* setup-dev-tools: add make target to format the current stack using `fix`
+ New Experimental Features
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.
* rust: add an "update from clean" fast-path
New flags are being added to the revlog and transmitted over the network to help with copytracing and delta encoding.
* revlog: introduce a `FLAG_FILELOG_META` revlog flag and requirements
* changegroup: use `REVIDX_HASMETA` in changegroup '04'
* revlog: add a delta-info-flag requirements
* changegroup: transmit snapshot level information in cg4
* delta-search: add a option to ignore suspicious delta
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.
* store: add a first version of a "plain" encoding
* rust: add support for plain encoding
+ Bug Fixes
* diff: fix function name context detection (issue6965)
* merge: filter ambiguous files and/or wait for fs tick in `applyupdates`
* rust: handle censored revisions according to the config
* changelog: also disable sparse-revlog when disabling generaldelta
* rust-repo: unconditionally load the dirstate before loading the changelog
* revlog: fix a bytes vs str crash when emitting a deprecation warning
* rust-annotate: prefix abort messages with "abort:"
* debugshell: return an exit code 1 on exception
* dirstate: properly purge the cwd cache between commands
* commandserver: always restore working directory (issue6992)
* dispatch: always chdir back in _getlocal
* dispatch: `chdir` back to original `cwd` in `_dispatch`
* ui: avoid a str interpolation into bytes crash in `fixconfig()`
* contrib-hgk: use plain ascii `(C)` instead of latin1 symbol"
+ Backwards Compatibility Changes
* fastexport: add support for Git subrepositories (BC)
* pycompat: drop support for Python 3.8 (BC)
* annotate: use exit code 255 for missing files
* contrib: delete debugshell extension
* rust: update minimum Rust supported version to 1.85.1 for the 7.1 cycle
+ Internal API Changes
* revlog: add "writable" parameter to revlog
* revlog: enforce that filelog get the `writable` parameter passed
+ Miscellaneous
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.
We've migrated our Rust<->Python bridge from using the deprecated `rust-cpython` to the new standard `PyO3`.
* rust: remove `hg-cpython`
* rust: move from `log` to `tracing`-based logging
We've upgraded our CI to be much easier to update, more up-to-date and use smaller images
* ci: switch the "checks" job to a "v3.0" images
Other mentions
* debugnodemap: print a message when no action was specified
* pyproject: SPDX license expression and license-files (PEP 639)
* apache-server: update the setup from Wheezy to Buster
* apache-server: update the README, add Anubis, add notes about ProxyPass
* rust-pyo3: raise proper Exceptions in more cases
* rust-dependencies: upgrade `which` dependency
* rust: move README from rst to md
* contrib: add support for rhel10
* Tue Jul 15 2025 me@drinkybird.net
- Mercurial 7.0.3
* convert: correctly convert sub-hour timezones from Git source
* fastexport: fix error message when UTC offset is not a multiple of minutes
* hgdemandimport: exclude _contextvars (newly imported from threading)
* procutil: actually silence backgrounded process stdio on Windows when asked
* bundlespec: fix error in help text
* branch: pass correct set of files to memctx() in case of merge (issue6972)
* branch: recreate changeset of top of new parents if they were replaced
* fix: stop adding unexpected extra requirements to stream clones
* crecord: handle bad regexes in search
* config: move the --shared and --non-shared flag out of experimental
* Test harness improvements
* More modern Python fixes
- Remove an unused rpmlint filter
- Use %make_build for building docs and chg instead of make directly
* Wed May 07 2025 me@drinkybird.net
- Mercurial 7.0.2
* rust: document a `pipx` install
* keepalive: don't reuse a connection to the proxy for a different host
* httppeer: don't put an int in headers
* dirstate: fix panic when validating dirstate on write
* reject_new_heads: handle None being passed as node
* rust-revlog: detect and fix nodemap lagging behind its revlog
* General improvements to the CI
Version: 7.0.1-160000.2.2
* Mon Apr 07 2025 me@drinkybird.net
- Mercurial 7.0.1
This upgrade is long overdue and fixes a security vulnerability transitive
from `zstd` itself.
* vendor: upgrade to python-zstandard 0.23.0
* Tue Mar 25 2025 me@drinkybird.net
- Mercurial 7.0
+ Packaging Changes
The 7.0 release is the first to be compliant with `PEP 517`.
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.
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
(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:
- `wheel`
- `setuptools>=64`
- `setuptools_scm>=8.1.0`
- `docutils`
The `Makefile` no longer offers a `build` target.
We now use `BuildTools 2022` when building Windows packages.
+ Other Backwards Compatibility Changes
* sslutil: bump the default minimum TLS version of the client to 1.2 (BC) (085cc409847d)
* setup: require TLS 1.2 support from the Python interpreter (BC) (a820a7a1fce0)
+ New Features
* It is now possible to store inline clone bundle outside of .hg (48572371d478)
* Added a generic `storage.all-slow-path` option to control the default
behavior regarding degraded support for some repository format. (bbbb12632607)
* Added a `--to` flag to `hg graft` that allows graft in memory (68dc6cecca32)
* Added a `fix.extra-bin-paths` configuration for the `fix` extension (1330278b9029)
+ New Experimental Features
* add a --ignore-changes-from-ancestors option (688665425496)
* stream-clone: use dedicated threads to write the data on disk (7f848cfc4286, 58baa86c7a02, aee193b1c784)
* the experimental `git` extension now supports more commands
+ Bug Fixes
* subrepo: fix calling outgoing with multiple paths (85c095c1f8bc)
* stream clone: fix a race condition around volatile files (46574e588017, 3f0cf7bb3086)
* rhg: set the expected dirstate permissions (0o666 minus umask) (a48c688d3e80)
* rhg: fix matcher issue (136e74c2bf8f)
* rhg files correctly implements `--rev` (it instead provided `--revision`)
* clone-bundles: fix background spawning of automatic generation
* bundle-spec: properly format boolean parameter (issue6960)
* bundle2: fix a bug where _forwardchunks doesn't work with empty bundles
+ Rust
* the Rust code is now exposed to Python though PyO3 instead of `rust-cpython` (6673cec8605c)
* rhg: support `status --change`, including `--copies` (bde718849153)
* Rust implementation for the internal part of revlogs
* Rust implementation for `hg annotate` (6183949219b2)
* Rust implementation for `hg update` from a completely empty working copy
+ Miscellaneous
* help: modernize the help text for `hostsecurity.minimumprotocol` (b65085c6d6ff)
* run-tests: add a 4th `HGPORT` value (7f8d0c2c3692)
* rust-ignore: make `debugignorerhg` command show a full regex, with exact files (e2e49069eeb6)
* tests: fix `filtertraceback.py` to handle contiguous `File` lines (8431296a93e8)
* typing: moved `interface` logic from `zope` interfaces to `typing.Protocol` (a1c0f19e7cb4)
* format: add pattern filtering to debugformat (8dede0df9de9)
* run-tests: add a `--tail-report` argument to analyze run parallelism (a814534aaedd)
* Thu Mar 20 2025 mcepl@suse.com
- Clean up rpmlint issues
* Wed Mar 19 2025 me@drinkybird.net
- Mercurial 6.9.4
* hgweb: fix XSS vulnerability in hgweb (CVE-2025-2361, bsc#1239685)
* Wed Mar 05 2025 me@drinkybird.net
- Mercurial 6.9.3
out of schedule release to fix a regression introduced in 6.9.2
* fix processing of superfluous requirements specified for streamclone
in clone bundle manifest
* Fri Feb 28 2025 me@drinkybird.net
- Updated to use new build system via pyproject macros. This change
is required for the upcoming 7.0 release, which will remove support
for the old build method.
* Wed Feb 19 2025 me@drinkybird.net
- Mercurial 6.9.2
* narrow: stricter validation of narrowspec patterns
* narrow: stricter validation of narrowspec patterns in rhg
* rhg: fix a bug where only the first pattern in narrowspec was validated
* extensions: allow wrapping a function with a bytes name again
* upgrade: fix a reference to a missing attribute
* bundles: filter out unsupported requirements for non-packed1 format
* dirstate-race: add more output to highlight a "to-be-revealed" bug
* dirstate-race: simplify some output match to highligh an error
* dirstate-race: fix a missing synchronisation in the python code
* dirstatemap: stop setting identity after reading the data
* sshpeer: fix deadlock on short writes
* sshpeer: fix another occurrence of short write handling
* Fri Feb 07 2025 me@drinkybird.net
- Mercurial 6.9.1
* ci: disable caching of the wheels that get built to save space
* tests: use `--no-cache-dir` with `pip`
* run-tests: disable caching of the wheels when installing test Mercurial
* manifest: delay import of `typing.ByteString` for py 3.14 support (issue6940)
* contrib: propagate `pytype` failures outside of `check-pytype.sh`
* acl: fix confusing formatting in help text (issue6942)
* ui: fix escape sequences in in readline prompts (issue6930)
* ci: let branch job run for scheduled build too
* ci: automatically starts platform and py-version test for scheduled build
* help: fix command build with rust
* copyright: update to 2025
* ci: also let the nightly build run on tags
* usage: refactor usage.resources config parsing
* hg-core: fix usage.resources typo
* hg-core: fix usage.resources default logic
* Thu Jan 30 2025 dimstar@opensuse.org
- BuildRequire python-setuptools: Mandatory when building against
Python 3.13.
* Wed Nov 20 2024 develop7@develop7.info
- Mercurial 6.9
+ Backwards Compatibility Changes
* This release drops support for Python 3.6 and 3.7.
* Starting with this release and hopefully for the forseeable future,
we are now building wheels for most architectures.
/!\ 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.
* 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.
+ New Features
* exchange: improve computation of relevant markers for large repos
* Add a Rust fast-path to speed up update (also for `clone`) from null
(up to 4x faster)
* Introduced a new rev-branch-cache version (v2) that is mmap-resistant
* The branchmap's performance was improved
* Improved the performance of the fix for issue6528
* clonebundles: allow manifest to specify sha256 digest of bundles
* merge: improve working-copy mtime race handling
* profiling: add a py-spy profiling backend
* revlog: use an explicit config option to enable mmap usage for index
* revlog: use mmap by default is pre-population is available
* mmap: populate the mapping by default
* mmap: populate mapping in a background thread
+ Experimental features
* merge: add a config to allow conflict-free merge of changes
on adjacent lines
+ Bug Fixes
* `config.server.validate` now also works on narrowed repositories
* convert: fix various leaked file descriptors
* stream: prefer keeping an open file handle to volatile file
instead of copy
* dummysmtpd: fix EOF handling on newer versions of OpenSSL
* cext: correct the argument handling of `b85encode()`
* branchmap-v3: make sure we write the cache after detecting pure-topo mode
* rust: apply clippy lints
* copies: make sure deleted copy info do not overwriting unrelated ones
* rebase: don't call rewriteutil.precheck() with to-be-skipped commits
* phabricator: correct the default value of `phabhunk.corpus`
* linelog: correct the default value of `annotateresult.lines`
* largefiles: avoid a potentially undefined variable in exception case
* httppeer: move a variable to avoid a bad reference before
assignment warning
* httppeer: avoid another bad reference before assignment warning
* tests: use packaging from setuptools instead of deprecated distutils
* manifest: type and fix unhexlify
* manifest: align some vfs option access on the fact we might
not have options
* scmutils: read the requires file before writing to avoid
unnecessary rewrite
* debugsparse: stop taking the store lock
* sparse: reliably avoid writing to store without a lock
* largefiles: sync up `largefilesdirstate` methods with `dirstate`
base class
* shelve: raise an error when loading a corrupt state file in
an impossible case
* monotone: replace %s interpolation with appropriate numeric specifiers
* shelve: consistently convert exception to bytes
via `stringutil.forcebytestr`
* remotefilelog: honor the `--format` arg of the `debugindex` command
* remotefilelog: adapt the `debugindex` command to past API changes
* run-tests: add color to the progress output
* archive: defer opening the output until a file is matched
* help: add :config-doc:`section.key` shorthand to insert documentation
* censor: document the censor.policy option (issue6909)
* rust-revlog: don't try to open the data file if the index is empty
* bundlerepo: fix mismatches with repository and revlog classes
* revlog: make `clearcaches()` signature consistent with ManifestRevlog
* unionrepo: fix mismatches with revlog classes
* keepalive: fix a signature mismatch for
a http.client.HTTPResponse subclass
* lfs: fix various signature mismatches for vfs subclasses
* store: fix a signature mismatch for a vfs subclass
* util: avoid a leaked file descriptor in `util.makelock()`
exceptional case
* statichttprepo: fix `httprangereader.read()` for py3
* util: make `mmapread()` work on Windows again
* mdiff: tweak calls into `bdiff.fixws` to match its type hints
* base85: avoid a spurious use-before-initialized warning in `pure` module
* install: static data moved from setup.py to pyproject.toml
* upgrade: disable using the parallel workers optimization on macOS
* doc: generate separate commands/topics/extension pages
* extdiff: don't run gui programs when in a cli-only environment
* clonebundles: stop shell quoting `HGCB_BUNDLE_BASENAME`
environment variable
* streamclone: disable the volatile file open handle optimization
on Windows
* pytype: add relative timestamp to the output if `ts` is available
* hgweb: skip logging ConnectionAbortedError
+ Internal API Changes
* manifest: deprecated readdelta and readfast
+ Miscellaneous
* http: reuse Python's implementation of read/readline/readinto
* http: use urllib's cookie handler
* rev-branch-cache: schedule a write of the "v2" format if we
read from "v1"
* rev-branch-cache: have debugupdatecache warm rbc too
* rev-branch-cache: reenable memory mapping of the revision data
* debugwireproto: redo logging to also work for https
* rust: use `.cargo/config.toml` instead of `.cargo/config`
* A whole bunch of typing improvements, which in turn found many bugs
* Test suite improvements
* Various packaging improvements