Page MenuHomePhabricator

mergestate: optimize unresolvedcount() a little bit
Needs ReviewPublic

Authored by durin42 on Mon, May 18, 6:08 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

It struck me as wasteful to make this extra list copy of a generator. I was
hoping to manage to return a bool instead of an int (and thus avoid traversing
the dictionary past the first unresolved entry) but at least one caller cares
about the count and this is the easy way forward while still making me
marginally happier.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage