Mercurial > public > mercurial-scm > hg
diff mercurial/ancestor.py @ 39476:7eadc9407867
ancestor: filter out initial revisions lower than stoprev
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 08 Sep 2018 10:59:24 +0900 |
parents | a60dae060bc8 |
children | 8eb2145ff0fb |
line wrap: on
line diff
--- a/mercurial/ancestor.py Sat Sep 08 10:48:42 2018 +0900 +++ b/mercurial/ancestor.py Sat Sep 08 10:59:24 2018 +0900 @@ -273,7 +273,7 @@ Result does not include the null revision.""" self._parentrevs = pfunc - self._initrevs = revs + self._initrevs = revs = [r for r in revs if r >= stoprev] self._stoprev = stoprev self._inclusive = inclusive