Mercurial > hg
changeset 9687:c6da1cb3b255
log --limit: break after a limited number of csets (broken by f3d60543924f)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 01 Nov 2009 02:54:32 +0100 |
parents | ddf2adf88b89 |
children | dd5a16ad420e |
files | mercurial/commands.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Oct 31 18:17:59 2009 +0100 +++ b/mercurial/commands.py Sun Nov 01 02:54:32 2009 +0100 @@ -2069,9 +2069,10 @@ displayer.show(ctx, copies=copies) for ctx in cmdutil.walkchangerevs(repo, matchfn, opts, prep): - if count != limit: - if displayer.flush(ctx.rev()): - count += 1 + if count == limit: + break + if displayer.flush(ctx.rev()): + count += 1 def manifest(ui, repo, node=None, rev=None): """output the current or given revision of the project manifest