mercurial/commands.py
changeset 10111 27457d31ae3f
parent 10060 f780b1098efc
child 10152 56284451a22c
--- a/mercurial/commands.py	Mon Dec 21 12:18:43 2009 +0200
+++ b/mercurial/commands.py	Mon Dec 14 00:32:29 2009 +0900
@@ -1924,7 +1924,7 @@
         displayer = cmdutil.show_changeset(ui, other, opts)
         count = 0
         for n in o:
-            if count >= limit:
+            if limit is not None and count >= limit:
                 break
             parents = [p for p in other.changelog.parents(n) if p != nullid]
             if opts.get('no_merges') and len(parents) == 2:
@@ -2179,7 +2179,7 @@
     displayer = cmdutil.show_changeset(ui, repo, opts)
     count = 0
     for n in o:
-        if count >= limit:
+        if limit is not None and count >= limit:
             break
         parents = [p for p in repo.changelog.parents(n) if p != nullid]
         if opts.get('no_merges') and len(parents) == 2: