There is a book I remember from the 1980s (but I had older siblings, so it may have been a decade earlier) that followed the structure of "the house that jack built" but was about 2 brothers that may have been trolls. I think one brother stole berries or maybe a pie from the other, so he was trying to get a rope to hang him. He goes to get the rope, but has to get something else first, and then that sends him to something else and at the end he decides not to hang his brother. Each page repeated and built upon the previous one. The brothers' names were something like Munchin.