view relnotes/6.6 @ 51871:cfd30df0f8e4

bundlerepo: fix mismatches with repository and revlog classes Both pytype and PyCharm complained that `write()` and `_write()` in the bundlephasecache class aren't proper overrides- indeed they seem to be missing an argument that the base class has. PyCharm and pytype also complained that the `revlog.revlog` class doesn't have a `_chunk()` method. That looks like it was moved from revlog to `_InnerRevlog` back in e8ad6d8de8b8, and wasn't caught because this module wasn't type checked. However, I couldn't figure out a syntax with `revlog.revlog._inner._chunk(self, rev)`, as it complained about passing too many args. `bundlerevlog._rawtext()` uses this `super(...)` style to call the super class, so hopefully that works, even with the wonky dynamic subclassing. The revlog class needed the `_InnerRevlog` field typed because it isn't set in the constructor. Finally, the vfs type hints look broken. This initially failed with: File "/mnt/c/Users/Matt/hg/mercurial/bundlerepo.py", line 65, in __init__: Function readonlyvfs.__init__ was called with the wrong arguments [wrong-arg-types] Expected: (self, vfs: mercurial.vfs.vfs) Actually passed: (self, vfs: Callable) Called from (traceback): line 232, in dirlog line 214, in __init__ I don't see a raw Callable, but I tried changing some of the vfs args to be typed as `vfsmod.abstractvfs`, but that class doesn't have `options`, so it failed elsewhere. `readonlyvfs` isn't a subclass of `vfs` (it's a subclass of `abstractvfs`), so I'm not sure how to handle that. It would be a shame to have to make a union of vfs subclasses (but not all of them have `options` either).
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 03 Aug 2024 01:33:13 -0400
parents 3fd1efb3ad12
children
line wrap: on
line source

= Mercurial 6.6.3 =

 * tests: don't use "status" operand of dd in test-censor.t (issue6858)
 * tests: make sha256line.py available for all tests
 * tests: use sha256line.py instead of /dev/random in test-censor.t (issue6858)
 * tests: fix nondeterministic test failure in test-contrib-perf.t
 * rust-changelog: don't panic on empty file lists
 * grep: restore usage of --include/--exclude options

 = Mercurial 6.6.2 =

 * histedit: remove superfluous echo() and endwin() calls (issue6859)
 * persistent-nodemap: avoid writing nodemap for empty revlog
 * persistent-nodemap: respect the mmap setting when refreshing data
 * bundle: do not detect --base argument that match nothing as lack of argument
 * narrow: prevent removal of ACL-defined excludes
 * pycompat: fix bytestr(bytes) in Python 3.11

= Mercurial 6.6.1 =

The first two patches fix aborted transactions that could happen since 6.6.

 * revlog: avoid exposing delayed index entry too widely in non-inline revlog
 * revlog: avoid wrongly updating the data file location on "divert"
 * tests: do not fail tests in a state with uncommitted .py file removal
 * perf-tags: fix the --clear-fnode-cache-rev code
 * perf-tags: fix clear_cache_fnodes to actually clear that cache
 * censor: fix things around inlining
 * Various Python 3 cleanups
 * Various Windows test suite fixes

= Mercurial 6.6 =

As usual, a *lot* of patches don't make it to this list.

== New Features ==
 * rust-config: add support for default config items
 * rhg: add config defaults to configitems.toml
 * rhg: support "status FILE"
 * rhg: support rhg files [FILE]
 * commands: add admin namespace
 * admin-command: add verify command
 * debug-delta-chain: add options to control what we compute
 * Added some caching for uncompressed revlog chunks that speed up some operations

== New Experimental Features ==

== Bug Fixes ==
 * Improve OpenVMS support
 * byteify-strings: passe sysstr to attr function and wrapper
 * journal: track bookmark deletion
 * transaction: actually delete file created during the transaction on rollback
 * pull: avoid referencing a variable before it is initialized
 * rust-filepatterns: also normalize RelPath
 * narrow: hoist a variable to a higher level to avoid use-before-init warning
 * convert: stabilize subversion date sorter
 * run-tests: detect HGWITHRUSTEXT value
 * censor: accept censored revision during upgrade
 * rust-matchers: fix quadratic complexity in `FileMatcher`
 * unstable: do not consider internal phases when computing unstable
 * Still a whole bunch of Python 2 -> 3 migration leftovers

== Backwards Compatibility Changes ==
 * perf: display all timing by default
 * infinitepush: drop the extension
 * debug-delta-chain: print less data by default

== Internal API Changes ==

 * The revlog interface has been significantly cleaned up.
 * configitems: add `documentation` field
 * configitems: declare items in a TOML file
 * configitems: move blackbox's config items to the new configitems.toml
 * path-suboption: deprecated specifying the attributes as bytes
 * pycompat: deprecate using bytes
 * check-code: drop the `safehasattr` rule
 * safehasattr: drop usage in favor of hasattr
 * rust: add `UncheckedRevision` type
 * rust: implement the `Graph` trait for all revlogs
 * rust: make `Revision` a newtype
 * perf: change the way we approach revlog reading
 * perf: ensure all readlog's reading is done within a `reading` context
 * delta-chain: move the debugdeltachain command in revlogutils

== Miscellaneous ==