Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/smartset.py @ 49294:b2e05a8e15d1
py3: replace mention of ?xrange? in docstring by ?range?
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:33:39 +0200 |
parents | d44e3c45f0e4 |
children | aea55f2a48b3 |
comparison
equal
deleted
inserted
replaced
49293:56f98406831b | 49294:b2e05a8e15d1 |
---|---|
990 | 990 |
991 class _spanset(abstractsmartset): | 991 class _spanset(abstractsmartset): |
992 """Duck type for baseset class which represents a range of revisions and | 992 """Duck type for baseset class which represents a range of revisions and |
993 can work lazily and without having all the range in memory | 993 can work lazily and without having all the range in memory |
994 | 994 |
995 Note that spanset(x, y) behave almost like xrange(x, y) except for two | 995 Note that spanset(x, y) behave almost like range(x, y) except for two |
996 notable points: | 996 notable points: |
997 - when x < y it will be automatically descending, | 997 - when x < y it will be automatically descending, |
998 - revision filtered with this repoview will be skipped. | 998 - revision filtered with this repoview will be skipped. |
999 | 999 |
1000 """ | 1000 """ |