Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.py @ 20845:bc95143446e8
_addset: add a __len__ method
Back in the time where repo.revs(...) returned a list, calling `len(...)` on the
result was quite common. We reinstall this on _addset.
There is absolutely no easy way to test this from the command line. The commands
using this in the evolve extension will eventually land into core.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 20 Mar 2014 18:55:28 -0700 |
parents | 47d43e2323c5 |
children | 876c17336b4e |
line wrap: on
line diff