diff hgext/mq.py @ 42002:662ffdde5adf

branchcache: rename itervalues() to iterheads() The itervalues() exists because branchcache() had a dict interface. Since it no longer has a dict interface, it makes sense to have better function names. If a person does not understand how branchcache stores info, it will be hard for them to guess what itervalues() does. Differential Revision: https://phab.mercurial-scm.org/D6152
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 18 Mar 2019 19:01:29 +0300
parents 18f619d3b1bb
children 566daffc607d
line wrap: on
line diff
--- a/hgext/mq.py	Mon Mar 18 18:59:38 2019 +0300
+++ b/hgext/mq.py	Mon Mar 18 19:01:29 2019 +0300
@@ -1394,7 +1394,7 @@
         diffopts = self.diffopts()
         with repo.wlock():
             heads = []
-            for hs in repo.branchmap().itervalues():
+            for hs in repo.branchmap().iterheads():
                 heads.extend(hs)
             if not heads:
                 heads = [nullid]