This is more consistent.
Details
- Reviewers
spectral Alphare - Group Reviewers
hg-reviewers - Commits
- rHG76c071bba40d: bookmarks: add support for `mirror` mode to `incoming`
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
mercurial/bookmarks.py | ||
---|---|---|
816 | I find the single line version of these functions much easier to read. | |
825 | Nit: use set(localmarks) instead of set(repo._bookmarks)? Also, perhaps I'm less familiar with idiomatic python and this isn't confusing for others, but would it make sense to explicitly use .keys() (so we have allmarks = set(remotemarks.keys()) | set(localmarks.keys())? It would have likely avoided a small amount of confusion I had a few lines below. |
mercurial/bookmarks.py | ||
---|---|---|
825 | I think set(dict) is quite idiomatic, but using .keys is indeed clearer so lets do it. |
I find the single line version of these functions much easier to read.