mercurial/commands.py
changeset 18711 6b786dc88612
parent 18706 f17680992123
child 18746 c0087d48ec3a
--- 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',