D2232: treemanifest: add an optimized __nonzero__()

2018-02-13 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGdbb131ffdc4d: treemanifest: add an optimized __nonzero__() (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D2232: treemanifest: add an optimized __nonzero__()

2018-02-13 Thread indygreg (Gregory Szorc)
indygreg accepted this revision. indygreg added a comment. This revision is now accepted and ready to land. Perhaps we should formalize the manifest interface with an abstract base class... REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2232 To: martinvonz,

D2232: treemanifest: add an optimized __nonzero__()

2018-02-13 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY We use bool(manifest) in at least some places: localrepo.py:1730 hgweb/webcommands.py:524 Since the treemanifest class doesn't define