comparison hgweb.cgi @ 51821:c371134fef01

remotefilelog: adapt the `debugindex` command to past API changes Pytype was missing these problems because it's currently inferring the classes for `filelog` and `revlog` to be `Any`. When that's fixed, these were flagged, so fix these first. The `filelog` class used to subclass `revlog`, but that was changed back in 1541e1a8e87d (with most or all of the "lost" attributes being forwarded to the embedded `revlog` attribute at that time). These forwarded references were dropped over time, and this command has been broken at least as far back as 68282a7b29a7 when the `version` field was dropped. Most of the fixes were as simple as calling the accessor for the embedded `revlog` member, but the general delta feature detection was a bit more involved- I copied the detection for it from `mercurial.revlogutils.debug.debug_revlog()`.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 21 Aug 2024 17:41:57 -0400
parents d5cd1fd690f3
children
comparison
equal deleted inserted replaced
51820:71fb6e0a7a35 51821:c371134fef01