Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHG8b3f3f10e808: commands: remove pycompat.iteritems()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Alphare |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/commands.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
992aaf46a2cf | ea84e5b1bb6f | Gregory Szorc | Feb 21 2022, 1:08 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | D12339 ui: use input() directly | |
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
@util.cachefunc | @util.cachefunc | ||||
def getbms(): | def getbms(): | ||||
bms = [] | bms = [] | ||||
if b'bookmarks' in peer.listkeys(b'namespaces'): | if b'bookmarks' in peer.listkeys(b'namespaces'): | ||||
hexremoterev = hex(remoterev) | hexremoterev = hex(remoterev) | ||||
bms = [ | bms = [ | ||||
bm | bm | ||||
for bm, bmr in pycompat.iteritems( | for bm, bmr in peer.listkeys(b'bookmarks').items() | ||||
peer.listkeys(b'bookmarks') | |||||
) | |||||
if bmr == hexremoterev | if bmr == hexremoterev | ||||
] | ] | ||||
return sorted(bms) | return sorted(bms) | ||||
if fm.isplain(): | if fm.isplain(): | ||||
if bookmarks: | if bookmarks: | ||||
output.extend(getbms()) | output.extend(getbms()) |