Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 10111:27457d31ae3f
cmdutil: replace sys.maxint with None as default value in loglimit
Semantically, it is better to use None over any other value when there is
"no value". Using maxint in this context is quite hackish, and is not forward
compatible.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 14 Dec 2009 00:32:29 +0900 |
parents | 9e2ab10728a2 |
children | 56284451a22c |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Dec 21 12:18:43 2009 +0200 +++ b/mercurial/cmdutil.py Mon Dec 14 00:32:29 2009 +0900 @@ -95,7 +95,7 @@ raise util.Abort(_('limit must be a positive integer')) if limit <= 0: raise util.Abort(_('limit must be positive')) else: - limit = sys.maxint + limit = None return limit def remoteui(src, opts):