changeset 9687 | c6da1cb3b255 |
parent 9679 | a1943c2a4661 |
child 9689 | 57cee011ffcb |
--- 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