Mercurial > public > mercurial-scm > hg-stable
diff mercurial/smartset.py @ 32836:e962c70c0aad
smartset: change repr of spanset to show revisions as half-open range
Before, an empty spanset was displayed as '<spanset+ 0:-1>', which seemed
confusing.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 11 Jun 2017 00:21:38 +0900 |
parents | 2cfdf5241096 |
children | 9ddb18ae342e |
line wrap: on
line diff
--- a/mercurial/smartset.py Mon Jun 12 15:34:31 2017 -0700 +++ b/mercurial/smartset.py Sun Jun 11 00:21:38 2017 +0900 @@ -1021,7 +1021,7 @@ def __repr__(self): d = {False: '-', True: '+'}[self._ascending] return '<%s%s %d:%d>' % (type(self).__name__, d, - self._start, self._end - 1) + self._start, self._end) class fullreposet(spanset): """a set containing all revisions in the repo