# HG changeset patch # User Brodie Rao # Date 1364871676 25200 # Node ID fb583a1efef04dcb1c0326622661d9f959fec317 # Parent 1989111687a33d2aa8415b537629c8bdb2cbb0bd mq: refactor usage of repo.branchmap().iteritems() with itervalues() diff -r 1989111687a3 -r fb583a1efef0 hgext/mq.py --- a/hgext/mq.py Sat Oct 19 14:21:05 2013 -0700 +++ b/hgext/mq.py Mon Apr 01 20:01:16 2013 -0700 @@ -1204,9 +1204,7 @@ diffopts = self.diffopts() wlock = repo.wlock() try: - heads = [] - for b, ls in repo.branchmap().iteritems(): - heads += ls + heads = [h for hs in repo.branchmap().itervalues() for h in hs] if not heads: heads = [nullid] if repo.dirstate.p1() not in heads and not exact: