Multichannel tool: Topology mismatch when hierarchical pins are connected to global nets

Description

When using hierarchical sheets it is common to expose "config" pins which are either grounded, tied high, etc. For example to set the I2C address of some chip inside a hierarchical sheet.

When using the multichannel layout tool repeated sheets with hierarchical pins tied to a global net will result in a topology mismatch, even though the internals of the sheets are identical.

You can get around this by placing a series resistor (or any other element) between the hierarchical and the global net. But it would be nice to not be forced to do this.

This issue is somewhat related to #21292 (closed), which is about a more helpful message when topology mismatches occur.

Steps to reproduce

  1. Open the attached minimal KiCad project.
  2. Try to use the Repeat Layout tool and notice the topology mismatch

topology_mismatch.zip

KiCad Version

Application: KiCad x64 on x64

Version: 9.0.4, release build

Libraries:
	wxWidgets 3.2.8
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0

Platform: Windows 11 (build 26100), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.2.8 (wchar_t,wx containers)
	Boost: 1.88.0
	OCC: 7.9.1
	Curl: 8.13.0-DEV
	ngspice: 44
	Compiler: Visual C++ 1942 without C++ ABI
	KICAD_IPC_API=ON

Locale: 
	Lang: en_US
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Jordan Aceto