author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Sun, 01 Nov 2009 02:54:32 +0100 | |
changeset 9687 | c6da1cb3b255 |
parent 9686 | ddf2adf88b89 |
child 9688 | dd5a16ad420e |
--- 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