log --limit: break after a limited number of csets (broken by
f3d60543924f)
--- 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