Mercurial > hg
comparison tests/test-revlog-packentry.t @ 34441:50474f0b3f1b
changelog: use a Factory for default value for files
The default value is compiled into the generated type. This means
that default values are shared between instances. For immutable types
like bool, str, int, and tuple, this is fine. But for mutable types
like list and dict, we need to use attr.Factory() to instantiate a
new instance of the default for each object.
Differential Revision: https://phab.mercurial-scm.org/D901
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 02 Oct 2017 11:03:53 +0100 |
parents | 6cc1f388ac80 |
children | 009d0283de5f |
comparison
equal
deleted
inserted
replaced
34440:7ed0750c71a1 | 34441:50474f0b3f1b |
---|