Mercurial > hg
view mercurial/utils/__init__.py @ 47319:e985a36c2aa3
upgrade: Use `improvement` subclasses everywhere, not instances
This changes the source definition of optimizations to match that of formats:
a subclass with a decorator, instead of an instance passed to a function call.
Not having any instance removes the confusion between class attributes and
instance attributes, which were used interchangeably.
Differential Revision: https://phab.mercurial-scm.org/D10768
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 21 May 2021 17:12:47 +0200 |
parents | c6061cadb400 |
children |