diff -r 49ef9d0ca815 -r 6b786dc88612 mercurial/commands.py --- a/mercurial/commands.py Wed Feb 20 11:31:38 2013 -0800 +++ b/mercurial/commands.py Wed Feb 20 11:31:41 2013 -0800 @@ -4215,10 +4215,10 @@ displayer.show(ctx, copies=copies, matchfn=revmatchfn) for ctx in cmdutil.walkchangerevs(repo, matchfn, opts, prep): + if displayer.flush(ctx.rev()): + count += 1 if count == limit: break - if displayer.flush(ctx.rev()): - count += 1 displayer.close() @command('manifest',