[Commented On] D8566: cleanup: use mergestate.unresolvedcount() instead of bool(list(unresolved()))

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Jun 8 18:02:21 UTC 2020


marmoute added a comment.


  how well, I see why you want an explicite method to avoid unrolling the iterator. Could we return an object with sensible __bool__ and __len__ methods?

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8566/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8566

To: durin42, #hg-reviewers
Cc: marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200608/1d8dce81/attachment.html>


More information about the Mercurial-patches mailing list