Previously, copy() only worked if the cache was full. We teach
copy() to only copy defined nodes.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGb31b01f93b11: util: properly copy lrucachedict instances
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
mercurial/util.py | ||
---|---|---|
1302 | Btw, why doesn't this do return self[k] instead? It seems surprising that the recency is not updated. |
mercurial/util.py | ||
---|---|---|
1302 | Yes, this does feel like a bug. But it feels unrelated to the series, no? I can certainly code up a patch easily enough. I may tack one on the end of the series... |
mercurial/util.py | ||
---|---|---|
1302 | Yes, definitely unrelated (that's what the "Btw" was supposed to mean, but I could have been clearer) |
Btw, why doesn't this do return self[k] instead? It seems surprising that the recency is not updated.