a71215bcc4a26e1641770d82127dc57ced1842c8
braney
  Tue Mar 10 12:37:04 2026 -0700
Detect tracks that list themselves as their own parent, preventing infinite loop refs #35986

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

diff --git src/hg/utils/hubCheck/tests/input/selfParent.txt src/hg/utils/hubCheck/tests/input/selfParent.txt
new file mode 100644
index 00000000000..e499e1ea687
--- /dev/null
+++ src/hg/utils/hubCheck/tests/input/selfParent.txt
@@ -0,0 +1,14 @@
+hub selfParentHub
+shortLabel Self Parent Test Hub
+longLabel Hub to test self-referencing parent detection
+email braney@soe.ucsc.edu
+useOneFile on
+
+genome hg19
+
+track selfRef
+shortLabel Self Ref Track
+longLabel Self Ref Track
+bigDataUrl http://genome.ucsc.edu/goldenPath/help/examples/bigBedExample.bb
+parent selfRef
+type bigBed 3