# HG changeset patch # User Anton Shestakov # Date 1675261115 -14400 # Node ID 3d0b5b4b262adc90b86cc54778e3bcf147ec1b2d # Parent 60daa7887c49a5129b7fd489556e6bd1459d5a1b topic: make _nbheads() skip branchmap entries that aren't just a branch This code should've been updated when branchmap started containing items in the new FQBN format, but it's better late than never. This fixes failure in test-single-head-obsolescence-topic-B3.t on hg <= 6.0. diff -r 60daa7887c49 -r 3d0b5b4b262a hgext3rd/topic/discovery.py --- a/hgext3rd/topic/discovery.py Tue Jan 31 13:33:28 2023 +0400 +++ b/hgext3rd/topic/discovery.py Wed Feb 01 18:18:35 2023 +0400 @@ -248,7 +248,8 @@ filterfn = lambda repo, heads: heads data = {} for b in repo.branchmap().iterbranches(): - if b':' in b[0]: + namedbranch, tns, topic = common.parsefqbn(b[0]) + if tns != b'default' or topic: continue oldheads = [repo[n].rev() for n in b[1]] newheads = filterfn(repo, oldheads)