Part of lp.codehosting.safe_open View In Hierarchy
A URL may point to a branch reference or it may point to a stacked branch. In either case, it's possible for there to be a cycle in these references, and this exception is raised when we detect such a cycle.