Mercurial > hg
changeset 44481:8b5f5d8ad783
gitlog: implement __iter__ on changelog
This allows `hg phase --force --draft -r .` to work, for example.
Differential Revision: https://phab.mercurial-scm.org/D8264
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 07 Mar 2020 17:44:55 -0500 |
parents | f19491aae641 |
children | 21893ff382cd |
files | hgext/git/gitlog.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/git/gitlog.py Sat Mar 07 17:42:40 2020 -0500 +++ b/hgext/git/gitlog.py Sat Mar 07 17:44:55 2020 -0500 @@ -103,6 +103,9 @@ except error.LookupError: return False + def __iter__(self): + return iter(pycompat.xrange(len(self))) + @property def filteredrevs(self): # TODO: we should probably add a refs/hg/ namespace for hidden