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.
Details
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
| mercurial/upgrade_utils/actions.py | ||
|---|---|---|
| 49–90 | Why are dropping these comment? it seems useful. | |
| mercurial/upgrade_utils/actions.py | ||
|---|---|---|
| 49–90 | This docstring used to document instance attributes, but instances attributes aren’t used anymore. Class attributes already have individual comments in the base class definition with mostly the same content. I had missed that touches_* class attributes were not documented individually, I’ll restore that (even though these comments are not doing much besides paraphrasing what the attribute names are already saying). | |
| mercurial/upgrade_utils/actions.py | ||
|---|---|---|
| 49–90 | okay, thanks for the explanation. | |
Why are dropping these comment? it seems useful.