mercurial/commands.py
changeset 14465 9e3a89c9e46c
parent 14450 d1a1578c5f78
child 14466 bd34a027f3ed
--- a/mercurial/commands.py	Tue May 31 08:47:16 2011 +0200
+++ b/mercurial/commands.py	Tue May 31 09:59:03 2011 +0200
@@ -2522,15 +2522,15 @@
         heads = [repo[h] for h in repo.heads(start)]
     else:
         heads = []
-        for b, ls in repo.branchmap().iteritems():
+        for bheads in repo.branchmap().itervalues():
             if start is None:
-                heads += [repo[h] for h in ls]
+                heads += [repo[h] for h in bheads]
                 continue
             startrev = repo.changelog.rev(start)
             descendants = set(repo.changelog.descendants(startrev))
             descendants.add(startrev)
             rev = repo.changelog.rev
-            heads += [repo[h] for h in ls if rev(h) in descendants]
+            heads += [repo[h] for h in bheads if rev(h) in descendants]
 
     if branchrevs:
         branches = set(repo[br].branch() for br in branchrevs)