Mercurial > evolve
diff hgext3rd/topic/server.py @ 6573:d511eba4cdb0
topic: compatibility for branchmaptns with branchmap from hg 5.0
Since our new branchmaptns so heavily reuses the core branchmap, we need to
make sure to use all the compatibility function with it as well, even though it
lives completely in topic extension.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 15 Oct 2023 16:59:25 -0300 |
parents | ef04d887c9a0 |
children | c7083ba82d5f 23cad1a872b6 |
line wrap: on
line diff
--- a/hgext3rd/topic/server.py Fri Oct 13 15:16:18 2023 -0300 +++ b/hgext3rd/topic/server.py Sun Oct 15 16:59:25 2023 -0300 @@ -18,6 +18,7 @@ from . import ( common, + compat, constants, ) @@ -75,7 +76,8 @@ else: # only changesets in the selected topic namespaces are visible h = [] - for branch, nodes in repo.branchmaptns().items(): + entries = compat.bcentries(repo.branchmaptns()) + for branch, nodes in compat.branchmapitems(entries): namedbranch, tns, topic = common.parsefqbn(branch) if tns == b'none' or tns in namespaces: h.extend(nodes)