diff -r 9ed13f718e53 -r 27457d31ae3f mercurial/commands.py --- a/mercurial/commands.py Mon Dec 21 12:18:43 2009 +0200 +++ b/mercurial/commands.py Mon Dec 14 00:32:29 2009 +0900 @@ -1924,7 +1924,7 @@ displayer = cmdutil.show_changeset(ui, other, opts) count = 0 for n in o: - if count >= limit: + if limit is not None and count >= limit: break parents = [p for p in other.changelog.parents(n) if p != nullid] if opts.get('no_merges') and len(parents) == 2: @@ -2179,7 +2179,7 @@ displayer = cmdutil.show_changeset(ui, repo, opts) count = 0 for n in o: - if count >= limit: + if limit is not None and count >= limit: break parents = [p for p in repo.changelog.parents(n) if p != nullid] if opts.get('no_merges') and len(parents) == 2: