Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/filemerge.py @ 24030:828dc8db5515
revlog: add __contains__ for fast membership test
Because revlog implements __iter__, "rev in revlog" works but does silly O(n)
lookup unexpectedly. So it seems good to add fast version of __contains__.
This allows "rev in repo.changelog" in the next patch.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 04 Feb 2015 21:25:57 +0900 |
parents | 41c03b7592ed |
children | be83fd9d46d5 |
comparison
equal
deleted
inserted
replaced
24029:e1dbe0b215ae | 24030:828dc8db5515 |
---|