We want to hide the underlying dictionary from the users and provide API for
valid and sane use cases.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG4c6004afd836: mergeresult: introduce getfile() and use it where required
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
mercurial/merge.py | ||
---|---|---|
622 | This pattern is better expressed as self._filemapping.get(filename, default_return) since it avoids an extra lookup. Please submit a follow-up if you think this code is performance sensitive. |
This pattern is better expressed as self._filemapping.get(filename, default_return) since it avoids an extra lookup.
Please submit a follow-up if you think this code is performance sensitive.