Details
Details
- Reviewers
marmoute - Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
mercurial/localrepo.py | ||
---|---|---|
535–549 | This does not seems to need to be a closure. Can we make it a normal function? |
Comment Actions
More serious question: Maybe we should stop passing around tuple of dictionnary and return an object holding all that data with a better API. What do you think ?
mercurial/localrepo.py | ||
---|---|---|
535–549 | This code ideally should not be used outside this function. Hence a closure. |
Comment Actions
That is a bad reason to use a closure. Make the function private and move it at the module level.
(Mercurial used to be full of this strange closure and this was a pain)
mercurial/localrepo.py | ||
---|---|---|
535–549 | Still a closure, please make it not a closure. |
mercurial/localrepo.py | ||
---|---|---|
535–549 | Fixed. |
This does not seems to need to be a closure. Can we make it a normal function?