mercurial/commands.py
changeset 1765 b9fac31f34c9
parent 1764 4671078dbfe7
child 1782 b9671b41e360
--- a/mercurial/commands.py	Tue Feb 21 15:37:23 2006 +0100
+++ b/mercurial/commands.py	Tue Feb 21 15:54:50 2006 +0100
@@ -1660,9 +1660,10 @@
                 du.write("\n\n")
         elif st == 'iter':
             if count == limit: break
-            count += 1
-            for args in du.hunk[rev]:
-                ui.write(*args)
+            if du.hunk[rev]:
+                count += 1
+                for args in du.hunk[rev]:
+                    ui.write(*args)
 
 def manifest(ui, repo, rev=None):
     """output the latest or given revision of the project manifest